Cody

# Problem 44071. Smallest n, for n! to have m trailing zero digits

Solution 2546790

Submitted on 14 Jun 2020 by Nikolaos Nikolaou
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
m = 1; n_correct = 5; assert(isequal(factorialForZeros(m),n_correct))

n = 5

2   Pass
m = 2; n_correct = 10; assert(isequal(factorialForZeros(m),n_correct))

n = 10

3   Pass
m = 6; n_correct = 25; assert(isequal(factorialForZeros(m),n_correct))

n = 25

4   Pass
m = 5; n_correct = 25; assert(isequal(factorialForZeros(m),n_correct))

n = 25

5   Pass
m = 4; n_correct = 20; assert(isequal(factorialForZeros(m),n_correct))

n = 20

6   Pass
m = 156; n_correct = 625; assert(isequal(factorialForZeros(m),n_correct))

n = 625

7   Pass
m = 155; n_correct = 625; assert(isequal(factorialForZeros(m),n_correct))

n = 625

8   Pass
m = 154; n_correct = 625; assert(isequal(factorialForZeros(m),n_correct))

n = 625

9   Pass
m = 153; n_correct = 625; assert(isequal(factorialForZeros(m),n_correct))

n = 625

10   Pass
m = 152; n_correct = 620; assert(isequal(factorialForZeros(m),n_correct))

n = 620