A107139 Primes of the form 2x^2 + 17y^2.
2, 17, 19, 67, 89, 179, 251, 281, 353, 409, 433, 443, 457, 467, 491, 523, 587, 739, 883, 937, 953, 1033, 1171, 1283, 1307, 1409, 1427, 1481, 1483, 1619, 1699, 1721, 1777, 1801, 1889, 1993, 2083, 2089, 2099, 2129, 2347, 2467, 2473, 2609, 2633
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, 17, 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)\17), if(isprime(t=w+17*y^2), listput(v,t)))); Set(v) \\ Charles R Greathouse IV, Feb 09 2017
Comments