1. You've to print all prime numbers between a range. 2. Take as input "low", the lower limit of range. 3. Take as input "high", the higher limit of range. 4. For the range print all the primes numbers between low and high (both included).
Input Format
low high
Output Format
n1 n2 .. all primes between low and high (both included)
Constraints
2 <= low < high < 10 ^ 6
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
6 24
Output
7 11 13 17 19 23