I need to write a c++ program to find prime number within the range. But I don't know what the meaning of this code: j<=sqrt(i)
int main() {
int num1,num2;
int fnd=0,ctr=0;
cout << "enter first number: ";
cin >> num1;
cout << "Enter second number: ";
cin >> num2;
for(int i=num1;i<=num2;i++)
{
for(int j=2;j<=sqrt(i);j++)
{
if(i%j==0)
ctr++;
}
if(ctr==0&&i!=1)
{ fnd++;
cout<<i<<" ";
ctr=0;
}
ctr=0;
}
}