Sieve of Eratosthenes for prime numbers