import math n=int(input()) for i in range(2,math.sqrt(n)+1): if n==1: print('No') break else: if n%i==0: print('No') else: print('Yes')