OFFSET
1,1
COMMENTS
Or, positive integers whose prime indices include at least one 1 or prime number.
A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798.
EXAMPLE
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}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[100], !And@@CompositeQ/@prix[#]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Dec 28 2024
STATUS
approved
