n = int(input())
for i in range(True << True, n):
    if not(n % i):
        print("No")
        exit()
print("Yes")