Problem 1012. Determine input is a perfect number

Created by Binbin Qi

Perfect number number is that the sum of all divisors of a positive integer, except the number itself, equals the number.

for example:

28 = 1 + 2 + 4 +7 +14;

so return true

10 ~= 1 + 2+ 5

return false

Tags

Problem Group

25 solvers submitted 39 solutions (1.56 solutions/solver).