OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
Is a(n) asymptotic to c*n^2/log(n) with c=0.55...?
From Daniel Suteu, Aug 20 2023: (Start)
a(n) = Sum_{k=1..floor(log_2(n))} Sum_{p prime <= n^(1/k)} p^k.
EXAMPLE
a(10)=38 because 2,3,4,5,7,8,9 are the prime powers less than or equal to 10 and 2+3+4+5+7+8+9 = 38.
MATHEMATICA
Accumulate[Table[If[PrimePowerQ[n], n, 0], {n, 60}]] (* Harvey P. Dale, Oct 04 2019 *)
PROG
(PARI) a(n)=sum(k=1, n, k*if(omega(k)-1, 0, 1))
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Sep 07 2002
STATUS
approved