OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = If Prime[n+2]+Prime[n] is prime then Prime[n+2]+Prime[n]
MAPLE
P:= [seq(ithprime(i), i=1..10000)]:
select(isprime, map(`+`, P[1..-3]+P[3..-1], 1)); # Robert Israel, Jan 03 2021
MATHEMATICA
a = Flatten[Table[If[PrimeQ[Prime[n + 2] +Prime[n] + 1], Prime[n + 2] + Prime[n] + 1, {}], {n, 1, 200}]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Nov 01 2005
EXTENSIONS
Offset changed by Robert Israel, Jan 03 2021
STATUS
approved