fork download
  1. import java.math.BigInteger;
  2.  
  3. class Idiom74
  4. {
  5. public static void main (String[] args) throws java.lang.Exception
  6. {
  7. BigInteger a = new BigInteger("6000000000000");
  8. BigInteger b = new BigInteger("9000000000000");
  9.  
  10. BigInteger x = a.gcd(b);
  11.  
  12. System.out.println( "GCD(" + a + ", " + b + ") == " + x );
  13. }
  14. }
Success #stdin #stdout 0.04s 711168KB
stdin
Standard input is empty
stdout
GCD(6000000000000, 9000000000000) == 3000000000000