/**
 * Given a range of numbers, find all the prime numbers within that range and return them in a list.
 */
fun findPrimeNumbers(start: Int, end: Int): List<Int> {

    val primeNumbers = mutableListOf<Int>()
    for (num in start..end) {
        if (num > 1) {
            var isPrime = true
            for (i in 2 until num) {
                if (num % i == 0) {
                    isPrime = false
                    break
                }
            }
            if (isPrime) {
                primeNumbers.add(num)
            }
        }
    }
    return primeNumbers
}
/**
 * Given a range of numbers, find all the prime numbers within that range and return them in a list.
 */
fun findPrimeNumbers(start: Int, end: Int): List<Int> {
/**
 * Given a range of numbers, find all the prime numbers within that range and return them in a list.
 */
fun findPrimeNumbers(start: Int, end: Int): List<Int> {

    val primeNumbers = mutableListOf<Int>()
    for (num in start..end) {
        if (num > 1) {
            var isPrime = true
            for (i in 2 until num) {
                if (num % i == 0) {
                    isPrime = false
                    break
                }
            }
            if (isPrime) {
                primeNumbers.add(num)
            }
        }
    }
    return primeNumbers
}