Problem 793 · Hard

Preimage Size of Factorial Zeroes Function

Binary search the smallest x with at least k trailing zeros in x!; the answer is 5 if it hits k exactly, else 0.

Open the interactive visualisation