def isPrime(n): if n==2: return True else: for i in range(2,n+1): if n%i==0: return False else: return True num=int(input()) if isPrime(num): print("yes") else: print("no")