@ashish you forget one condition that c=x^2+y^2 iff c= 1 mod(4) e.g. c %4==1 & also x!=y see above link its great & simple.
Thanks to Fermat & Euler Thanks Shashank -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
