Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

GolfScript (41 39 bytes)

[][1,]@~:^;({{.-1=(+.)))+}%}*{{+}*^=}?`

Online demo

Thanks to DennisDennis for 41->39.

GolfScript (41 39 bytes)

[][1,]@~:^;({{.-1=(+.)))+}%}*{{+}*^=}?`

Online demo

Thanks to Dennis for 41->39.

GolfScript (41 39 bytes)

[][1,]@~:^;({{.-1=(+.)))+}%}*{{+}*^=}?`

Online demo

Thanks to Dennis for 41->39.

added 100 characters in body
Source Link
Peter Taylor
  • 43.1k
  • 4
  • 70
  • 169

GolfScript (4141 39 bytes)

[][1,]@~:^;({{.-1=(+.)))+}%}*{{+}*^=},0=`?`

Online demoOnline demo

Thanks to Dennis for 41->39.

GolfScript (41 bytes)

[][1,]@~:^;({{.-1=(+.)))+}%}*{{+}*^=},0=`

Online demo

GolfScript (41 39 bytes)

[][1,]@~:^;({{.-1=(+.)))+}%}*{{+}*^=}?`

Online demo

Thanks to Dennis for 41->39.

Source Link
Peter Taylor
  • 43.1k
  • 4
  • 70
  • 169

GolfScript (41 bytes)

[][1,]@~:^;({{.-1=(+.)))+}%}*{{+}*^=},0=`

Online demo