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

Tcl, 7372 bytes

proc C L {expr -([lmap c $L {list ++$c*([incr i]%8?$i%2?3*$c3:$c1:0)}])%10==$c} 

Try it online!Try it online!

Tcl, 73 bytes

proc C L {expr -([lmap c $L {list +([incr i]%8?$i%2?3*$c:$c:0)}])%10==$c} 

Try it online!

Tcl, 72 bytes

proc C L {expr -([lmap c $L {list +$c*([incr i]%8?$i%2?3:1:0)}])%10==$c} 

Try it online!

added 477 characters in body
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37

Tcl, 78 bytes

proc C L {lmap c $L {incr t [expr [incr i]%8?$i%2?3*$c:$c:0]} expr $c==-$t%10} 

Try it online!


Tcl, 7873 bytes

proc C L {expr -([lmap c $L {list +[expr +([incr i]%8?$i%2?3*$c:$c:0]0)}])%10==$c} 

Try it online!Try it online!

Tcl, 78 bytes

proc C L {lmap c $L {incr t [expr [incr i]%8?$i%2?3*$c:$c:0]} expr $c==-$t%10} 

Try it online!


Tcl, 78 bytes

proc C L {expr -([lmap c $L {list +[expr [incr i]%8?$i%2?3*$c:$c:0]}])%10==$c} 

Try it online!

Tcl, 73 bytes

proc C L {expr -([lmap c $L {list +([incr i]%8?$i%2?3*$c:$c:0)}])%10==$c} 

Try it online!

added 477 characters in body
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37

Tcl, 78 bytes

proc C L {lmap c $L {incr t [expr [incr i]%8?$i%2?3*$c:$c:0]} expr $c==-$t%10} 

Try it online!


Tcl, 78 bytes

proc C L {expr -([lmap c $L {list +[expr [incr i]%8?$i%2?3*$c:$c:0]}])%10==$c} 

Try it online!

Tcl, 78 bytes

proc C L {lmap c $L {incr t [expr [incr i]%8?$i%2?3*$c:$c:0]} expr $c==-$t%10} 

Try it online!

Tcl, 78 bytes

proc C L {lmap c $L {incr t [expr [incr i]%8?$i%2?3*$c:$c:0]} expr $c==-$t%10} 

Try it online!


Tcl, 78 bytes

proc C L {expr -([lmap c $L {list +[expr [incr i]%8?$i%2?3*$c:$c:0]}])%10==$c} 

Try it online!

deleted 21 characters in body
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37
Loading
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37
Loading