Add check for valid primes.
Ensure that the input for the program doesn't create primes greater than 60 000, which would overflow the unsigned long long data type.