@@ -0,0 +1,573 @@
+import java.math.BigInteger;%0A%0Apublic class p188 %7B%0A%0A%09// I confess, I did not come up with the solution %0A%09// myself - just didn't have the mathematical prowess.%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09final BigInteger init = BigInteger.valueOf(1777L);%0A%09%09final BigInteger mod = BigInteger.valueOf(100_000_000);%0A%09%09%0A%09%09BigInteger num = BigInteger.valueOf(1777L);%0A%09%09BigInteger pow = BigInteger.valueOf(1855L);%0A%09%09while (pow.compareTo(BigInteger.ZERO) != 0) %7B%0A%09%09%09num = init.modPow(num, mod);%0A%09%09%09pow = pow.subtract(BigInteger.ONE);%0A%09%09%7D%0A%09%09System.out.println(num.toString());%0A%09%7D%0A%7D

Add problem 188