Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Joined: Mar 31, 2006
well this is what i ended up with: What is your name? neo
Enter a number: 5000
6: Perfect number 28: Perfect number 496: Perfect number
945: Odd abundant number 1575: Odd abundant number 2205: Odd abundant number 2835: Odd abundant number 3465: Odd abundant number 4095: Odd abundant number 4725: Odd abundant number do you guys thing the answer is right??
Originally posted by apollo abel: ...do you guys thing the answer is right??
Well, it found the 3 perfect numbers in that range (the 4th isn't until 8128). And it found the first abundant odd number, 945, as well as odd multiples of 945 within range, 2835 and 4725. So the results look plausible.
The real questions are:
How confident are you in your algorithm?
Do you have a way to verify test results?
(If this page is accurate, there are 2487 abundant numbers below 10,000. You might try using your code to count these, and see if you get the same result.) [ April 11, 2006: Message edited by: marc weber ]