Factorial Digits
Factorial Digits
Computing leads to large numbers quickly. In fact, the largest factorial most calculators can handle is 69!, because 70! is a 101-digit number. It is easy, however, to compute a few leading digits and the total number of digits, as well as the number of trailing zeros of a factorial. With some extra work you can also compute the last nonzero digit.
n!