armstrong number

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • himanshu srivastava
    New Member
    • Mar 2008
    • 1

    armstrong number

    how to write a program that will find all armstrong numbers between 1 to 100000
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by himanshu srivastava
    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

    Comment

    • Jondlar
      New Member
      • Sep 2008
      • 9

      #3
      Please do not delete posts without any explanation.

      Comment

      • Jondlar
        New Member
        • Sep 2008
        • 9

        #4
        Originally posted by JosAH
        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.

        Comment

        • Banfa
          Recognized Expert Expert
          • Feb 2006
          • 9067

          #5
          Thread Closed

          The original post was low quality and it has not developed anywhere

          Comment

          Working...