Re: [Tutor] Fwd: Need help with Factorial algorithm using Python

2008-09-04 Thread Chris Fuller
The point of a lot of these challenges is to be smart with your math as well as your code. A brute force approach isn't going to work very well, especially in this case. An integer with 7^20 trailing zeros isn't even going to fit in your RAM. An observation: every trailing zero implies a fac

[Tutor] Fwd: Need help with Factorial algorithm using Python

2008-09-04 Thread Luke Paireepinart
Oops, accidentally replied off list. -- Forwarded message -- From: Luke Paireepinart <[EMAIL PROTECTED]> Date: Thu, Sep 4, 2008 at 9:39 AM Subject: Re: [Tutor] Need help with Factorial algorithm using Python To: Robert Berman <[EMAIL PROTECTED]> On Thu, Sep 4, 2008 at 8:59 AM,