Given an integer num, determine whether it is a perfect number.
A perfect number is a positive integer that is equal to the sum of all of its positive divisors excluding itself.
Return true if num is perfect, otherwise return false.
Note: The divisor sum excludes
numitself.
Constraints:
num
Given an integer num, determine whether it is a perfect number.
A perfect number is a positive integer that is equal to the sum of all of its positive divisors excluding itself.
Return true if num is perfect, otherwise return false.
Note: The divisor sum excludes
numitself.
Constraints:
num