(n)
return res
[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]
[summary]
    Computes all factors of n.
    Translated the function get_factors(...) in
    a call-stack modell.
[ summary ] Computes all factors of n . Translated the function get_factors ( ... ) in a call - stack modell .
def get_factors_iterative1(n):
    """[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]
    """

    todo, res = [(n, 2, [])], []
    while todo:
        n, i, combi = todo.pop()
        while i * i <= n:
            if n % i == 0:
                res += combi + [i, n//i],
                todo.append((n//i, i, combi+[i])),
            i += 1
    return res
def get_factors_iterative1 ( n ) : todo , res = [ ( n , 2 , [ ] ) ] , [ ] while todo : n , i , combi = todo . pop ( ) while i * i <= n : if n % i == 0 : res += combi + [ i , n // i ] , todo . append ( ( n // i , i , combi + [ i ] ) ) , i += 1 return res