abstract:A Smith number is a composite number for which, in a given base (in base 10 by default), the sum of its digits is equal to the sum of the digits in its prime factorization.In the case of numbers that are not square-free, the factorization is written without exponents, writing the repeated factor as many times as needed.