login
Primes of the form p^2 + pq + q.
0

%I #6 Apr 30 2022 21:11:19

%S 13,17,19,29,37,43,53,61,67,73,89,97,101,103,127,137,139,157,163,173,

%T 181,197,199,211,223,233,239,241,271,277,281,283,293,307,313,331,349,

%U 379,397,401,421,457,461,463,487,491,499,521,523,541,547,557,577,601

%N Primes of the form p^2 + pq + q.

%o (PARI) {z=605;v=[];p=2;while(p^2+p*2+2<z,q=2;while((n=p^2+p*q+q)<z,if(isprime(n),v=concat(v,n));q=nextprime(q+1));p=nextprime(p+1));v=vecsort(v);m=0;for(j=1,length(v),if(m<v[j],m=v[j];print1(m,",")))} \\ _Klaus Brockhaus_, Sep 15 2004

%K nonn,easy

%O 1,1

%A _Giovanni Teofilatto_, Sep 14 2004

%E Corrected and extended by _Klaus Brockhaus_, Sep 15 2004