cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A038343 Maximal value of difference between successive primes among the first 10^n primes.

This page as a plain text file.
%I A038343 #13 Oct 28 2021 12:37:08
%S A038343 6,18,34,72,114,154,222,292,394,486,652,766
%N A038343 Maximal value of difference between successive primes among the first 10^n primes.
%D A038343 Enoch Haga, Exploring Primes on Your PC, 2nd edition, 1998, ISBN 1-885794-16-9. Table 2, page 33.
%H A038343 Thomas R. Nicely, <a href="https://faculty.lynchburg.edu/~nicely/gaps/gaplist.html">First occurrence prime gaps</a> [For local copy see A000101].
%e A038343 Among the first 10 primes, {2,3,...,23,29}, the largest difference is 29-23=6. Therefore 6 is the largest prime gap in the first ten primes.
%t A038343 a = 1; b = 1; d = 0; k = 1; Do[ While[k <= 10^n, a = b; b = Prime[k]; If[b - a > d; d = b - a]; k++ ]; Print[d], {n, 12}] (* _Robert G. Wilson v_, Sep 24 2004 *)
%Y A038343 Cf. A005250.
%K A038343 nonn,more
%O A038343 1,1
%A A038343 _Enoch Haga_
%E A038343 Edited and extended by _Robert G. Wilson v_, Sep 24 2004