Calculate the sum of all primes under a given number