OFFSET
1,1
COMMENTS
2 along with the larger member of twin primes.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
f[s_List] := Block[{p = NextPrime@ s[[ -1]]}, While[ !PrimeQ[p - 2], p = NextPrime@p]; Append[s, p]]; Nest[f, {2}, 50] (* Robert G. Wilson v, Aug 09 2010 *)
PROG
(PARI) list(lim)=my(v=List([2]), s, p=2); forprime(q=5, lim, if(isprime(s+q-p), listput(v, q); s+=q-p; p=q)); Vec(v) \\ Charles R Greathouse IV, Jan 12 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, May 24 2004
EXTENSIONS
Changed offset from 0 to 1 by Vincenzo Librandi, Apr 14 2013
STATUS
approved