Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
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.
Contributed by: Oleksandr Pavlyk (March 2011)
Additional contributions by: Stan Wagon
Open content licensed under CC BY-NC-SA
The last nonzero digit code is based on the work of Vladimir Dudchenko, the first prize winner of the Russian StudentMathematicacontest.
Wolfram Demonstrations Project
Published: March 9 2011