Choose a positive integer n
Find all positive divisors of n except n itself
Add those divisors together
Check whether the sum equals n
If the sum equals n, n is a perfect number
If the sum does not equal n, n is not a perfect number
Choose a positive integer n
Find all positive divisors of n except n itself
Add those divisors together
Check whether the sum equals n
If the sum equals n, n is a perfect number
If the sum does not equal n, n is not a perfect number