CP Python Library
Divisors
Lists divisors of a number.
divisors
Arguments
n: int
: integer whose divisors will be listed
Returns
list[int]
: divisors of
n
Complexities
O
(
n
)
O(\sqrt{n})
O
(
n
)
Code Test
Run
Standard Output
Standard Error