def get_factors_iterative1(n):
todo, res = [(n, <NUM_LIT:2>, [])], []<EOL>while todo:<EOL><INDENT>n, i, combi = todo.pop()<EOL>while i * i <= n:<EOL><INDENT>if n % i == <NUM_LIT:0>:<EOL><INDENT>res += combi + [i, n//i],<EOL>todo.append((n//i, i, combi+[i])),<EOL><DEDENT>i += <NUM_LIT:1><EOL><DEDENT><DEDENT>return res<EOL>
[summary]
    Computes all factors of n.
    Translated the function get_factors(...) in
    a call-stack modell.

    Arguments:
        n {[int]} -- [to analysed number]

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