i = 0
A = range(0,10000)
for a in range (2,10000):
    i = 0
    c = A[a]**(1/2)
    cf = round(c)
    for b in range (2,100):
        if A[a] != A[b]:
            if A[a] % A[b] == 0:
                i = 1
    
    if i == 0:
        print A[a]
