A Quantum Adiabatic Algorithm for Factorization and Its Experimental Implementation