Wrong code in the video

what is happening in the video. first, we gave an odd no it shows it is a prime no but then we check for the even no and again it shows the prime

@pankajsingh
i think there is some issue with bhaiya’s laptop as he also said in the end of the video.
You can refer to this, i have implemented the same code for you https://ide.codingblocks.com/s/256568

I hope this clears your doubt.
Mark the doubt as resolved if it is clear now.

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.