<div class="gmail_quote">On Mon, Jan 23, 2012 at 8:03 PM, Dave Angel <span dir="ltr"><<a href="mailto:d@davea.name">d@davea.name</a>></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<<a href="mailto:shreeshbhat90@gmail.com" target="_blank">shreeshbhat90@gmail.com</a>><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=>5 (prime)<br>
2**2+3**2 => 4+9 => 13 (prime)<br>
<br>
</blockquote>
Thanks for the clarification - or I should say "correction", since "sum of<br>
square of digits" and "square of sum of digits" are NOT equivalent!<br>
<br>
</blockquote></div></div>
But Shreesh' 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: "Re: [Tutor] Tutor Digest, Vol 95, Issue 55"<br>
<br>
That thread soon got renamed to "OverflowError in lucky numbers script"<br><font color="#888888">
<br></font></blockquote><div>Yes, but I - and apparently others - missed that thread; someone (Steven D'Aprano?) asked for a re-statement of the problem; the re-statement (which was the first time I'd seen the problem definition) was confusing. Sorry for starting a false trail; sorry for jumping in late.<br>
</div></div>