sign changed from > to <

Notice that 25 is a square

Are you looping through the for loop while
Code:
i<sqrt(n) or i<=sqrt(n)