A356845 Odd numbers with gapless prime indices.
1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 23, 25, 27, 29, 31, 35, 37, 41, 43, 45, 47, 49, 53, 59, 61, 67, 71, 73, 75, 77, 79, 81, 83, 89, 97, 101, 103, 105, 107, 109, 113, 121, 125, 127, 131, 135, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 175, 179, 181, 191
Offset: 1
Keywords
Examples
The terms together with their prime indices begin: 1: {} 3: {2} 5: {3} 7: {4} 9: {2,2} 11: {5} 13: {6} 15: {2,3} 17: {7} 19: {8} 23: {9} 25: {3,3} 27: {2,2,2} 29: {10} 31: {11} 35: {3,4} 37: {12} 41: {13} 43: {14}
Crossrefs
Programs
-
Mathematica
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; nogapQ[m_]:=Or[m=={},Union[m]==Range[Min[m],Max[m]]]; Select[Range[1,100,2],nogapQ[primeMS[#]]&]
Comments