Comment by zahlman
1 year ago
Each sum involves determining the digits to sum, which involves using % multiple times.
Also, you don't have to use % in order to decide whether to perform the sum-of-digits check for a given value. You can just iterate over values to check in steps of 9.
No comments yet
Contribute on Hacker News ↗