Given a natural number $N$, print 1 if $N$ is prime, otherwise 0.
Input
One integer $N$ ($2 \le N \le 100000$).
Output
Print 1 if $N$ is prime, else 0.
Example 1
Input
7
Output
1
Example 2
Input
4
Output
0
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.