[Tutor] how to handle big numbers
Robert Sjoblom
robert.sjoblom at gmail.com
Fri Dec 9 21:32:35 CET 2011
> There are other approaches that may bear looking at, like the SciPy library.
> But first we'd need to know just what you need with this factorial.
Wouldn't a prime swing implementation be the absolutely fastest?
Something like this:
http://en.literateprograms.org/Special:Downloadcode/Factorials_with_prime_factorization_%28Python%29
(Well, excepting actually storing prime numbers in a list which would
be much, much faster)
--
best regards,
Robert S.
More information about the Tutor
mailing list