A perfect number occurs whent the sum of all divisors of a positive integer, except the number itself, equals the number.
Example
28 = 1 + 2 + 4 + 7 + 14;
so return true
10 ~= 1 + 2 + 5
so return false
4840 Solvers
434 Solvers
Matrix indexing with two vectors of indices
408 Solvers
208 Solvers
1492 Solvers
Problem Tags