Skip to main content

lcm_n

Function lcm_n 

Source
pub fn lcm_n(xs: &[u64]) -> u64
Expand description

Least common multiple of n numbers.

ยงExamples

use mathverse_core::integer::lcm_n;

assert_eq!(lcm_n(&[4, 6, 8]), 24);