Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 412 Bytes

File metadata and controls

30 lines (25 loc) · 412 Bytes

Print All Primes Till N

Easy


  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).

Sample Input:

6 
24

Sample Output:

7
11
13
17
19
23

Constraints:

2 <= low < high < 10 ^ 6