[Tutor] OverflowError: cannot fit 'long' into an index-sized integer

Keith Winston keithwins at gmail.com
Tue Jan 7 21:11:25 CET 2014


I think your approach is fine, you might need to fine tune your algorithm.

hint below.











if you want it: is_p doesn't need to be nearly as big as you specify. There
are a couple other minor problems.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140107/75ec7ea8/attachment.html>


More information about the Tutor mailing list