A number is perfect if it is equal to the sum of its factors, excluding itself.
Example
The number 6 is perfect since its factors (other than 6) are 1, 2, and 3.
1 + 2 + 3 = 6
Return 1 for true (perfect), otherwise 0.

Solution Stats

128 Solutions

48 Solvers

Last Solution submitted on Jan 20, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers48

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!