for i in range(2,10): print print i,"-", for j in range(2,i): if (i % j) == 0: print j, if j == i + 1: print "is a Prime"