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 - 11 years ago
In Haskell
Output is
reply permalink
Max Burstein - 11 years ago
Nicely done
reply permalink
PyBanana - 11 years ago
Python 2.7 one liner!
reply permalink
Max Burstein - 11 years ago
I love these python one liners. Good stuff
reply permalink
asheehan - 11 years ago
With Ruby
reply permalink