Landau-Symbole
Combined, the outer and inner loops take at most formula_6 iterations. This corresponds to formula_1 time complexity using the Big O notation.