OFFSET
1,2
COMMENTS
MATHEMATICA
perpowQ[n_]:=n==1||GCD@@FactorInteger[n][[All, 2]]>1;
Table[NestWhile[#+1&, Prime[n], Not@*perpowQ], {n, 100}]//Differences
CROSSREFS
Positions of positives are A377283.
Positions of zeros are A377436.
The restriction to primes has first differences A377468.
Without zeros we have differences of A378250.
A069623 counts perfect powers <= n.
A076411 counts perfect powers < n.
A377432 counts perfect powers between primes.
KEYWORD
nonn,new
AUTHOR
Gus Wiseman, Dec 09 2024
STATUS
approved