Farey sequence by nn

m=840;for(n=readline(i=-1);i++-m;m/g>n||print(i/g+'/'+m/g))for(g=m;i%g+m%g;)g--

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

download

return to the top page