WLJS LogoWLJS Notebook

Divisors

Divisors[n] gives a list of the integers that divide n.

Examples

Find all divisors:

Divisors[24]
(* {1, 2, 3, 4, 6, 8, 12, 24} *)

Divisors of a prime:

Divisors[17]
(* {1, 17} *)

Count divisors:

Length[Divisors[100]]
(* 9 *)

Please visit the official Wolfram Language Reference for more details.

On this page