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 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.

Example

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

so return true

 10 ~= 1 + 2 + 5

so return false

Tags

Problem Group

Solution Statistics

60 correct solutions 44 incorrect solutions
Last solution submitted on Dec 13, 2014