[Tutor] OverflowError in lucky numbers script

Shreesh bhat shreeshbhat90 at gmail.com
Mon Jan 23 14:13:50 CET 2012


I tried optimizing everything all things you guys pointed out and still its
orders of magnitude away from the expected result.
The program should check the islucky condition between range of (1,10**18)
numbers and iterate over that 10**5 times.
This program slows down more than 16 secs at (1,10**8) and 1 time.
Which approach should i follow?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120123/8ee0345f/attachment.html>


More information about the Tutor mailing list