Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = int(input())
- z = x
- if x > 1:
- for i in range(2, ((x // 2) + 1)):
- if z % i == 0:
- print("NO")
- z = 1
- break
- if z != 1:
- print("YES")
- else:
- print("NO")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement