#[codesnip::entry] pub fn gcd(mut a: u64, mut b: u64) -> u64 { while b != 0 { a %= b; std::mem::swap(&mut a, &mut b); } a } #[codesnip::entry(include("gcd"))] pub fn lcm(a: u64, b: u64) -> u64 { a / gcd(a, b) * b }