Implemented Sieve of Eratosthenes