1.upto(eval gets){|v|puts [v,(1..v).select{|i|v%i<1}*' ']*':'}