A107158 Primes of the form 3x^2 + 17y^2.
3, 17, 29, 71, 311, 317, 347, 419, 431, 449, 617, 743, 857, 881, 941, 947, 1013, 1091, 1151, 1163, 1193, 1217, 1451, 1601, 1847, 1877, 2063, 2069, 2153, 2207, 2357, 2411, 2459, 2591, 2777, 2861, 2963, 3023, 3089, 3257, 3359, 3407, 3461, 3533
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[3, 0, 17, 10000] (* see A106856 *)
-
PARI
list(lim)=my(v=List(),w,t); for(x=0, sqrtint(lim\3), w=3*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