WOLFRAM|DEMONSTRATIONS PROJECT

Creating a GCD Grid

​
maximum divisor
minimum divisor
size of grid
show grid lines
Fill in colors for squares corresponding to pairs of integers with a certain divisor in common. Eventually the only squares left white will correspond to integers with no common divisors.