469,891 Members | 2,139 Online

# armstrong number

how to write a program that will find all armstrong numbers between 1 to 100000
Mar 15 '08 #1
4 2347
JosAH
11,448 Expert 8TB
how to write a program that will find all armstrong numbers between 1 to 100000
There are no Armstrong numbers with five digits or more; even for nine digits
the potential Armstrong number can only be 9*9^3 == 9^4 == 6561 only four
digits. A small program showed that there also aren't any four digit Armstrong
numbers so only the well known three digit Armstrong numbers exist: 0, 1, 153,
370, 371 and 407.

kind regards,

Jos
Mar 15 '08 #2
Please do not delete posts without any explanation.
Sep 26 '08 #3
There are no Armstrong numbers with five digits or more; even for nine digits
the potential Armstrong number can only be 9*9^3 == 9^4 == 6561 only four
digits. A small program showed that there also aren't any four digit Armstrong
numbers so only the well known three digit Armstrong numbers exist: 0, 1, 153,
370, 371 and 407.

kind regards,

Jos
Please check Wikipedia and prove yourself wrong.
Sep 26 '08 #4
Banfa
9,065 Expert Mod 8TB