Mojo function
lcm
lcm(m: Int, n: Int, /) -> Int
Computes the least common multiple of two integers.
Args:
Returns:
Int
: The least common multiple of the two integers.
lcm(s: Span[Int, origin], /) -> Int
Computes the least common multiple of a span of integers.
Args:
- s (
Span
): A span of integers.
Returns:
Int
: The least common multiple of the span.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!