<div class="gmail_quote">On Mon, Jan 23, 2012 at 8:03 PM, Dave Angel <span dir="ltr">&lt;<a href="mailto:d@davea.name">d@davea.name</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div></div><div class="h5">On 01/23/2012 10:31 PM, Marc Tompkins wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Jan 23, 2012 at 12:08 PM, Shreesh bhat&lt;<a href="mailto:shreeshbhat90@gmail.com" target="_blank">shreeshbhat90@gmail.com</a>&gt;<u></u>wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No,i meant sum of digits is prime and also sum of square of digits is<br>
prime.<br>
E.g: 23 is lucky cos<br>
2+3=&gt;5 (prime)<br>
2**2+3**2 =&gt;  4+9 =&gt;  13 (prime)<br>
<br>
</blockquote>
Thanks for the clarification - or I should say &quot;correction&quot;, since &quot;sum of<br>
square of digits&quot; and &quot;square of sum of digits&quot; are NOT equivalent!<br>
<br>
</blockquote></div></div>
But Shreesh&#39; original wording was:<div class="im"><br>
<br>
A number is called lucky if the sum of its digits, as well as the sum of<br>
the squares of its digits is a prime number. How many numbers between A and<br>
B are lucky?<br>
<br></div>
in a message 1/22/12 at 1:11, subject: &quot;Re: [Tutor] Tutor Digest, Vol 95, Issue 55&quot;<br>
<br>
That thread soon got renamed to &quot;OverflowError in lucky numbers script&quot;<br><font color="#888888">
<br></font></blockquote><div>Yes, but I - and apparently others - missed that thread; someone (Steven D&#39;Aprano?) asked for a re-statement of the problem; the re-statement (which was the first time I&#39;d seen the problem definition) was confusing.  Sorry for starting a false trail; sorry for jumping in late.<br>
</div></div>