1. // Parentheses improve readability.
    2. if (n % i == 0 && d % i == 0) ...