login
A073862
Difference between the largest and the smallest n-digit prime.
1
5, 86, 896, 8964, 89984, 899980, 8999988, 89999970, 899999930, 8999999960, 89999999958, 899999999986, 8999999999932, 89999999999936, 899999999999958, 8999999999999900, 89999999999999936, 899999999999999986, 8999999999999999958, 89999999999999999938
OFFSET
1,1
LINKS
FORMULA
a(n) = A003618(n) - A003617(n).
EXAMPLE
a(3) = 997 - 101 = 896.
a(1) = 5 because 7-2 = 5.
MAPLE
seq(prevprime(10^n)-nextprime(10^(n-1)), n=1..21); # Emeric Deutsch, Mar 28 2005
MATHEMATICA
Table[NextPrime[10^(n+1), -1]-NextPrime[10^n], {n, 0, 18}] (* Harvey P. Dale, May 04 2016 *)
CROSSREFS
Sequence in context: A363424 A174320 A140159 * A222983 A243075 A232489
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Aug 15 2002
EXTENSIONS
More terms from Emeric Deutsch, Mar 28 2005
STATUS
approved