Definition:
Roy's boolean function (RBF) is True, if number of the positive integers less than or equal to N that are relatively prime to N, is prime; else False.
In other words, let Z be the number of integers K in the range 1 ≤ K ≤ N for which the greatest common divisor gcd(N, K) = 1. If Z is prime then RBF is True else it is False.
Given an integer N, your task is to find if its RBF value.
Input:
First line contains T - number of test cases.
Each of next T lines contain an integer N.
Output:
Print RBF value of each N in a new line i.e. "TRUE" or "FALSE" (quotes are only for clarity)
Constraints:
1 ≤ T ≤ 10
1 ≤ N ≤ 100000
Note: In case you're wondering, 1 is NOT a prime number :)
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Login to unlock the editorial