View Single Post
Go4Expert Founder
27Nov2008,18:21  
shabbir's Avatar
You don't need to loop till i but even i/2 or square root of i is also sufficient.