perfect - part-cw/lambdanative GitHub Wiki

(perfect? n)

Returns true if the argument is a perfect number, i.e. the sum of its divisors other than itself equals itself.

Parameter Description
n integer

Example

> (perfect? 5)
#f
> (perfect? 6)
#t