add p27 solution - quadratic primes