Skip to content
Chris Petersen edited this page Oct 21, 2015 · 1 revision

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
Clone this wiki locally