1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use crate::legendre_formula_u64::legendre; /// trailing zeros in decimal. pub fn count_factorial_trailing_zeros(n: u64) -> u64 { legendre(n, 5) } // TODO: #[cfg(test)] mod tests { #[test] fn test() {} }