The Euclidean GCD algorithm I use doesn't have modulos in it, it uses subtraction.
Wikipedia: Euclidean Algorithm Implementations
Type: Posts; User: helloworld922
The Euclidean GCD algorithm I use doesn't have modulos in it, it uses subtraction.
Wikipedia: Euclidean Algorithm Implementations
while(a.compareTo(b) > 0){
if (a.compareTo(b) > b.intValue())
You're using the compareTo function wrong.
Compare to will return a result less than 0, 0, or greater than 0 depending on what...