OFFSET
1,1
EXAMPLE
341 is a composite number where the largest digit is the sum of all the other digits.
330 is composite and has largest digit 3, which equals the sum of all digits of 330 except for one occurrence of 3, viz. 3+0.
PROG
(Magma) [ n: n in [2..390] | not IsPrime(n) and m eq &+S - m where m is Max(S) where S is Intseq(n, 10) ]; // Klaus Brockhaus, Apr 12 2009
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Parthasarathy Nambi, Mar 01 2009
EXTENSIONS
Entry revised by N. J. A. Sloane, Mar 27 2009
0 removed, 110 and 330 inserted, extended, definition clarified, second example and keyword less added by Klaus Brockhaus, Apr 12 2009
STATUS
approved