The least_common_multiple function takes a set of numbers and calculates their least common multiple using the prime factorization method.

least_common_multiple(...)

Arguments

...

The numbers for which you want the least common multiple.

Value

A single integer value representing the least common multiple of the set of inputs.

Note

The absolute values of the input is used in calculating the least common multiple.

Examples

least_common_multiple(4, 7, 11)
#> [1] 308