• + 1 comment

    Man, Scala is annoying.

    Also, after the 13th iteration the compiler breaks and the output starts to invert. Try custom input with something like 20.