Project Euler 10 with a brute force method. Needs new isPrime function
to improve execution time.