Codes: part 13

import java.math.*;
public class confirm{
public static void main (String[] args){
long st = System.currentTimeMillis();
BigInteger a = new BigInteger(“1”) ;
a= BigInteger.valueOf(2).pow(100) ;
System.out.println(a);
long et = System.currentTimeMillis();
System.out.println(“elapsed time = ” + (et-st)/1000.0 + ” sec”);
System.out.println(“”);
}}

Advertisements