The number of perfect squares up to is . And .
So by the power rule. Square roots and logarithms are related through exponentiation.
This shows up in many algorithms: computing square roots, checking primality, factoring numbers. All involve logarithmic relationships with the input size.