Popular recipes tagged "factorial" but not "n"http://code.activestate.com/recipes/tags/factorial-n/2014-03-08T13:09:41-08:00ActiveState Code RecipesFactorial (Python)
2014-03-08T13:09:41-08:00Johnhttp://code.activestate.com/recipes/users/4189390/http://code.activestate.com/recipes/578848-factorial/
<p style="color: grey">
Python
recipe 578848
by <a href="/recipes/users/4189390/">John</a>
(<a href="/recipes/tags/factorial/">factorial</a>, <a href="/recipes/tags/loop/">loop</a>, <a href="/recipes/tags/loops/">loops</a>, <a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/range/">range</a>, <a href="/recipes/tags/simple/">simple</a>).
</p>
<p>Just a simple factorial program I made in Python 3.</p>
Calculate Trailing Zeroes in a Factorial (Python)
2011-08-15T17:23:03-07:00Stijn de Graafhttp://code.activestate.com/recipes/users/4178055/http://code.activestate.com/recipes/577844-calculate-trailing-zeroes-in-a-factorial/
<p style="color: grey">
Python
recipe 577844
by <a href="/recipes/users/4178055/">Stijn de Graaf</a>
(<a href="/recipes/tags/calculate/">calculate</a>, <a href="/recipes/tags/calculation/">calculation</a>, <a href="/recipes/tags/factorial/">factorial</a>, <a href="/recipes/tags/trailing/">trailing</a>, <a href="/recipes/tags/zero/">zero</a>, <a href="/recipes/tags/zeroes/">zeroes</a>).
</p>
<p>Calculates the number of trailing zeroes on the end of x! when the user inputs x.</p>
Faster Factorial (Python)
2010-05-23T16:06:33-07:00Ivo Danihelkahttp://code.activestate.com/recipes/users/4168810/http://code.activestate.com/recipes/577241-faster-factorial/
<p style="color: grey">
Python
recipe 577241
by <a href="/recipes/users/4168810/">Ivo Danihelka</a>
(<a href="/recipes/tags/factorial/">factorial</a>).
Revision 3.
</p>
<p>If you are calling factorial() many times, it is worth to cache the computed factorials.</p>