plduhoux
2/24/2018 - 6:24 PM

firstMultiple2

int firstMultiple2(int[] divisors, int start) {
    boolean found = false;
    while (!found) {
        for (int i = 0; i < divisors.length; i++) {
            if (start % divisors[i] == 0) return start;
        }
        start++;
    }
    return -1;
}