def prime(n):
    for i in range(n):
        i
        a=2
        while a<=i**(0.5):
            if i%a==0:
                break
            a=a+1
        if a>i**(0.5) and i>2 :
            print i

prime(10000)
            

