A simple sieve in Phobos?

bearophile bearophileHUGS at lycos.com
Wed Mar 19 11:48:37 PDT 2014


Chris Williams:

> Here's a straightforward implementation, if you don't already 
> have one (I assume you're doing this for Rosetta Code).

RosettaCode has already several sieves in D. I am not doing this 
for RosettaCode. What I am doing in this thread is to ask if 
there's desire for a efficient (quite more than your version) but 
still sufficiently simple implementation of a unbounded lazy 
Sieve range for Phobos.

Bye,
bearophile


More information about the Digitalmars-d mailing list