OFFSET
1,3
COMMENTS
The conjecture in A236566 implies that a(n) > 0 for all n > 2.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 3 since prime(3 + 2) + 2 = 11 + 2 = 13 and 2*3 - 3 = 3 are both prime, but prime(2 + 2) + 2 = 9 is not.
MATHEMATICA
p[m_]:=PrimeQ[Prime[m+2]+2]
Do[Do[If[p[Prime[k]]&&PrimeQ[2n-Prime[k]], Print[n, " ", Prime[k]]; Goto[aa]], {k, 1, PrimePi[2n-1]}];
Print[n, " ", 0]; Label[aa]; Continue, {n, 1, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Jan 29 2014
STATUS
approved