This template calculates the greatest common divisor (gcd) of two or more parameters.

Examples

уреди
  • {{gcd|16|6}} → 2
  • {{gcd|360|180|120|90}} → 30
  • {{gcd|544|119}} → 17
  • {{gcd|2089|3571}} → 1