OFFSET
1,2
EXAMPLE
Consider number 2: The sum of digits of 2 equals 2; 2*2 = 4; The number of primes not exceeding 4 is 2. Thus a(2) = 2.
Consider number 11: 11*SOD(11) = 22; PrimePi(22) = 8. Thus, a(11) = 8.
MATHEMATICA
Table[PrimePi[n Total[IntegerDigits[n]]], {n, 100}]
PROG
(Python)
from sympy import primepi
def a(n): return primepi(n*sum(map(int, str(n))))
print([a(n) for n in range(1, 65)]) # Michael S. Branicky, Apr 25 2022
(PARI) a(n) = primepi(n*sumdigits(n)); \\ Michel Marcus, Apr 25 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tanya Khovanova, Apr 25 2022
STATUS
approved