Skip to content
Snippets Groups Projects
14.py 202 B
Newer Older
hacker717's avatar
hacker717 committed
n = int(input())

if n == 1 or n == 0 or n == -1:
    print("NO")
else:
    for i in range(2, n // 2 + 1):
        if n % i == 0:
            print("NO")
            break
    else:
        print("YES")