A378372 Least non prime power >= n, allowing 1.
1, 6, 6, 6, 6, 6, 10, 10, 10, 10, 12, 12, 14, 14, 15, 18, 18, 18, 20, 20, 21, 22, 24, 24, 26, 26, 28, 28, 30, 30, 33, 33, 33, 34, 35, 36, 38, 38, 39, 40, 42, 42, 44, 44, 45, 46, 48, 48, 50, 50, 51, 52, 54, 54, 55, 56, 57, 58, 60, 60, 62, 62, 63, 65, 65, 66, 68
Offset: 1
Keywords
Examples
The least non prime power >= 4 is 6, so a(4) = 6.
Crossrefs
Programs
-
Mathematica
Table[NestWhile[#+1&,n,PrimePowerQ[#]&],{n,100}]
Formula
a(n) = A378371(n) + n.
Comments