Simplify the sieve of Erathostenes.