Prime Generator
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Peter wants to generate some prime numbers for his cryptosystem. Help him! Your task is to generate all prime numbers between two given numbers.
Input
Starts with the number of test cases in a single line. In each of the next lines there are two numbers and .
Output
For every test case print all prime numbers such that , one number per line, test cases separated by an empty line.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 19%