Generating primes up to 1,000,000...
Using Sieve of Eratosthenes