All test case not passed

code - https://ide.codingblocks.com/s/139854
in one test case it is showing time limit and anther it is showing wrong answer.

Hey @kushal1998 this question requires the knowledge of a particular concept called Sieve of eratosthenes, which is covered under the Number Theory section.
I’d have to ask you to hold on to this question until you reach that section in the course. Meanwhile, you can continue with the course.

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.