A107162 Primes of the form x^2 + 54y^2.
79, 103, 223, 241, 337, 487, 577, 607, 1033, 1153, 1279, 1327, 1399, 1423, 1447, 1471, 1489, 1879, 1993, 2089, 2113, 2311, 2473, 2617, 2647, 2671, 2713, 2719, 2767, 2887, 3079, 3169, 3271, 3313, 3457, 3511, 3559, 3607, 3673, 3697, 3793
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[1, 0, 54, 10000] (* see A106856 *)
-
PARI
list(lim)=my(v=List(),w,t); for(x=1, sqrtint(lim\1), w=x^2; for(y=1, sqrtint((lim-w)\54), if(isprime(t=w+54*y^2), listput(v,t)))); Set(v) \\ Charles R Greathouse IV, Feb 09 2017
Comments