A Natural number is said to be SMITH NUMBER, if sum of all the digits of N
and sum of all the digits of all the prime factors of N is same.
e.g., Input N = 666 sum of all its digits = 18
Prime factors of 666 = 2, 3, 3, 37
Sum of digits of prime factors (2 + 3 + 3 +(3+7)) = 18
So, 666 is a. SMITH NUMBER.
Write a program to print all three digit Smith Numbers.
Answers
Answered by
0
Answer:
A smith number is a composite number, the sum of whose digits is the sum of the digits of its prime factors obtained as a result of prime factorization (excluding 1). The first few such numbers are 4, 22, 27, 58, 85, 94, 121
Explanation:
Please mark me as a Brain list
Similar questions