OFFSET
1,2
COMMENTS
FORMULA
a(n) = A378372(n) - n.
EXAMPLE
The least non prime power >= 4 is 6, so a(4) = 2.
MATHEMATICA
Table[NestWhile[#+1&, n, PrimePowerQ[#]&]-n, {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 28 2024
STATUS
approved