Optimized code for counting primes and finding next prime. Shaved about a minute off time to compute and count happys.