Maximize Pair Strength Using GCD
Try every pair and score it as the product divided by the square of its gcd, which equals the product of the two quotients by the gcd.
Try every pair and score it as the product divided by the square of its gcd, which equals the product of the two quotients by the gcd.