OFFSET
1,1
COMMENTS
LINKS
Alexei Kourbatov, Table of n, a(n) for n = 1..37
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 5 and 11, so a(1)=5. The next primes of this form are 17, 23, 29; the gaps 17-11 = 23-17 = 29-23 are not records so nothing is added to the sequence. The next prime of this form is 41 and the gap 41-29=12 is a new record, so a(2)=29.
PROG
(PARI) re=0; s=5; forprime(p=11, 1e8, if(p%6!=5, next); g=p-s; if(g>re, re=g; print1(s", ")); s=p)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexei Kourbatov, Feb 15 2016
STATUS
approved