WLJS LogoWLJS Notebook

LCM

LCM[n1, n2, ...] gives the least common multiple of the integers.

Examples

Find LCM of two numbers:

LCM[4, 6]
(* 12 *)

LCM of multiple numbers:

LCM[3, 4, 5]
(* 60 *)

LCM of coprime numbers:

LCM[7, 11]
(* 77 *)

Please visit the official Wolfram Language Reference for more details.

On this page