fixed error in function

Fixed error and included result from computations using 10 and
1,000,000 primes.