Skip to main content
1 of 4
frank
  • 991
  • 5
  • 10

Pyth, 22 bytes

VU 101p? %Ns,1 1N+ k\E 

Try it online!

frank
  • 991
  • 5
  • 10