A cuboid wood block has a length of 24, a width of 12, and a height of 8. If it is cut into a cuboid block of the same size, the length of the sides is an integer number of centimeters, and there is no remainder. What is the longest side length of the cut cube in centimeters?
一个长方体木块，长24，宽12，高8，把它截成同样大小的长方体木块，棱长为整厘米数，且没有剩余，截成的正方体棱长最长为多少厘米？
<gadget id="calculator">2 * 2</gadget>
<output>4</output>

<result>4</result>