|
|
A035140
|
|
Digits of juxtaposition of prime factors of composite n appear also in n.
|
|
5
|
|
|
25, 32, 121, 125, 128, 132, 135, 143, 175, 187, 243, 250, 256, 295, 312, 324, 341, 351, 375, 432, 451, 512, 625, 671, 679, 735, 781, 875, 928, 932, 1023, 1024, 1053, 1057, 1207, 1243, 1250, 1255, 1324, 1325, 1328, 1331, 1352, 1359, 1372, 1375, 1377, 1379
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
295 = 5 * 59 since {5,9} is a subset of {2,5,9}.
|
|
MATHEMATICA
|
id[n_]:=Complement[Range[0, 9], IntegerDigits[n]]; fac[n_]:=Flatten[IntegerDigits[Take[FactorInteger[n], All, 1]]]; t={}; Do[If[!PrimeQ[n] && Intersection[id[n], fac[n]] == {}, AppendTo[t, n]], {n, 2, 1380}]; t (* Jayanta Basu, May 01 2013 *)
Select[Range@10000, CompositeQ@# && SubsetQ[IntegerDigits@#, Flatten@IntegerDigits@(#[[1]] & /@ FactorInteger@#)] &] (* Hans Rudolf Widmer, May 11 2023 *)
|
|
PROG
|
(Python)
from sympy import factorint, isprime
def ok(n): return n > 1 and not isprime(n) and set("".join(str(p) for p in factorint(n))) <= set(str(n))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|