Add++, 26 bytes
D,g,@@#~,%A$p%+
L,MRBCþgbM
Generates the range \1,ドル 2, 3, ..., \max(a, b)\$, then filters out elements that don't divide either \$a\$ or \$b\$, Finally, we return the maximum value of the filtered elements.
Add++, 26 bytes
D,g,@@#~,%A$p%+
L,MRBCþgbM
Generates the range \1,ドル 2, 3, ..., \max(a, b)\$, then filters out elements that don't divide either \$a\$ or \$b\$, Finally, we return the maximum value of the filtered elements.
Add++, 26 bytes
D,g,@@#~,%A$p%+
L,MRBCþgbM
Generates the range \1,ドル 2, 3, ..., \max(a, b)\$, then filters out elements that don't divide either \$a\$ or \$b\$, Finally, we return the maximum value of the filtered elements.
Add++, 26 bytes
D,g,@@#~,%A$p%+
L,MRBCþgbM
Generates the range \1,ドル 2, 3, ..., \max(a, b)\$, then filters out elements that don't divide either \$a\$ or \$b\$, Finally, we return the maximum value of the filtered elements.