I want to ask that why for loop terminates with return false statement executed as we know loop terminates by using break.
About the function
I want to say i have doubt in that video below which i ask doubt. And the doubt is sir is saying that for loop terminates when return false statement execute but according to me loop cannot terminates with return false statement so we have to use break statement there
Ok can u please tell me the time stamp
Sorry what i cannot understand
Okay so its not breaking the loop but since we added return statement there
So hence because of that our prime function ends and control of program execution returns to main
So its indirectly breaking the loop (kind of)
I dont understand what r u saying?
When return statement is encountered
Current function ends (isprime in this case)
So program goes back to main() and continue from there