x and y. Return how many positive integers divide both x and y evenly.x=18, y=24 → 4
Both numbers are divisible by 1, 2, 3 and 6: four shared divisors.
x=9, y=16 → 1
The only shared divisor is 1.
x=100, y=100 → 9
x=18, y=24
4
Run checks the first 3 tests in your browser. Submit checks all 102 tests on the server, hidden ones included.