OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Harvey P. Dale)
FORMULA
EXAMPLE
a(1) = 13 = 5 + 7 + 1 where (5,7) is a twin prime pair.
a(2) = 37 = 17 + 19 + 1.
a(3) = 61 = 29 + 31 + 1.
a(4) = 277 = 137 + 139 + 1.
a(5) = 397 = 197 + 199 + 1.
MATHEMATICA
Select[Total/@Select[Partition[Prime[Range[1000]], 2, 1], #[[2]]-#[[1]] == 2&]+1, PrimeQ] (* Harvey P. Dale, Jul 25 2019 *)
PROG
(PARI) is(n)=n%12==1 && isprime(n) && isprime(n\2-1) && isprime(n\2+1) \\ Charles R Greathouse IV, Jan 21 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, May 11 2006
EXTENSIONS
More terms added by Vladimir Joseph Stephan Orlovsky, Mar 10 2009
STATUS
approved