A352584 Numbers k whose decimal representation contains all distinct prime factors of k as substrings.
2, 3, 5, 7, 11, 13, 17, 19, 23, 25, 29, 31, 32, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 125, 127, 128, 131, 135, 137, 139, 149, 151, 157, 163, 167, 173, 175, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 243, 250
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
str[n_]:=ToString/@First/@FactorInteger[n]; fQ[n_]:=Union[Table[StringContainsQ[ToString[n],str[n][[i]]],{i,Length[str[n]]}]]=={True}; Select[Range[2,1000],fQ] dpfQ[n_]:=Union[SequenceCount[IntegerDigits[n],IntegerDigits[#]]&/@(FactorInteger[n][[;;,1]])] == {1}; Select[Range[2,300],dpfQ] (* Harvey P. Dale, May 30 2023 *)
Comments