OFFSET
1,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000 (n = 1..516 from Harry J. Smith)
EXAMPLE
321 = 3*107, 3 + 2 + 1 = 6 = 3*2*1.
MATHEMATICA
sdpdQ[n_]:=Module[{idn=IntegerDigits[n]}, Total[idn]==Times@@idn]; Module[ {upto=25000, cs}, cs=Complement[Range[upto], Prime[Range[PrimePi[upto]]]]; Select[cs, sdpdQ]] (* Harvey P. Dale, Oct 14 2014 *)
PROG
(PARI) isok(k) = {if(isprime(k), 0, my(d=digits(k)); vecprod(d) == vecsum(d))} \\ Harry J. Smith, Feb 09 2010
CROSSREFS
KEYWORD
base,nonn,changed
AUTHOR
Labos Elemer, Dec 13 2001
STATUS
approved