Even Divison
Practice
4.3 (3 votes)
Easy
Problem
29% Success 1710 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code
Aleksa wants to divide a number N into two integers x and y such that sum of x and y equals N. Also x and y both must be positive even integers. Tell whether aleksa can divide N into two parts such that they meet the requirements.
Input:
First line contain an integer T denoting the number of test cases.
Each test case contain the integer N
Output:
Print "YES" if possible else print "NO" (without quotes) for each test case in new line.
Constraints:
1 ≤ T ≤ 1000
1 ≤ N ≤ \(10^{9}\)
Submissions
Please login to view your submissions
Similar Problems
Points:20
3 votes
Points:20
24 votes
Tags:
Ad-HocBasic ProgrammingEasyMathematicsOpenApprovedMathamatics
Points:20
2 votes
Tags:
MathematicsEasyMathematicsMathamatics
Editorial