The code doesnt return the correct answer in the end

At the very end of the video, where sir changes the prime number to an even number, the output is wrong.

@Enigmatctrance Thank you Tanishq for bringing this to our knowledge. We will correct that.
If you want to check a number if it prime you can check like this.
bool isprime(int no) {
for (int i = 2; i * i <= no; i++) if (no % i == 0) return false;
return true;
}

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.