Solved problem 10 (summation of primes)