A107164 Primes of the form x^2 + 56y^2.
137, 233, 281, 449, 673, 953, 977, 1033, 1129, 1409, 1481, 1873, 2017, 2081, 2129, 2137, 2377, 2417, 2657, 2713, 2753, 2857, 2969, 3313, 3529, 3593, 3697, 3833, 4001, 4561, 4649, 4657, 4673, 4729, 4817, 4993, 5657, 5737, 5849, 6217, 6329
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, 56, 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)\56), if(isprime(t=w+56*y^2), listput(v,t)))); Set(v) \\ Charles R Greathouse IV, Feb 09 2017
Comments