You are viewing a single comment's thread. Return to all comments →
Don't need to iterate at all, you can just use: floor(sqrt(b)) - ceil(sqrt(a)) + 1
floor(sqrt(b)) - ceil(sqrt(a)) + 1
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
Don't need to iterate at all, you can just use:
floor(sqrt(b)) - ceil(sqrt(a)) + 1