Cody

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

Solution 1539634

Submitted on 24 May 2018
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   Fail
m = 1; n_correct = 5; assert(isequal(factorialForZeros(m),n_correct))

Assertion failed.

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

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.