A181559 Numbers with three distinct prime factors (each of which may or may not be repeated) which when concatenated in any order form a prime number.
3311, 23177, 27181, 32153, 36421, 41237, 53977, 86507, 110971, 125069, 142373, 162239, 190267, 208579, 254947, 256413, 288659, 298991, 353683, 377839, 400631, 500981, 543337, 593747, 769239, 776797, 853811, 875483, 901949, 964481, 996611, 1053787, 1135673
Offset: 1
Programs
-
Mathematica
okQ[n_] := Module[{pfs = Transpose[FactorInteger[n]][[1]]}, Length[pfs] == 3 && And @@ PrimeQ[FromDigits /@ (Flatten /@ (IntegerDigits /@ Permutations[pfs]))]]; Select[Range[2100000], okQ]
Comments