Run time error in prime case question

i have tried similar question given in hackerblocks in which we have to find prime numbers upto a certain count.
but it is showing no output. what is wrong in the code?

because input of the question is different from what you have taken, question provides just a single input that i.e the number which you have to check is a prime or not, but you are considering test cases as well.
Code:

no it is the not same question in which i asked the doubt. it is the problem ‘prateek loves candy’ in hacker blocks. i have also mentioned the whole question in the comment of my code as well for reference.

in that case please post the doubt under relevant question! plus in the code that you provided you are storing each test case in a single variable which will lead it to only storing the last test case

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.