Skip to main content
1 of 3
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214

Jelly, 8 bytes

^’_3÷6Ċ+

Try it online!

Uses JungHwan Min's fantastic approach.

Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214