n=7 y=n while y>2: x=y n=y r=1 while n>2 and r!=0: n=n-1 r=x%n #print(r) if r==0: #print("not") break #print(r) else: #print("pri") print(x) y=y-1