AtCoder Regular Contest 165
A
Sum equals LCM
AtCoder
⌀ 275
原题
←B →
翻译中…

Problem Statement

翻译中…

You are given a positive integer $N$.

翻译中…

Determine if there are two or more (not necessarily distinct) positive integers $A_1,A_2,\dots,A_n\ (2 \leq n)$ that satisfy all of the following conditions:

翻译中…
  • $A_1+A_2+\dots+A_n=N$.
  • The least common multiple of $A_1,A_2,\dots,A_n$ is $N$.
翻译中…

You have $T$ test cases to solve.

翻译中…

Constraints

翻译中…
  • $1 \leq T \leq 100$
  • $2 \leq N \leq 10^{9}$
  • All input values are integers.
翻译中…

Input

翻译中…

The input is given from Standard Input in the following format:

翻译中…

T
\mathrm{case}_1
\vdots
\mathrm{case}_T

翻译中…

Each case is given in the following format:

翻译中…

N

翻译中…

Output

翻译中…

Print $T$ lines. The $i$-th line should contain Yes if some integers satisfy the conditions for the $i$-th test case, and No otherwise.

翻译中…

样例

Input #1
4
6
4
998244353
367291763
Output #1
Yes
No
No
Yes
For the first test case, three positive integers $(A_1,A_2,A_3)=(1,2,3)$, for example, have $A_1+A_2+A_3=1+2+3=6$, and the least common multiple of $A_1,A_2,A_3$ is $6$, satisfying the conditions. For the second test case, no two or more positive integers satisfy the conditions.
题目信息
题号
arc165_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。