Everytime I solve a problem it works on my system but when I try to submit it with python 2.5 compiler I always get a Runtime error.I am a beginner to this codechef solving but dont know how to submit it Can anyone help??

For example:

This is the problem that I solved: http://www.codechef.com/problems/PRIME1

This was my solution:

```
`def check_prime(n):
d=n
if d==1:
return False
for i in range(2,n):
if d%i==0:
return False
return True
def get_primes(m,n):
result=[]
i=m
x=0
while i<=n:
if check_prime(i):
result.append(i)
if x==1:
i+=2
else:
i+=1
if i%2!=0:
x=1
return result
num=input()
for i in range(0,num):
m=input()
n=input()
primes=get_primes(m,n)
for element in primes:
print(element)
print("")`
```

Now when I run this program selecting python 2.5 it gives me a Runtime error. Can anyone help??