HOW TO UNDERSTAND and USE the TEST CASES (BEGINNER)

hiii i m new in programming WORLD… i stuck in PRIME1(prime generator)… code is ok but couldn’t understand the-

/*The input begins with the number t of test cases in a single line (t<=10). In each of the next t lines there are two numbers m and n (1 <= m <= n <= 1000000000, n-m<=100000) separated by a space.

Output

For every test case print all prime numbers p such that m <= p <= n, one number per line, test cases separated by an empty line*/

And what is you understanding of this statement ?

The input begins with the number t of test cases in a single line (t<=10)
There will be at most 10 test cases and first line will contain this test cases.

In each of the next t lines there are two numbers m and n
The next t lines will contain number m and n separated by space.

For every test case print all prime numbers p such that m <= p <= n, one number per line
You have to print the prime number p as answer, one number per line.

Sample
3 (Number of Test Case)
17 28 (m and n separated by space test case 1)
10 23 (m and n separated by space test case 2)
72 99 (m and n separated by space test case 3)

Output
n1 (Answer for test case 1)
n2 (Answer for test case 2)
n3 (Answer for test case 3)

1 Like