0

What is a smith number

19th Nov 2017, 8:12 AM
Ashish Upadhyay
Ashish Upadhyay - avatar
3 Antworten
+ 2
In the past I made a program to find Smith numbers:, https://code.sololearn.com/c93V1ebFPn7u/?ref=app
19th Nov 2017, 12:57 PM
Paul
Paul - avatar
+ 1
There is another thread with the same subject: https://www.sololearn.com/discuss/867381/?ref=app
19th Nov 2017, 1:03 PM
Paul
Paul - avatar
0
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. For example, 378 = 2 × 3 × 3 × 3 × 7 is a Smith number since 3 + 7 + 8 = 2 + 3 + 3 + 3 + 7.
19th Nov 2017, 10:50 AM
Augustinas Lukauskas
Augustinas Lukauskas - avatar