OFFSET
1,4
COMMENTS
LINKS
Muniru A Asiru, Table of n, a(n) for n = 1..10000
EXAMPLE
a(4) = 4 as prime(4) = 7 and prime(4+1) = 11 so the number of digits between these two primes is the number of digits of 8, 9 and 10. These numbers have 4 digits combined. Therefore a(4) = 4. - David A. Corneth, Jan 30 2019
MATHEMATICA
Table[Length[Flatten[IntegerDigits/@Range[Prime[n]+1, Prime[n+1]-1]]], {n, 200}]
PROG
(PARI) a(n) = sum(k=prime(n)+1, prime(n+1)-1, #Str(k)); \\ Michel Marcus, Jan 30 2019
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Zak Seidov, Nov 13 2009
STATUS
approved