A simple sieve in Phobos?

bearophile bearophileHUGS at lycos.com
Wed Mar 19 06:18:46 PDT 2014


Dan Killebrew:

>and had to implement my own prime sieve, isPrime range,<

The sieve is a range, but isPrime() is just a predicate function 
(possibly only logically pure, to store some precedent 
computation), it's not a range.

Bye,
bearophile


More information about the Digitalmars-d mailing list