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.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


The last nonzero digit code is based on the work of Vladimir Dudchenko, the first prize winner of the Russian Student Mathematica contest.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.