A378253 Perfect powers p such that there are no other perfect powers between p and the least prime > p.
1, 4, 9, 16, 27, 36, 49, 64, 81, 100, 125, 128, 144, 169, 196, 216, 225, 243, 256, 289, 324, 343, 361, 400, 441, 484, 512, 529, 576, 625, 676, 729, 784, 841, 900, 961, 1000, 1024, 1089, 1156, 1225, 1296, 1331, 1369, 1444, 1521, 1600, 1681, 1728, 1764, 1849
Offset: 1
Keywords
Examples
The first number line below shows the perfect powers. The second shows each prime. To get a(n), we take the last perfect power in each interval between consecutive primes, omitting the cases where there are none. -1-----4-------8-9------------16----------------25--27--------32------36---- ===2=3===5===7======11==13======17==19======23==========29==31==========37==
Crossrefs
Programs
-
Mathematica
radQ[n_]:=n>1&&GCD@@Last/@FactorInteger[n]==1; Union[Table[NestWhile[#-1&,Prime[n],radQ[#]&],{n,1000}]]
Comments