added attempt for polynomial primes