int.gcd

Rust

fn gcd(a: i32, b: i32) -> i32 { if b == 0 { a } else { gcd(b, a % b) } }

C++

__gcd(int, int) ;

template<Int=int>
Int gcd(Int a, Int b) {
  if (b == 0) return a;
  return gcd(b, a%b);
}