Calculates the first 2 million primes.