QOJ.ac

QOJ

Time Limit: 1 s Memory Limit: 2048 MB Total points: 100

#9703. <3 numbers

الإحصائيات

Rosie likes to play with positive integers, especially the <3 numbers in positive integers.

<3 number is a special group of positive integers, all of which can be divided by less than three positive integers.

For example, $7$ is a <3 number. There are two positive integers that divide $7$ by $1$ and $7$. $25$ is not a number less than $3$. There are $1$, $5$ and $25$ that can divide $25$.

Now, Rosie is curious about how many <3 numbers are included between positive integers $L$ and $R$. But it's too difficult to figure out exactly how many <3 numbers there are. Rosie wants to know whether the proportion of <3 numbers between $L$ and $R$ is less than one third. To be exact, if there are $x$ <3 numbers between $L$ and $R$, Rosie wants to know if $\frac{x}{R-L+1} < \frac{1}{3}$.

Please help the curious Rosie to answer his questions.

Input

The first line has a positive integer of $T$, which represents the total number of test data.

Each test data is a line of two integers $L, R $.

  • $1 \le T \le 100$
  • $1 \le L \le R \le 10^9$

Output

Please output one line for each test data. If the proportion of <3 numbers between $L $and $R$ is less than one third, output $\texttt{"Yes"}$, otherwise output $\texttt{"No"}$ (without double quotes)

Sample Input

3
7 7
25 25
5 14

Sample Output

No
Yes
No

Discussions

About Discussions

The discussion section is only for posting: Editorials, General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues. Submitting multiple issues may cause your account to be banned.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.