problem27: quadratic primes