A perfect number is a positive integer that is equal to the sum of its proper divisors, excluding itself. In other words, a perfect number is a number where the sum of its divisors (excluding the number itself) equals the number itself.
For example, the number 28 is a perfect number because its divisors (excluding itself) are 1, 2, 4, 7, and 14, and their sum is 1 + 2 + 4 + 7 + 14 = 28.
To check if a given number is a perfect number, you would need to:
Find the divisors of the number (excluding the number itself).
Sum up these divisors.
Compare the sum with the original number. If they are equal, then the number is a perfect number.