Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

EuclideanAlgorithm in Java

boolean bigIntegerRelativelyPrime(int a, int b) {
    return BigInteger.valueOf(a).gcd(BigInteger.valueOf(b)).equals(BigInteger.ONE);
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #EuclideanAlgorithm #Java
ADD COMMENT
Topic
Name
5+4 =