An algorithm used to factor integers with running time bound