Easy
A perfect number equals the sum of its positive divisors excluding itself. Given an integer n, return true if it is a perfect number.
n
true
Input: n = 28 Output: true Explanation: 28 = 1 + 2 + 4 + 7 + 14.
Input: n = 7 Output: false