gets stdin n set i 0 while {$i<$n} {incr i set j 0 while {$j<$i} {incr j if {$i%$j<1} {lappend l $j}} puts $i:$l unset l}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page