Prime using the sieve of Erathostenes