Prime Factorization Through Reversible Logic Gates