OFFSET
1,1
COMMENTS
Non-prime-powers (exclusive) are listed by A361102.
Warning: For this sequence, 1 is not a prime-power but is a non-prime-power.
EXAMPLE
The 6th non-prime-power (exclusive) is 15, and the 7th is 18, so a(6) = 3.
MATHEMATICA
Differences[Select[Range[100], !PrimePowerQ[#]&]]
PROG
(Python)
from itertools import count
from sympy import primepi, integer_nthroot, primefactors
def A375708(n):
def f(x): return int(n+sum(primepi(integer_nthroot(x, k)[0]) for k in range(1, x.bit_length())))
m, k = n, f(n)
while m != k: m, k = k, f(k)
return next(i for i in count(m+1) if len(primefactors(i))>1)-m # Chai Wah Wu, Sep 09 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Aug 31 2024
STATUS
approved