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.
%I A038804 #58 Feb 16 2025 08:32:38 %S A038804 4,4,12,34,12,20,28,18,70,52,26,50,66,58,48,124,6,14,90,50,218,36,140, %T A038804 264,136,208,202,540,346,68,60,70,70,604,92,226,124,192,60,138,228, %U A038804 146,138,84,18,154,74,226,66,208,444,558,348,322,132,596,372,308,160,168 %N A038804 Difference between largest n-digit prime and smallest (n+1)-digit prime. %C A038804 Records: 4, 12, 34, 70, 124, 218, 264, 540, 604, 670, 754, 1182, ..., . - _Robert G. Wilson v_, Jan 23 2020 %H A038804 Giovanni Resta, <a href="/A038804/b038804.txt">Table of n, a(n) for n = 1..8000</a> (terms 1..1000 from Pierre CAMI, terms 1001..4000 from Robert G. Wilson v) %H A038804 Pierre CAMI, <a href="/A038804/a038804.txt">PFGW script</a> %H A038804 Vasiliy Danilov, <a href="http://web.archive.org/web/20080517213817/http://www.fortunecity.com/skyscraper/epson/276/pr1_10k.htm">Smallest & largest n-digit primes</a>. %H A038804 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/NextPrime.html">Next Prime</a>. %H A038804 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/PreviousPrime.html">Previous Prime</a>. %F A038804 a(n) = A033873(n) + A033874(n). - _Zak Seidov_, Sep 13 2016 %e A038804 7 = greatest prime with 1 digit, 11 next smallest prime with 2 digits so a(1)=4. %e A038804 97 = greatest prime with 2 digits, 101 next smallest prime with 3 digits so a(2)=4. %t A038804 (NextPrime[#]-NextPrime[#,-1])&/@(10^Range[100]) (* _Harvey P. Dale_, Mar 23 2011 *) %Y A038804 Cf. A033873, A033874, A003617, A003618, A058249. %K A038804 nonn,base %O A038804 1,1 %A A038804 _Jeff Burch_ %E A038804 Corrected and edited by _Patrick De Geest_, Nov 06 2004