Base Python Code For Prime Factorization