#P1238A. Prime Subtraction
Prime Subtraction
No submission language available for this problem.
Description
You are given two integers and (it is guaranteed that ). You may choose any prime integer and subtract it any number of times from . Is it possible to make equal to ?
Recall that a prime number is a positive integer that has exactly two positive divisors: and this integer itself. The sequence of prime numbers starts with , , , , .
Your program should solve independent test cases.
The first line contains one integer () — the number of test cases.
Then lines follow, each describing a test case. Each line contains two integers and ().
For each test case, print YES if it is possible to choose a prime number and subtract it any number of times from so that becomes equal to . Otherwise, print NO.
You may print every letter in any case you want (so, for example, the strings yEs, yes, Yes, and YES will all be recognized as positive answer).
Input
The first line contains one integer () — the number of test cases.
Then lines follow, each describing a test case. Each line contains two integers and ().
Output
For each test case, print YES if it is possible to choose a prime number and subtract it any number of times from so that becomes equal to . Otherwise, print NO.
You may print every letter in any case you want (so, for example, the strings yEs, yes, Yes, and YES will all be recognized as positive answer).
Samples
Note
In the first test of the example you may choose and subtract it once.
In the second test of the example you may choose and subtract it twice. Note that you cannot choose , subtract it, then choose and subtract it again.
In the third test of the example you may choose and subtract it times.