Search
⌘K

Leetcode 507. Perfect Number

Check whether a positive integer equals the sum of its proper positive divisors (excluding itself); the core challenge is efficiently finding and summing divisor pairs (using the sqrt(n) pattern) to handle n up to 1e8.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.