OFFSET
1,1
COMMENTS
a(n) is the leading prime in the (n+1)-th prime sublist defined in A348178.
FORMULA
a(n) = nextprime(A134266(n)). - Michel Marcus, Mar 30 2023
PROG
(Python)
from sympy import nextprime; q = 2; g = 0
while q < 20000000:
p = nextprime(q); d = p - q
if d >= g: print(p, end = ', '); g = d
q = p
(PARI) a361823(upto) = {my(pp=2, gap=1); forprime (p=3, upto, my(g=p-pp); if(g>=gap, print1(p, ", "); gap=g); pp=p)};
a361823(20000000) \\ Hugo Pfoertner, Apr 03 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Ya-Ping Lu, Mar 25 2023
STATUS
approved