First version, counts to all 5-digits primes.