result:
1.submission not judged on coding blocks
2.on code blocks it is showing bad alloc
my submission:
question:
After learning sieve of Eratosthenes, Deepak wants to play more with the primes. This time he is trying to print primes between two integers. Help him in this task.
Input Format
First line contains a single integer ‘T’ denoting number of test cases. Then ‘T’ lines follow each containing two integers ‘m’ and ‘n’.
Constraints
1<=T<=10 1<=m<=n<=1000000000, n-m<=100000
Output Format
Print the prime numbers from ‘m’ till ‘n’ (both inclusive), one number per line and each test case is separated by an empty line.
Sample Input
2
5 10
11 20
Sample Output
5
7
11
13
17
19