Fixed bug where 2 would be skipped from the number of primes.