#t40. 素数判断(加强版)
素数判断(加强版)
Prime Check (Hard Version)
Problem Description
Given a positive integer , determine whether it is a prime number. If it is prime, print ; otherwise print . (There may be very large primes.)
(Terminology: a prime number is a natural number greater than that has no divisors other than and itself.)
Input Format
The input consists of one line containing a positive integer .
Output Format
Print one line containing a single integer, or , indicating whether is prime.
Sample Input
7
Sample Output
1
Constraints