Determine if a composite number's digit sum equals the digit sum of its prime factors.
Constraints
Example
>>> is_smith(22) True >>> is_smith(666) True >>> is_smith(7) False >>> is_smith(1) False
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints