# n too hvrtelh bvh anhnii too

n = int(input("too: "))
for i in range(1, n+1):
    print(number)
    count = 0
    for i in range(1, number+1):
        if number % i == 0:
            count+=1
        if count == 2:
            print(number)
