Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The disadvantage is how many times the implementation using "mod" is visiting each candidate. This disadvantage is explained at length in "The Genuine Sieve of Eratothenes" (http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf preprint of http://dx.doi.org/10.1017%2FS0956796808007004).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: