solved sum of primes problem