The program is supposed to factor y, so you have to provide it with a value for y. Just write a line that initializes y, e.g. > > #!/usr/bin/python > y = 24 > x = y / 2 > while x > 1: > if y % x == 0: > print y, 'has factor', x > break > x = x - 1 > else: > print y, 'is prime' > Good luck, Cezar.