Problem 44068. The number of trailing zero digit of a factorial

For given positive integer n, take factorial of that number. How many trailing zeros does it have?

Example: factorial(11) = 39916800

Its last zero-digit count is 2.

Optional: Can you make an efficient algorithm for a very large n?

Solution Stats

56.2% Correct | 43.8% Incorrect
Last Solution submitted on Feb 22, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers60

Suggested Problems

More from this Author9

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!