Computer Science, asked by somugodithi1234, 7 months ago

Write a program to generate all prime numbers between two given numbers. If the prime numbers are 'a' and 'b' then the primes in the range (a,b) should be printed Input Format The first line will be the number of testcases(1 < t < 1000 ). The next t lines will be the input bounds for the problem 'a b' , where 1<= a,b <= 100000 Output Format There will be t lines corresponding to t testcases with each line containing prime number for the range (a,b) seperated by a space. Explanation The first line of the input is the total number of testcases to be tested. The next line is the first input and for the input we generate prime numbers between the range(a,b). Sample Input 0 2 2 6 1 10 Sample Output 0 3 5 2 3 5 7

Answers

Answered by vaishnavi9573
0

Explanation:

Better use indo asian language plzzzzz to make sure you get the right answer

Similar questions