Jai 2
Jai 2
number or not
A perfect number is a positive integer number in which sum of all positive
divisors excluding the number itself is equal to that number.
Perfect Number Examples, 28 is perfect number since its divisors are 1, 2, 4, 7
and 14. Sum of divisors is: 1+2+4+7+14=28
For example:
Input Result
28 perfect number
27 not a perfect number
496 perfect number
890 not a perfect number
Answer: