[Tutor] OverflowError in lucky numbers script
Shreesh bhat
shreeshbhat90 at gmail.com
Sun Jan 22 12:37:21 CET 2012
I m using Python 2.7
Steven wrote:
" Scale your numbers from time to time, to avoid them getting too big "
What does this mean?
inp refers to the sample input test case I have given at first.Its a string
containing two numbers,
The program has to handle large numbers till 10**18 and also has to execute
considerably fast (within 16 CPU time).
Using xrange() causes the OveflowError,Whereas using range() causes too
many items
Is writing my own generator only solution? Or is there another way in which
i can generate big numbers and in considerably fast manner?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120122/0ca86284/attachment.html>
More information about the Tutor
mailing list