{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e白学长从会识字就对素数问题感兴趣。现在他遇到了一个很有意思的题想考考学弟学妹们,题目如下:现在有两个数字:L和U(1\u003c\u003dL \u003c U\u003c\u003d2147483647),你要找到最接近的两个相邻素数(相邻素数是两个都是素数的数,但相邻素数之间没有其他素数。)C1和C2(L\u003c\u003dC1 \u003c C2\u003c\u003dU)(即C2-C1是最小值)。如果有其他线对相距相同,则使用第一对线对。你还可以找到两个相邻的素数D1和D2(L\u003c\u003dD1 \u003c D2\u003c\u003dU),其中D1和D2尽可能地彼此远离(如果有并列关系,再次选择第一对)。\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e每行输入将包含两个正整数L和U,其中L \u003c U。L和U之间的差值不超过1000000。\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e对于每个L和U,输出要么是不存在相邻素数的语句(因为两个给定数字之间的素数少于两个),要么是给出两对相邻素数的行。\u003c/div\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e2 17\n14 17\n\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e2,3 are closest, 7,11 are most distant.\nThere are no adjacent primes.\n\u003c/pre\u003e"}}]}