Perfect Number — Solution & Editorial
Sum divisors in pairs (d, N/d) up to √N, starting the total at 1 and excluding N itself.
Complexity: O(√N)
Sum divisors in pairs (d, N/d) up to √N, starting the total at 1 and excluding N itself.
Complexity: O(√N)