In number theory, a perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. This program determines whether a positive integer has this property.