Added MathUtil.IsPrime function.