login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 09:48 EDT 2024. Contains 371905 sequences. (Running on oeis4.)