OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
MATHEMATICA
Table[PrimePi[NextPrime[n]], {n, Select[Range[2500], #==1||GCD@@FactorInteger[#][[;; , 2]]>1&]}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Dec 05 2024
EXTENSIONS
Mathematica program corrected by Sean A. Irvine and Harvey P. Dale, Jan 30 2026
STATUS
approved
