fn factorial_loop(n: u64) -> u64 { let mut result = 1; for i in 2..=n { result *= i; } result }