Question: Please give the code in appropriate way. previous code is not working for all statements. need the solution with ASCII You are given two positive

Please give the code in appropriate way. previous code is not working for all statements.

need the solution with ASCII

You are given two positive integers L and R. Now print the prime numbers between L to R.

Note: Assume that 1 is a prime number

Input Format

The first line will contain T, the number of test cases.

Each test case contains two positive integer L and R

Constraints

0 < T <= 20

1 <= L,R <= 100 and where L < R

Output Format

Print the prime numbers between L to R.

Sample Input 0

4 2 7 1 9 10 17 5 18 

Sample Output 0

2 3 5 7 1 2 3 5 7 11 13 17 5 7 11 13 17

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!