Number of lines is the most ridiculous metric anyway. Most languages have no line length limit, just replace all newlines with semicolons, and you have a one line program!
> Most languages have no line length limit
Some languages do?
("Free-format") Fortran has a max line length of 132 chars, up from ("fixed-format") 72 chars on punch cards.
the ANSI C standard has a line length limit, so there are no guarantees that compilers have to function properly with longer lines than given in the standard.
Many?
Also, this is a resubmission from 3 days ago from the same user.
It's pseudocode, so not really only 26 lines as it needs some more supporting functions to "choose n, unique and..." and other stuff to make setting variable states atomic.
Good way to explain the algo though.