Some time ago, my mother showed me a new mathematics textbook, a book on elementary number theory; and its not so elementary. Something that caught my attention was the Perfect Number. A perfect number is a number who is equal to the sum of its divisors. Like 6, because 6 = 1 + 2 + 3. I took an interest in this because only the first four perfect numbers have been uncovered, 6, 28, 496, and 8128. I wrote a simple C++ app (I know my logic is not optimal, but hey this was for fun). My code is attached, if you are brave enough to uncover the 5th perfect number!
Code. I do intend to make some improvements to it in some spare time.
9 Sept '09: The code has been updated to make an optimization. I also noticed something: the ones place seems to alternate between 6 and 8, and the tens place seems to alternate between 2 and 9. So, will the 5th perfect number end in ..96?
