|
|
A107170
|
|
Primes of the form 2x^2 + 31y^2.
|
|
2
|
|
|
2, 31, 103, 193, 281, 311, 479, 521, 617, 857, 937, 1063, 1423, 1489, 1657, 1831, 1847, 2543, 2591, 2609, 2671, 2711, 2729, 2753, 2903, 2953, 3023, 3089, 3167, 3319, 3559, 3697, 3761, 3769, 3823, 3863, 4079, 4111, 4201, 4561, 4639, 4903
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Discriminant = -248. See A107132 for more information.
|
|
LINKS
|
|
|
MATHEMATICA
|
QuadPrimes2[2, 0, 31, 10000] (* see A106856 *)
|
|
PROG
|
(PARI) list(lim)=my(v=List(), w, t); for(x=0, sqrtint(lim\2), w=2*x^2; for(y=0, sqrtint((lim-w)\31), if(isprime(t=w+31*y^2), listput(v, t)))); Set(v) \\ Charles R Greathouse IV, Feb 10 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|