Given two positive numbers L and R (L < R), find out the smallest twins in the range [L , R].Two numbers are twins if they are prime numbers and there difference is 2.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. The first line of each test case contains two positve integers L and R (L < R), denoting the range [L < R].
Print out the smallest twins in the given range. If no such twins exist, then print -1.
1 <= T <= 200
0 <= L <= 500
0 < R <= 1000
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.