Problem 2543 · Hard

Check if Point Is Reachable

The gcd of the coordinates never falls below a power of two, so the point is reachable exactly when that gcd is a power of two.

Open the interactive visualisation