A378249 Least perfect power > prime(n).
4, 4, 8, 8, 16, 16, 25, 25, 25, 32, 32, 49, 49, 49, 49, 64, 64, 64, 81, 81, 81, 81, 100, 100, 100, 121, 121, 121, 121, 121, 128, 144, 144, 144, 169, 169, 169, 169, 169, 196, 196, 196, 196, 196, 216, 216, 216, 225, 243, 243, 243, 243, 243, 256, 289, 289, 289
Offset: 1
Keywords
Examples
The first number line below shows the perfect powers. The second shows each prime. -1-----4-------8-9------------16----------------25--27--------32------36------------------------49-- ===2=3===5===7======11==13======17==19======23==========29==31==========37======41==43======47======
Crossrefs
Programs
-
Mathematica
radQ[n_]:=n>1&&GCD@@Last/@FactorInteger[n]==1; Table[NestWhile[#+1&,Prime[n],radQ[#]&],{n,100}]
-
PARI
f(p) = p++; while(!ispower(p), p++); p; lista(nn) = apply(f, primes(nn)); \\ Michel Marcus, Dec 19 2024
Comments