how to write a program that will find all armstrong numbers between 1 to 100000
armstrong number
Collapse
This topic is closed.
X
X
-
Tags: None
-
There are no Armstrong numbers with five digits or more; even for nine digitsOriginally posted by himanshu srivastavahow to write a program that will find all armstrong numbers between 1 to 100000
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.Originally posted by JosAHThere 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,
JosComment
Comment