OFFSET
1,2
COMMENTS
I conjecture that any initial term a(1) eventually merges with this sequence.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
a=1; s={a}; Do[x=a+1+Mod[a, 2]; While[!PrimeQ[2*a+x], x=x+2]; s={s, x}; a=x, {100}]; s=Flatten[s]
lngp[n_]:=Module[{k=n+1}, While[!PrimeQ[2n+k], k++]; k]; NestList[lngp, 1, 70] (* Harvey P. Dale, Jan 04 2025 *)
PROG
(PARI) v=[1]; n=2; while(#v<100, if(isprime(2*v[#v]+n), v=concat(v, n)); n++); v \\ Derek Orr, Apr 14 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, Apr 11 2015
STATUS
approved