Previous Up Next

2.6.9  The divisors of a number : idivis divisors

idivis or divisors gives the list of the divisors of a number (or of a list of numbers).
Input :

idivis(36)

Output :

[1,2,4,3,6,12,9,18,36]

Input :

idivis([36,22])

Output :

[[1,2,4,3,6,12,9,18,36],[1,2,11,22]]

Previous Up Next