Skip to content

Instantly share code, notes, and snippets.

View veelo's full-sized avatar

Bastiaan Veelo veelo

  • Trondheim, Norway
View GitHub Profile
@veelo
veelo / twinprimes_ssoz.d
Created November 8, 2018 10:57 — forked from jzakiya/twinprimes_ssoz.d
Twinprimes generator, multi-threaded, using SSoZ (Segmented Sieve of Zakiya), written in D
/**
* 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
*