
1) Choose an integer ‘i’ such that 0 < ‘i’ < ‘N’ and ‘N’ is divisible by ‘i’.
2) Update number ‘N’ to ‘N - i’.
If the number ‘N’ = 6 and you select ‘i’ to be 2, then the new number ‘N’ will be 6 - 2 = 4.
First-line contains ‘T’, denoting the number of Test cases.
For each Test case:
The first line contains an integer, ‘N’, denoting the starting number.
For each test case, you have to print “YES” if you win the game; otherwise, print “NO”.
You don’t need to print anything. It has already been taken care of. Just implement the given function.
1 <= ‘T’ <= 5000
1 <= ‘N’ <= 10^9
Time Limit: 1 sec
Algorithm:
Algorithm: