This script takes four numbers and attempts to find an arrangement of these four numbers and the arithmetic operations (× + − ÷) to make the value 24. See this page for the original creators of the 24 game.