Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

Solution Statistics

56 correct solutions 41 incorrect solutions
Last solution submitted on Aug 31, 2014