Finding Prime Numbers in a Range

# Introduction In this lab, you need to create a function to find all the prime numbers between two intervals by getting input values for `x` and `y`, running a loop to access each element between `x` and `y`, and passing each value to a function `isPrime()` that checks if a number is divisible by any number from 2 to the number itself, printing the number if it is prime.

|60 : 00

Click the virtual machine below to start practicing