OFFSET
1,3
COMMENTS
This is a ("corrected") variant of A095874, which uses the list of "powers of primes" A000961 instead of prime powers A246655. - M. F. Hasler, Jun 16 2021
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
FORMULA
PROG
(PARI)
up_to = 16384;
A322981list(up_to) = { my(v=vector(up_to), k=0); for(n=1, up_to, if(isprimepower(n), k++; v[n] = k, v[n] = 0)); (v); };
v322981 = A322981list(up_to);
A322981(n) = v322981[n];
(PARI) A322981(n)=if(isprimepower(n), sum(i=1, exponent(n), primepi(sqrtnint(n, i)))) \\ M. F. Hasler, Jun 16 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 01 2019
STATUS
approved