View Single Post
Go4Expert Founder
29Nov2006,16:17  
shabbir's Avatar
Quote:
Originally Posted by pradeep
Its not using square root anywhere, and neither does it require too. Could you please tell me why does it need to use square root??
He edited the code to find a no is prime or not to loop till the sqrt(n) and not till n/2