num = int(input()) if num < 2: print("NO") else: for i in range(2, int(num ** 0.5) + 1): if num % i == 0: print("NO") break else: print("YES")
To embed this project on your website, copy the following code and paste it into your website's HTML: