/**
 * This function finds the common factors of three given positive integers.
 *
 * @param a a positive integer
 * @param b a positive integer
 * @param c a positive integer
 * @return a list of common factors of a, b, and c
 */
fun findCommonFactors(a: Int, b: Int, c: Int): List<Int> {

    val commonFactors = mutableListOf<Int>()

    for (i in 1..minOf(a, b, c)) {
        if (a % i == 0 && b % i == 0 && c % i == 0) {
            commonFactors.add(i)
        }
    }

    return commonFactors
}
/**
 * This function finds the common factors of three given positive integers.
 *
 * @param a a positive integer
 * @param b a positive integer
 * @param c a positive integer
 * @return a list of common factors of a, b, and c
 */
fun findCommonFactors(a: Int, b: Int, c: Int): List<Int> {
/**
 * This function finds the common factors of three given positive integers.
 *
 * @param a a positive integer
 * @param b a positive integer
 * @param c a positive integer
 * @return a list of common factors of a, b, and c
 */
fun findCommonFactors(a: Int, b: Int, c: Int): List<Int> {

    val commonFactors = mutableListOf<Int>()

    for (i in 1..minOf(a, b, c)) {
        if (a % i == 0 && b % i == 0 && c % i == 0) {
            commonFactors.add(i)
        }
    }

    return commonFactors
}