Determine whether a positive integer is divisible by the sum of its digits.
Constraints
Example
>>> is_harshad(18) True >>> is_harshad(19) False >>> is_harshad(1) True >>> is_harshad(100) True
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints