OFFSET
1,1
COMMENTS
LINKS
Alexei Kourbatov, Table of n, a(n) for n = 1..36
Alexei Kourbatov and Marek Wolf, Predicting maximal gaps in sets of primes, arXiv preprint arXiv:1901.03785 [math.NT], 2019.
FORMULA
EXAMPLE
The first two primes of the form 6k+1 are 7 and 13, so a(1)=7. The next prime of this form is 19; the gap 19-13 is not a record so nothing is added to the sequence. The next prime of this form is 31 and the gap 31-19=12 is a new record, so a(2)=19.
PROG
(PARI) re=0; s=7; forprime(p=13, 1e8, if(p%6!=1, next); g=p-s; if(g>re, re=g; print1(s", ")); s=p)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexei Kourbatov, Feb 15 2016
STATUS
approved