Goldman Sachs Interview Question

Prime factorization using python