Example in the overview

bearophile bearophileHUGS at lycos.com
Fri May 14 16:46:55 PDT 2010


Walter Bright:
> Are you sure? What's the mistake in the code?

This is the code in the Overview, it prints 1899:
http://codepad.org/lzRtggEL

This is the code I have suggested in bugzilla, it prints 1027:
http://ideone.com/D9ZqQ

Wolfram Alpha says they are 1027 (I have left out the last number because Alpha uses a closed interval)
http://www.wolframalpha.com/input/?i=primes+in+2+..+8190

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list