{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"F(x) indicates the number of kind of prime factor of x.\n\nF(x)表示x的质因子的种数。给区间[L,R],求max(GCD(F(i),F(j)) (L \u0026lt\u003d i \u0026lt j \u0026lt\u003d R)。(2 \u0026lt\u003d L \u0026lt R \u0026lt\u003d 1000000)\n\n For example F(2)\u003d1. F(10)\u003d2, because 10\u003d2*5. F(12)\u003d2, because 12\u003d2*2*3,"}},{"title":"Input","value":{"format":"HTML","content":"There are multiple queries. In the first line of the input file there is an integer T indicates the number of queries. \n\u003cbr\u003eIn the next T lines, each line contains L, R which is mentioned above. \n\u003cbr\u003e \n\u003cbr\u003eAll input items are integers. \n\u003cbr\u003e1\u0026lt;\u003d T \u0026lt;\u003d 1000000 \n\u003cbr\u003e2\u0026lt;\u003dL \u0026lt; R\u0026lt;\u003d1000000 \n\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"For each query,output the answer in a single line. \n\u003cbr\u003eSee the sample for more details. \n\u003cbr\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e2\n2 3\n3 5\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e1\n1\u003c/pre\u003e"}}]}