OFFSET
1,1
COMMENTS
Let q=a+b. For a specific prime q, the number of distinct primes p that are the sum of two squares is A082519(q)/2.
Primes p of the form (q-b)^2 + b^2, where q is prime and 0<b<q.
LINKS
T. D. Noe, Table of n, a(n) for n=1..1000
FORMULA
Primes p such that p = (q^2 + x^2)/2, where q is prime and |x| < q. - Thomas Ordowski, Feb 15 2013
EXAMPLE
29 is in this sequence because 29=2^2+5^2 and 2+5 is prime.
MATHEMATICA
Needs["NumberTheory`NumberTheoryFunctions`"]; lst={2}; Do[n=4k+1; If[PrimeQ[n], If[PrimeQ[Plus@@QuadraticRepresentation[1, n]], AppendTo[lst, n]]], {k, 500}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Oct 15 2004
STATUS
approved