Question: Hi! I recently wrote a factorization program in MIPS (shown below in the picture), and I was hoping to modify the program to output the

Hi! I recently wrote a factorization program in MIPS (shown below in the picture), and I was hoping to modify the program to output the factorization using exponents.

For example, if the number 150 is the input, the output is currently 2*3*5*5. I would like the output to be 2*3*(5^2). I also don't want to output exponents which are 1, so the factorization of 4410 would be (2)(3^2)(5)(7^2).

Hi! I recently wrote a factorization program in MIPS (shown below in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!