All test cases wrong

I changed my code , but now instead of TLE it is showing all test cases wrong , when i am testing it is showing the right answer, can you explain why it is showing all of them as wrong?

Your sieve was wrong. Here’s the corrected code. I hope it works.

Thanks , it works now !