Added solution for Quadratic primes