correct using sieve of eratosthenes