This page is still under construction.

Parts of this page are still being built. What you see may change.

Light Version of a Famous Task

Time limit3sMemory limit256 MB

Summary
For each c up to 10^18, decide whether some a+b=c gives rad(a*b*c) < c, where rad is the product of distinct primes.
Level

Medium6 of 10

Topics
Number theory, Math, Brute force, Implementation
Solved
No attempts yet

Problem

The ABC conjecture (also known as the Oesterlé-Masser conjecture) is a famous conjecture in number theory, first proposed by Joseph Oesterlé and David Masser. It is stated as follows:

For every positive real number ε\varepsilon, there are only finitely many positive integer triples (a,b,c)(a, b, c) such that

  1. aa and bb are relatively prime;
  2. a+b=ca + b = c; and
  3. c>rad(abc)1+εc > \text{rad}(abc)^{1+\varepsilon},

where rad(n)=∏p∣np∈Primep\text{rad}(n) = \prod_{\substack{p|n \\ p \in \text{Prime}}} p is the product of all distinct prime divisors of nn.

Shinichi Mochizuki claimed to have proven this conjecture in August 2012. Later, Mochizuki's claimed proof was announced to be published in Publications of the Research Institute for Mathematical Sciences (RIMS), a journal of which Mochizuki is the chief editor.

Spike is a great fan of number theory and wanted to prove the ABC conjecture as well. However, due to his inability, he turned to work on a weaker version of the ABC conjecture, which is stated as follows:

Given a positive integer cc, determine if there exist positive integers a,ba,b, such that a+b=ca+b=c and rad(abc)<c\text{rad}(a b c)<c.

Note that in the original ABC conjecture, the positive integers aa and bb are required to be relatively prime. However, as Spike is solving an easier version of the problem, this requirement is removed.

Input

The first line of input contains one integer TT (1≤T≤10)(1 \leq T \leq 10), the number of test cases.

The next lines contain description of the tt test cases. Each test case contains one line, including an integer cc (1≤c≤1018)(1\leq c \leq 10^{18}).

Output

For each test case, if there exist two positive integers a,ba,b satisfying a+b=ca+b=c and rad(abc)<c\text{rad}(a b c)<c, then output yes in a line, otherwise output no instead.

Hint

For the first test case, we have 2+2=42+2=4 and rad(2×2×4)=2<4\text{rad}(2\times 2\times 4)=2<4.

For the second test case, we have 6+12=186+12=18 and rad(6×12×18)=6<18\text{rad}(6\times 12\times 18)=6<18.

For the third test case, there's no solution.

Examples1

  1. Example 1

    Input
    3
    4
    18
    30
    
    Expected output
    yes
    yes
    no