OFFSET
1,3
COMMENTS
The inclusive version is a(n) + 2.
Nonprime prime powers (A246547) begin: 4, 8, 9, 16, 25, 27, 32, 49, ...
EXAMPLE
The initial terms count the following composite numbers:
{6}, {}, {10,12,14,15}, {18,20,21,22,24}, {26}, {28,30}, ...
The composite numbers for a(77) = 6 together with their prime indices are the following. We have also shown the nonprime prime powers before and after:
32761: {42,42}
32762: {1,1900}
32763: {2,19,38}
32764: {1,1,1028}
32765: {3,847}
32766: {1,2,14,31}
32767: {4,11,36}
32768: {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
MATHEMATICA
nn=1000;
v=Select[Range[nn], PrimePowerQ[#]&&!PrimeQ[#]&];
Table[Length[Select[Range[v[[i]]+1, v[[i+1]]-1], CompositeQ]], {i, Length[v]-1}]
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Gus Wiseman, Nov 30 2024
STATUS
approved