Prime vsits wrong answer

here is my code for prime visit.


i dont know why i am getting wrong answer . TLE is ok because i have not used sieve but why wrong answer.

there was a bracket missing,
I have corrected your code, plz try to submit it now and use prime sieve to avoid TLE