use long long int instead of int for X and all except t.and type cast the
sqrt returned value to integer..like int(sqrt(X))

On Sun, May 29, 2011 at 1:55 PM, Vishal Jain <jainv...@gmail.com> wrote:

> Hi Saurabh,
>
> Can you try it for 10? Could not really understand, what are you gonna
> communicate?
>
> 10 = 2*5 (2^2 + 1^2 )*(1*2 + 1^2)... If with this logic you are saying 10
> is prime then all numbers divisible by 5 should be prime.
>
> Could you elaborate your answer more?
>
> Thanks & Regards
> Vishal Jain
> MNo: +91-9540611889
> Tweet @jainvis
> Blog @ jainvish.blogspot.com
> Success taste better when target achieved is bigger.
>
> P *We have a responsibility to the environment.*
>
> *Before printing this e-mail or any other document, let's ask ourselves 
> whether we need a hard copy.*
>
>
>
>
> On Sun, May 29, 2011 at 6:46 AM, saurabh singh <saurab...@gmail.com>wrote:
>
>> In fact we can...though not directly..SInce every number can be broken
>> down as facotrs of prime....Use that property
>>
>>
>> On Sun, May 29, 2011 at 1:12 AM, Tushar Bindal <tushicom...@gmail.com>wrote:
>>
>>> that theorem is for odd primes
>>> 9 is not an odd prime
>>> so we can;t apply this theorem
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Algorithm Geeks" group.
>>> To post to this group, send email to algogeeks@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> algogeeks+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>
>>
>> --
>> Saurabh Singh
>> B.Tech (Computer Science)
>> MNNIT ALLAHABAD
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to