Testing primes