If the number is divisible by i , then insert it
if n % i == 0 : NEW_LINE INDENT s . add ( n // i ) NEW_LINE s . add ( i ) NEW_LINE while m % i == 0 : NEW_LINE INDENT m //= i NEW_LINE DEDENT DEDENT if m > 1 : NEW_LINE s . add ( m ) NEW_LINE