Reduce number of iteration in testMath.