OFFSET
1,1
COMMENTS
By part (i) of the conjecture in A236192, this sequence should have infinitely many terms.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 3 since prime(2)^2 + (2*2)^2 = 25 is composite, but prime(3)^2 + (2*3)^2 = 5^2 + 6^2 = 61 and 3^2 + (2*prime(3))^2 = 3^2 + 10^2 = 109 are both prime.
MATHEMATICA
p[n_]:=PrimeQ[Prime[n]^2+(2*n)^2]&&PrimeQ[n^2+(2*Prime[n])^2]
n=0; Do[If[p[Prime[k]], n=n+1; Print[n, " ", Prime[k]]], {k, 1, 10^6}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Jan 20 2014
STATUS
approved