OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(6) = 11 (= 13 - 2);
a(7) = 14 (= 17 - 3); ...
a(54) = 247 (= 251 - 4);
a(55) = 252 (= 257 - 5).
MAPLE
MATHEMATICA
#-IntegerLength[#, 4]&/@Prime[Range[60]] (* Harvey P. Dale, Dec 14 2015 *)
PROG
(PARI) a(n) = my(p=prime(n)); p - #digits(p, 4); \\ Michel Marcus, Mar 03 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Juri-Stepan Gerasimov, Jul 24 2009
STATUS
approved