r=1..gets.to_i $><<r.map{|j|r.map{|i|r.one?{|k|i%k+j%k<1}?:t:" "}<<$/}

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

download

return top