Medium Accuracy: 49.92% Submissions: 20224 Points: 4
Generate all prime numbers between two given numbers.
The first line of the input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consists of a single line containing two space separated integers m and n. Output:
For every test case print all prime numbers p such that m <= p <= n, space separated. Separate the answers for each test case by a new line.
1 <= m <= n <= 100000,
n - m <= 100000