A379313 Positive integers whose prime indices are not all composite.
2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 20, 21, 22, 24, 25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 36, 38, 39, 40, 41, 42, 44, 45, 46, 48, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 72, 74, 75, 76, 77, 78, 80, 81, 82
Offset: 1
Keywords
Examples
The terms together with their prime indices begin: 2: {1} 3: {2} 4: {1,1} 5: {3} 6: {1,2} 8: {1,1,1} 9: {2,2} 10: {1,3} 11: {5} 12: {1,1,2} 14: {1,4} 15: {2,3} 16: {1,1,1,1} 17: {7} 18: {1,2,2} 20: {1,1,3} 21: {2,4} 22: {1,5} 24: {1,1,1,2}
Crossrefs
Programs
-
Mathematica
prix[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; Select[Range[100],!And@@CompositeQ/@prix[#]&]
Comments