## BlueBook - Prime

View as PDF

Points: 3
Time limit: 1.0s
Memory limit: 16M

Problem type
##### BlueBook

Given integers , output 1 if each one is prime, and 0 otherwise.

Remember: an integer is prime iff (if and only if) it has exactly two divisors: and .

#### Input Specification

Line : one integer Lines : one integer

#### Output Specification

Lines : One integer 1 or 0 denoting whether is prime. Output 1 if is prime, and 0 otherwise.

#### Sample Input

3
1
2
3

#### Sample Output

0
1
1