Least_common_multiple
  • 27 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Least_common_multiple

  • Dark
    Light
  • PDF

Article Summary

Given a list of numbers, calculates the least common multiple for them.

Function signature

LEAST_COMMON_MULTIPLE(list: Array) => Number
ParameterDescription
ListList of numeric values

Examples

FormulaReturn value
LEAST_COMMON_MULTIPLE([10, 100, 1000])1000
LEAST_COMMON_MULTIPLE([14, 21, 42])42
LEAST_COMMON_MULTIPLE([12, 9, 15])180

Was this article helpful?

What's Next