User:Cscott/Advent Of Code 2023/Day 1

Part 1:

  • Example: 142
  • Full input: 54304

With mlua, in English:

  • Example: 142

With mlua, in French:

  • Example: 142

Part 2:

  • Example: 281
  • Full input: 54418

Source: Module:User:Cscott/Advent Of Code 2023/Day 1
French Source: User:Cscott/Advent Of Code 2023/Day 1/fr (can't be in Module namespace for technical reasons)

(I'm using a lua script I wrote for lua-turtle to bundle up my modules for scribunto, so scroll all the way to the end to find the "real" code.)

Input: