[Tutor] OverflowError in lucky numbers script

Marc Tompkins marc.tompkins at gmail.com
Tue Jan 24 04:31:21 CET 2012


On Mon, Jan 23, 2012 at 12:08 PM, Shreesh bhat <shreeshbhat90 at gmail.com>wrote:

> No,i meant sum of digits is prime and also sum of square of digits is
> prime.
> E.g: 23 is lucky cos
> 2+3=>5 (prime)
> 2**2+3**2 => 4+9 => 13 (prime)
>

Thanks for the clarification - or I should say "correction", since "sum of
square of digits" and "square of sum of digits" are NOT equivalent!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120123/02e935e1/attachment.html>


More information about the Tutor mailing list