(source)

Another year doing the Advent of Code in lua/Scribunto: