Goldman Sachs interview question

Prime factorization using python