The algorithm should check a given number and return 'true' if it is a perfect number or 'false' if it is not.
The wikipedia definition of a perfect number:
In mathematics, a perfect number is a positive integer that is the sum of its proper positive divisors, that is, the sum of the positive divisors excluding the number itself. Equivalently, a perfect number is a number that is half the sum of all of its positive divisors (including itself), or σ(n) = 2n.itself), or σ(n) = 2n.
The task is to solve this in the least amount of characters. Bonus points if it can check an arbitrarily high number.