Problem 2544. Determine if given number is perfect
36.44% Correct | 63.56% Incorrect
Last Solution submitted on Feb 13, 2023
Show 1 older comment
Guillaume on 3 Sep 2014
Could you improve your test suite with more test cases? (e.g. 496, 28 (true) and 26, 500 (false))
Ned Gulley on 4 Sep 2014
I added some more tests.
Jean-Marie Sainthillier on 6 Sep 2014
See problem 1012.
J.R.! Menzinger on 16 Sep 2014
The point "the sum of its factors" is not correct. it must be "the sum of all his divisors"... :-/
Christian Schröder on 31 Dec 2022
Et tu? :)
Dyuman Joshi on 31 Dec 2022
This was during the initial period of me learning to code on my own. Though I have only solved a few problems with such solutions.
I have solved the question properly now and this solution is no longer valid.
Problem Recent Solvers40
Check if number exists in vector
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!