fork(1) download
  1. import java.math.*;
  2.  
  3. class Ideone {
  4. public static void main (String[] args) {
  5. int p = 1274403499;
  6. int q = 1155563989;
  7. BigInteger n1 = BigInteger.valueOf(p);
  8. BigInteger n2 = BigInteger.valueOf(q);
  9. BigInteger n = n1.multiply(n2);
  10. System.out.println(n);
  11. }
  12. }
Success #stdin #stdout 0.1s 320576KB
stdin
Standard input is empty
stdout
1472654790899997511