Derangements by teebee

(1..6).eachPermutation{p->p.any{it==p[it-1]}||println(p.sum(""))}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page