proposed
approved
proposed
approved
editing
proposed
Maier, Helmut, and Carl Pomerance. "Unusually large gaps between consecutive primes." Transactions of the American Mathematical Society 322.1 (1990): 201-237.
Helmut Maier and Carl Pomerance, <a href="https://doi.org/10.1090/S0002-9947-1990-0972703-X">Unusually large gaps between consecutive primes</a>, Transactions of the American Mathematical Society 322.1 (1990): 201-237.
approved
editing
a(0) = 2 since the least prime greater than 0 is 2 (first occurence occurrence of gap 2).
a(7) = 4 since the least prime greater than 7 is 11 (first occurence occurrence of gap 4).
editing
approved
D. S. Mitrinovic et al., Handbook of Number Theory, Kluwer, 1996, Section VII.22, p. 249. (See G(x). Gives bounds.)
with(numtheory);
M:=120; a:=[]; r:=0;
for x from 2 to M do
i1:=pi(x); p:=ithprime(i1); q:=ithprime(i1+1); d:=q-p;
if d>r then r:=d; fi;
a:=[op(a), r]; od: a; # N. J. A. Sloane, Sep 11 2019
approved
editing
editing
approved
a:=[op(a), r]; od: a; # N. J. A. Sloane, Sep 11 2019
approved
editing
editing
approved