Perfect Numbers

Note

A perfect number is one which is a positive integer that is equal to the sum of its positive divisors excluding the number itself.

Perfect Number

Java

Python