OFFSET
1,2
EXAMPLE
a(15) = Sum_{p|15} p^(pi(p) mod 2) = 3^0 + 5^1 = 6.
MATHEMATICA
Table[Sum[k^Mod[PrimePi[k], 2] (PrimePi[k] - PrimePi[k - 1]) (1 - Ceiling[n/k] + Floor[n/k]), {k, n}], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jun 12 2021
STATUS
approved