• + 0 comments

    Find one or more numbers x, y , z etc.. such that for x, a is a factor of x (GCD) b is a multiple of x

    We need to check the numbers in the range from max(a) to min(b).
    Loop through this range of integers and check numbers in 'a' divide the number without remainders. Also check x divides numbers in 'b' without remainders.