OFFSET
1,1
COMMENTS
Records: 4, 12, 34, 70, 124, 218, 264, 540, 604, 670, 754, 1182, ..., . - Robert G. Wilson v, Jan 23 2020
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..8000 (terms 1..1000 from Pierre CAMI, terms 1001..4000 from Robert G. Wilson v)
Pierre CAMI, PFGW script
Vasiliy Danilov, Smallest & largest n-digit primes.
Eric Weisstein's World of Mathematics, Next Prime.
Eric Weisstein's World of Mathematics, Previous Prime.
FORMULA
EXAMPLE
7 = greatest prime with 1 digit, 11 next smallest prime with 2 digits so a(1)=4.
97 = greatest prime with 2 digits, 101 next smallest prime with 3 digits so a(2)=4.
MATHEMATICA
(NextPrime[#]-NextPrime[#, -1])&/@(10^Range[100]) (* Harvey P. Dale, Mar 23 2011 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Corrected and edited by Patrick De Geest, Nov 06 2004
STATUS
approved