This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Find the Twin Primes <= N using the Segmented Sieve of Zakiya (SSoZ) | |
* This is a D port of the Nim program twinprimes_ssoz.nim: | |
* https://gist.github.com/jzakiya/6c7e1868bd749a6b1add62e3e3b2341e | |
* | |
* This D source file, and subsequent modifications, can be found here: | |
* https://gist.github.com/jzakiya/ae93bfa03dbc8b25ccc7f97ff8ad0f61 | |
* | |
* To compile with ldc2: $ ldc2 --release -O3 twinprimes_ssoz.d | |
* |