import sys sys.set_int_max_str_digits(0) N = int(input()) print(0) for i in range(2,min(N,100)): if N%i == 0: print("No") break else: print("Yes")