Without sieve of ent.. how it got passed?

Hey @Jan19LPN0013, it got passes because of the weak test cases on backend, also in a way you have implemented the logic behind sieve of eratosthenes,

for i in range(x[0],x[1]+1,2):
    check=prim(i)
    if check==1:
        print(i,end=" ")

You have skipped every second element, that’s what logic of sieve of eratosthenes says.
Also try submitting the same solution on spoj.com, and your will get TLE with the same code.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush: