for(i<-1 to readInt)println(i+":"+(1 to i filter(i%_<1)mkString" "))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page