get primes with sieve of Eratosthenes