Smith Number in JAVA
Smith Number in JAVA Smith Number : 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 Smith Numbers are : 4, 22, 27, 58, 85, 94, 121........ Etc. For Example :- Input : 22 Sum of digits : 2 + 2 = 4 Sum of digits of Prime Factors : 2 + 2 = 4 Output ...