August 27, 2024
P33 - Determine whether two positive integer numbers are coprime.
Two numbers are coprime if their greatest common divisor equals 1.
scala
scala> 35.isCoprimeTo(64)
res0: Boolean = true
August 27, 2024
Two numbers are coprime if their greatest common divisor equals 1.
scala
scala> 35.isCoprimeTo(64)
res0: Boolean = true
Don't have an account? We will create one for you.
Enter the OTP send to
in seconds. Check your spam folder if you can't find email from us.
Valid email is required for further communications