OFFSET
1,10
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = pi(rev(n)) - pi(n).
a(n) = 0 for palindromic numbers.
MATHEMATICA
Array[Subtract @@ PrimePi@ {IntegerReverse @#, #} &, 95] (* Michael De Vlieger, Mar 27 2020 *)
PROG
(PARI) a(n) = primepi(fromdigits(Vecrev(digits(n)))) - primepi(n); \\ Michel Marcus, Mar 27 2020
CROSSREFS
KEYWORD
base,sign
AUTHOR
Labos Elemer, Jul 10 2003
STATUS
approved