For two positive integers $$$l, r$$$, $$$f(l, r)$$$ is defined as the number of ordered pairs $$$(a, b)$$$ such that $$$l \le a + b \le r$$$, $$$a$$$ and $$$b$$$ are positive, and $$$\text{gcd}(a, b) = p$$$, where $$$p$$$ is a prime number.
There will be $$$q$$$ queries of the form $$$l, r$$$. For each query, output $$$f(l, r)$$$.
The first line contains a single integer $$$q$$$ ($$$1 \le q \le 2 \cdot 10^5$$$). Then $$$q$$$ lines follow, each containing two integers $$$l, r$$$ ($$$2 \le l \le r \le 2 \cdot 10^5$$$).
Print $$$q$$$ lines, each containing one integer, $$$f(l, r)$$$.
210 1153 67670
5 629501299
In the first query, the ordered pairs would be $$$(2, 8), (8, 2), (4, 6), (6, 4), (5, 5)$$$.
| Name |
|---|


