FizzFizz by hamul

1.upto(100){|i|j=i.to_s;[3,5].each{|m|(j+="#{m<4?'Fi':'Bu'}zz";i/=m)while i%m==0};puts j.sub(/\d*(?=(F|B))/,"")}

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

download

return to the top page