A107194 Primes of the form 2x^2 + 41y^2.
2, 41, 43, 59, 73, 113, 139, 241, 283, 379, 401, 419, 433, 467, 491, 569, 619, 761, 881, 947, 1009, 1033, 1091, 1097, 1123, 1153, 1187, 1193, 1291, 1427, 1499, 1609, 1619, 1721, 1723, 1747, 1907, 1993, 2011, 2017, 2027, 2081, 2083, 2089, 2137
Offset: 1
Links
- Vincenzo Librandi and Ray Chandler, Table of n, a(n) for n = 1..10000 [First 1000 terms from Vincenzo Librandi]
- N. J. A. Sloane et al., Binary Quadratic Forms and OEIS (Index to related sequences, programs, references)
Programs
-
Mathematica
QuadPrimes2[2, 0, 41, 10000] (* see A106856 *)
-
PARI
list(lim)=my(v=List(),w,t); for(x=0, sqrtint(lim\2), w=2*x^2; for(y=0, sqrtint((lim-w)\41), if(isprime(t=w+41*y^2), listput(v,t)))); Set(v) \\ Charles R Greathouse IV, Feb 10 2017
Comments