For (I = 2;; I< = (int) sqrt (n); What does squrt in i++ mean? How to understand?
for(I = 2; I< = (int) sqrt (n); i++)
Sqrt is a library function in math.h, which calculates the square root. Because the value obtained after the square root may be floating-point data, it is cast to int type (shaping).