时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
64bit IO Format: %lld
题目描述
In mathematics, a polynomial is an expression consisting of variables (also called indeterminate) and coefficients, that involves only the operations of addition, subtraction, multiplication, and non-negative integer exponents of variables. For example,

.
A polynomial is said to be irreducible if it cannot be factored into two or more non-trivial polynomials with real coefficients.
For example,

is irreducible, but

is not (since
(x-1))
).
Given a polynomial of degree

with integer coefficients:

, you need to check whether it is irreducible or not.
输入描述:
The first line of the input gives the number of test cases,
.
test cases follow.
For each test case, the first line contains one integers
. Next line contains
integer numbers:



输出描述:
For each test case, output "Yes" if it is irreducible, otherwise "No".