You are viewing a single comment's thread. Return to all comments →
Simply, the following works in Java-
BigInteger A=BigInteger.valueOf(a); BigInteger B=BigInteger.valueOf(b); BigInteger X=BigInteger.valueOf(x); return A.modPow(B,X).intValue();
Little Panda Power
You are viewing a single comment's thread. Return to all comments →
Simply, the following works in Java-