Finding sieve of Eratosthenes