Space-Efficient and Noise-Robust Quantum Factoring