[Tutor] how to handle big numbers

Alan Gauld alan.gauld at btinternet.com
Fri Dec 9 20:52:54 CET 2011


On 09/12/11 19:25, surya k wrote:
>
> Finding factorial of 8 or 9 isn't big. If I would like to find factorial of 32327, how can I ?? 		 	   		


Just type it in, but expect to wait a long time for the answer...
Python integers are limited by the memory of your machine.

factorial(30000) took about 7 seconds on my PC - much faster than I 
expected!

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list