fork download
  1. import java.math.*;
  2.  
  3. class Main {
  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. }
  13.  
  14. //https://pt.stackoverflow.com/q/126016/101
Success #stdin #stdout 0.06s 32924KB
stdin
Standard input is empty
stdout
1472654790899997511