A378456 Number of composite numbers between consecutive nonprime prime powers (exclusive).
1, 0, 4, 5, 1, 2, 12, 11, 12, 31, 3, 1, 32, 59, 11, 25, 46, 13, 125, 14, 80, 88, 94, 103, 52, 261, 35, 267, 147, 172, 120, 9, 9, 163, 355, 279, 313, 207, 329, 347, 376, 108, 257, 805, 283, 262, 25, 917, 242, 1081, 702, 365, 752, 389, 251, 535, 1679, 877, 447
Offset: 1
Keywords
Examples
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}
Crossrefs
Programs
-
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}]
Comments