I have an array of prime numbers from 2 to 997. How do you display array values with upper and lower limits? For example:
Upper and lower limits: 0 20
Output:
2, 3, 5, 7, 11, 13, 17, 19
I have an array of prime numbers from 2 to 997. How do you
Share
Loop on the array till you find a number bigger than the lower limit, Then loop and display until you find a number bigger than the upper limit.