Problem K
Simple Factoring
Ms. Alice was working on making some factoring homework for
her students last week, where the students get questions in the
form of
The expression
To help Ms. Alice, you must check if each question is factorable!
Input
The first line contains the number of test cases
Output
For each test case, output a line consisting of “YES” if factorable, and “NO” otherwise.
Sample Input 1 | Sample Output 1 |
---|---|
4 1 2 1 1 3 1 24 73 24 12 33 6 |
YES NO YES NO |