OFFSET
1,1
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..672 (from Nicely link)
Thomas R. Nicely, First occurrence prime gaps [For local copy see A000101]
MATHEMATICA
Reap[For[k=2, k <= 80, k = k+2, p=3; q=5; While[q-p != k, p=q; q=NextPrime[p+1]]; Print[p+1]; Sow[p+1]]][[2, 1]] (* Jean-François Alcover, May 17 2013, after Klaus Brockhaus *)
With[{cmps=Table[If[CompositeQ[n], 1, 0], {n, 10^6}]}, Flatten[Table[ SequencePosition[ cmps, Join[{0}, PadRight[{}, i, 1], {0}], 1], {i, 1, 81, 2}], 1][[All, 1]]+1] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 02 2017 *)
PROG
(PARI) forstep(k=2, 80, 2, p=3; q=5; while(q-p!=k, p=q; q=nextprime(p+1)); print1(p+1, ", ")) \\ Klaus Brockhaus, Jan 24 2008
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
EXTENSIONS
More terms from Harvey P. Dale, Jul 27 2001
STATUS
approved