Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help ASAP! I need this in Assembly Language code/Easy68K please. Only in

ID: 3824525 • Letter: P

Question

Please help ASAP! I need this in Assembly Language code/Easy68K please. Only in this code! Thank you.

Write a program called SortedPrimes to:

a. Find out the prime numbers from the following list (15, 16, 17, 23, 2, 32, 3, 31, 13, 19, 12, 9) and push/store them in a stack and then print.

b. Sort the list of prime numbers that you found from previous problem in descending order and store/push them in a stack and then print. Output should look like below on console:

Prime Numbers: 17 23 2 3 31 13 19

Sorted in Descending Order: 31 23 19 17 13 3 2

Explanation / Answer

Prime Number : Any whole number which is greater than 1 and has only two factors that is 1 and the number itself, is called a prime number.