Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 1012. Determine if input is a perfect number

Created by Binbin Qi

A perfect number occurs whent the sum of all divisors of a positive integer, except the number itself, equals the number.


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

so return true

 10 ~= 1 + 2 + 5

so return false


Problem Group

Solution Statistics

79 correct solutions 70 incorrect solutions
Last solution submitted on Jul 22, 2016