def get_factors_iterative2(n):
ans, stack, x = [], [], <NUM_LIT:2><EOL>while True:<EOL><INDENT>if x > n // x:<EOL><INDENT>if not stack:<EOL><INDENT>return ans<EOL><DEDENT>ans.append(stack + [n])<EOL>x = stack.pop()<EOL>n *= x<EOL>x += <NUM_LIT:1><EOL><DEDENT>elif n % x == <NUM_LIT:0>:<EOL><INDENT>stack.append(x)<EOL>n //= x<EOL><DEDENT>else:<EOL><INDENT>x += <NUM_LIT:1><EOL><DEDENT><DEDENT>
[summary]
    analog as above

    Arguments:
        n {[int]} -- [description]

    Returns:
        [list of lists] -- [all factors of n]