

A038804


Difference between largest ndigit prime and smallest n+1 digit prime.


3



4, 4, 12, 34, 12, 20, 28, 18, 70, 52, 26, 50, 66, 58, 48, 124, 6, 14, 90, 50, 218, 36, 140, 264, 136, 208, 202, 540, 346, 68, 60, 70, 70, 604, 92, 226, 124, 192, 60, 138, 228, 146, 138, 84, 18, 154, 74, 226, 66, 208, 444, 558, 348, 322, 132, 596, 372, 308, 160, 168
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,1


LINKS

Pierre CAMI, Table of n, a(n) for n = 1..1000
Pierre CAMI, PFGW script
Vasiliy Danilov, Smallest & largest ndigit primes.
Eric Weisstein's World of Mathematics, Next Prime.
Eric Weisstein's World of Mathematics, Previous Prime.


FORMULA

a(n) = A033873(n) + A033874(n).  Zak Seidov, Sep 13 2016


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

Cf. A033873, A033874, A003617, A003618.
Sequence in context: A298796 A106232 A228612 * A183362 A088838 A127403
Adjacent sequences: A038801 A038802 A038803 * A038805 A038806 A038807


KEYWORD

nonn,base


AUTHOR

Jeff Burch


EXTENSIONS

Corrected and edited by Patrick De Geest, Nov 06 2004


STATUS

approved



