OFFSET
1,2
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
MATHEMATICA
f[n_] := Plus @@ FixedPointList[ PrimePi, n]; Table[ f[n], {n, 70}]
PROG
(PARI) a(n) = { my (v=0); while (n, v+=n; n=primepi(n)); v } \\ Rémy Sigrist, Jun 07 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Vos Post and Robert G. Wilson v, Dec 03 2004
STATUS
approved