OFFSET
1,1
LINKS
Thomas R. Nicely, First occurrence prime gaps [For local copy see A000101]
FORMULA
a(n) = A000230(3n).
EXAMPLE
d=72 appears after 31397, while smaller d=54,60,66 come later, following primes 35617,43331,162143 respectively.
PROG
(PARI) a(n) = {p=3; q = nextprime(p+1); while((q-p) != 6*n, p = q; q = nextprime(q+1)); p; } \\ Michel Marcus, Mar 12 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 28 2000
EXTENSIONS
Offset corrected by M. F. Hasler, Apr 09 2013
STATUS
approved