pub fn fact(m: u64) -> u64
Calculate the nth factorial number.
The n! is defined as n * (n-1) * … * 1