Problem 5
Write a function isSmithNum which takes one real number from the users and return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at Smith number. A Smith number must be positive and have more than one factor.
Note: Include at least one more subfunction to decompose your problem.
Examples:
# example 1
Input: isSmithNum(4)
Output: true
# example 2
Input: isSmithNum(265)
Output: true
# example 3
Input: isSmithNum(5)
Output: false
# example 4
Input: isSmithNum(pi)
Output: false