Regarding time complexity

i have downloaded test cases that are quote high but its not giving tle why
t is range of 1000 and searching in seive in worst case is of 100000 so it should give TLE but its not giving in this problem but in prime visits its giving TLE

Please share both the question links that you are talking about.

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.