A378616 Greatest non prime power <= prime(n).
1, 1, 1, 6, 10, 12, 15, 18, 22, 28, 30, 36, 40, 42, 46, 52, 58, 60, 66, 70, 72, 78, 82, 88, 96, 100, 102, 106, 108, 112, 126, 130, 136, 138, 148, 150, 156, 162, 166, 172, 178, 180, 190, 192, 196, 198, 210, 222, 226, 228, 232, 238, 240, 250, 255, 262, 268, 270
Offset: 1
Keywords
Examples
The first number line below shows the non prime powers. The second shows the primes: --1-------------6----------10----12----14-15-------18----20-21-22----24-- =====2==3====5=====7==========11====13==========17====19==========23=====
Crossrefs
Programs
-
Mathematica
Table[Max[Select[Range[Prime[n]],Not@*PrimePowerQ]],{n,100}]
Comments