OFFSET
1,3
COMMENTS
MATHEMATICA
Accumulate[Table[If[PrimeQ[n]||(!PrimePowerQ[n]), 1, 0], {n, 80}]]-1 (* Harvey P. Dale, Oct 13 2022 *)
PROG
(Python)
from sympy import primepi, integer_nthroot
def A085972(n): return n-1-sum(primepi(integer_nthroot(n, k)[0]) for k in range(2, n.bit_length())) # Chai Wah Wu, Aug 20 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jul 06 2003
STATUS
approved