OFFSET
1,1
COMMENTS
Since (except for 3) all lucky primes == 1 (mod 6), a(n) >= 6 for n >= 2. - Robert Israel, Jul 26 2019
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 4 because difference between the first (3) and second (7) lucky prime is 4.
a(2) = 6 because difference between 7 and 13 is 6.
MAPLE
N:= 10^4: # for lucky primes up to 2*N+1
L:= [seq(2*i+1, i=0..N)]:
for n from 2 while n < nops(L) do
r:= L[n];
L:= subsop(seq(r*i=NULL, i=1..nops(L)/r), L);
od:
LP:= select(isprime, L):
LP[2..-1]-LP[1..-2]; # Robert Israel, Jul 26 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Hauke Löffler, Jul 24 2019
STATUS
approved