You are viewing a single comment's thread. Return to all comments →
Why is this faster than for i in range(a,b): if math.sqrt(i) % 1 == 0: sq += 1
? I, know it is faster just dont understand why.
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 →
Why is this faster than for i in range(a,b): if math.sqrt(i) % 1 == 0: sq += 1
? I, know it is faster just dont understand why.