PRIME1: Runtime error for python 2.5

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??

num=input()
for i in range(0,num):
m=input()
n=input()

You should have tried to run it on your own with the sample test case, before submitting it to the online judge.

By doing m = input(), m get the whole line, not the first integer (as you expected).

Thus, your program never really runs, leading to runtime error.

//