Prime number loop initialization

why does the loop go till n/2 only

@puranjayrocks4 hey puranajay the loop will go till n if n%i==0 then it will not a prime no but i should be increment

Hey Puranjay,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.