Problem 10: Summation of primes