gcd

fun Int.gcd(that: Int): Int

finds the greatest common divisor of two integers.

Return

Int

Parameters

<receiver>

Int

that

the other number

fun Int.gcd(that: Long): Long

finds the greatest common divisor of two integers.

Return

Long

Parameters

<receiver>

Int

that

the other number

fun Long.gcd(that: Int): Long
fun Long.gcd(that: Long): Long

finds the greatest common divisor of two integers.

Return

Long

Parameters

<receiver>

Long

that

the other number