Finds primes up to 2000000 and returns their sum.