Java tutorial
//package com.java2s; import java.math.BigInteger; import static java.math.BigInteger.ZERO; public class Main { public static boolean isDivisible(BigInteger a, BigInteger b) { return a.remainder(b).compareTo(ZERO) == 0; } }