Skip to main content
deleted 3 characters in body
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37

Tcl, 7471 bytes

proc C L {expr -([lmap a\ b $L {list ++3*$a+([incr i]%4?3*$a+$b$b:3*$a0)}])%10==$b} 

Try it online!Try it online!

Tcl, 74 bytes

proc C L {expr -([lmap a\ b $L {list +([incr i]%4?3*$a+$b:3*$a)}])%10==$b} 

Try it online!

Tcl, 71 bytes

proc C L {expr -([lmap a\ b $L {list +3*$a+([incr i]%4?$b:0)}])%10==$b} 

Try it online!

Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37

Tcl, 74 bytes

proc C L {expr -([lmap a\ b $L {list +([incr i]%4?3*$a+$b:3*$a)}])%10==$b} 

Try it online!