OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
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
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Aug 15 2002
EXTENSIONS
More terms from Emeric Deutsch, Mar 28 2005
STATUS
approved