Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started