sped up summation of primes