Write a function to check if a number is perfect. (A number is perfect if the sum of its proper divisors equals the number itself.)
HardProblem Statement
Write a function to check if a number is perfect. (A number is perfect if the sum of its proper divisors equals the number itself.)
Sample Input
28
Sample Output
True
Limits
Time: 2s · Memory: 256 MB