chickadee » math » divisors

divisors zprocedure
z
integer

Returns a list of all positive divisors of the integer z. The divisors appear in ascending order.

> (divisors 120)
(1 2 3 4 5 6 8 10 12 15 20 24 30 40 60 120)
> (divisors -120)
(1 2 3 4 5 6 8 10 12 15 20 24 30 40 60 120)