OFFSET
1,1
COMMENTS
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 3 since 3, prime(3) + 2 = 7 and prime(3) + 6 = 11 are all prime, but prime(2) + 6 = 9 is composite.
MATHEMATICA
p[n_]:=p[n]=PrimeQ[Prime[n]+2]&&PrimeQ[Prime[n]+6]
n=0; Do[If[p[Prime[m]], n=n+1; Print[n, " ", Prime[m]]], {m, 1, 10000}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Jan 26 2014
STATUS
approved