fix off-by-one error in is_prime_pseudosquare when flint_primes has not been computed previously