Skip to main content
7 of 7
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/

Jellyfish, 56 43 41 29 28 bytes

2 bytes thanks to Zgarb

p
n    <
+`/
`1*
/
+
&*r&;>i

Try it online!

A fork of my Jelly answer.

Leaky Nun
  • 50.1k
  • 6
  • 110
  • 284