primes lookup fix