Recursively sum primes