General Tech

How big are factorials?

The article discusses the size of factorials, specifically the number of digits in the factorial of a large number. The author notes that the factorial of 100, denoted as 100!, is a 158-digit number. However, the factorial of 200 is an enormous number with 3,599,580 digits. The author provides a table with factorials of numbers from 1 to 200, showing the number of digits in each. The table reveals that the number of digits in the factorial increases exponentially as the input number increases. The author also mentions that the factorial of 1,000 has 2,549,587,000 digits, and the factorial of 1,000,000 has 456,272,997,260,881 digits. Finally, the author provides a Python function to calculate the number of digits in the factorial of a given number.

Read the full article at eli.thegreenplace.net →