Thursday Code Puzzler: Harshad Numbers
Thursday - time for another code puzzler. The idea is simple: solve the coding problem as efficiently as you can, in any language or framework that you find suitable.
Note: Even though there really is nothing stopping you from finding a solution to this on the internet, try to keep honest, and come up with your own answer. It's all about the participation!
A Harshad or Niven number is a number that is divisible by the sum of its digits. 201 is a Harshad number because it is divisible by 3 (the sum of its digits.)
Your challenge is to find all such numbers under 100,000 in the most efficient way possible. Good luck!
Catch up on all our previous puzzlers here