/**
 * Given a set of numbers, and a divisor, this function checks if there
 * is a number in the set that is divisible by the divisor. If such a
 * number exists, the function stops its execution and returns true.
 *
 * @param numbers A set of numbers.
 * @param divisor An integer representing the divisor to check divisibility.
 * @return true if there is a number in the set divisible by the divisor, otherwise false.
 */
fun checkDivisible(numbers: Set<Int>, divisor: Int): Boolean {

    for (number in numbers) {
        if (number % divisor == 0) {  // Check if the number is divisible by the divisor
            return true
        }
    }
    return false
}
/**
 * Given a set of numbers, and a divisor, this function checks if there
 * is a number in the set that is divisible by the divisor. If such a
 * number exists, the function stops its execution and returns true.
 *
 * @param numbers A set of numbers.
 * @param divisor An integer representing the divisor to check divisibility.
 * @return true if there is a number in the set divisible by the divisor, otherwise false.
 */
fun checkDivisible(numbers: Set<Int>, divisor: Int): Boolean {
/**
 * Given a set of numbers, and a divisor, this function checks if there
 * is a number in the set that is divisible by the divisor. If such a
 * number exists, the function stops its execution and returns true.
 *
 * @param numbers A set of numbers.
 * @param divisor An integer representing the divisor to check divisibility.
 * @return true if there is a number in the set divisible by the divisor, otherwise false.
 */
fun checkDivisible(numbers: Set<Int>, divisor: Int): Boolean {

    for (number in numbers) {
        if (number % divisor == 0) {  // Check if the number is divisible by the divisor
            return true
        }
    }
    return false
}