Reduced number of primes calced