OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
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))
print([k for k in range(1380) if ok(k)]) # Michael S. Branicky, May 11 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Nov 15 1998
EXTENSIONS
Name clarified by Hans Rudolf Widmer, May 11 2023
STATUS
approved