Farey sequence by youz

(#(loop[c 1 a 0 d% b 1](printf"%d/%d
"a b)(if(>% c)(let[%(int(/(+% b)d))](recur(-(*% c)a)c(-(*% d)b)d))))(read))

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

download

return to the top page