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

Yes, but the more we mix sieve rejection into candidate selection the more we complicate the rule of thumb. "Reject even numbers as prime candidates" is probably OK to leave as an exercise for the reader, as is the equivalent "round every candidate to odd" optimization. The point about random vs sequential is well taken, though, and it doesn't complicate the rule of thumb, so I changed it.


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

Search: