PRIME1 - RuntimeError

I am new to programming. Please help me. I am getting NZEC for my solution. I have used prime sieve to solve it. This is my solution here

Consider the testcase:

1
999999999 1000000000
2 Likes