Today's objective is to create a program that finds all the Armstrong Numbers from 10 to 10000 inclusive. An Armstrong Number is a number that is the sum of its own digits each raised to the power of the number of digits. For example, 153 is considered an Armstrong Number 1^3 + 5^3 +3^3 = 153.
Comments:
Jason Brady - 10 years, 3 months ago
In Haskell
Output is
reply permalink
Max Burstein - 10 years, 3 months ago
Nicely done
reply permalink
PyBanana - 10 years, 3 months ago
Python 2.7 one liner!
reply permalink
Max Burstein - 10 years, 3 months ago
I love these python one liners. Good stuff
reply permalink
asheehan - 10 years, 3 months ago
With Ruby
reply permalink