num = 4count = num / 2while count > 0: if num % count == 0: print count, 'is the largest factor of', num break count -= 1