Sort:  

Nice walkthrough! Breaking the problem down into finding the GCD first and then counting the divisors of that GCD is a very elegant solution. It reduces the problem significantly and demonstrates how number theory concepts can simplify what initially looks like a more complex task. 💡🔢👏