n=int(input()) for x in range(2,n): if n%x==0: print("No") break else: print("Yes") if n==1: print("No")