Added sieve to generate primes