OFFSET
1,2
COMMENTS
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..200
Z.-W. Sun, Problems on combinatorial properties of primes, arXiv:1402.6641, 2014
EXAMPLE
a(1) = 1 since p(1)^2 + q(1)^2 = 1^2 + 1^2 = 2 is prime.
a(2) = 2 since p(2)^2 + q(2)^2 = 2^2 + 1^2 = 5 is prime.
a(3) = 3 since p(3)^2 + q(3)^2 = 3^2 + 2^2 = 13 is prime.
MATHEMATICA
pq[n_]:=PrimeQ[PartitionsP[n]^2+PartitionsQ[n]^2]
n=0; Do[If[pq[m], n=n+1; Print[n, " ", m]], {m, 1, 10000}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Jan 24 2014
STATUS
approved