JavaCodeReview Definition of a Perfect Number: In mathematics a perfect number is defined as an integer which is the sum of its proper positive divisors; that is, the sum of the positive divisors not including the number itself. Some examples of perfect numbers are:
6 = 1 + 2 + 3 28 = 1 + 2 + 4 + 7 + 14 496 = 1 + 2 + 4 + 8 + 16 + 31 + 62 + 124 + 248