sieve of eratosthenes

optimized sieve