Perfect Number

Problem Id: 507 Difficulty: Easy


Intuition

Solution


class Solution:
    def checkPerfectNumber(self, num: int) -> bool:
        return num in (6, 28, 496, 8128, 33550336, 8589869056)