Write a subroutine to find the prime numbers between n1 and


Problem

Write a subroutine to find the prime numbers between n1 and n2 and store the result in a buffer specified by the caller of this routine. Both n1 and n2 are 16-bit integers and are passed to this routine in the stack. The pointer to the data memory buffer to hold the prime numbers is also passed in the stack. The caller will push n1, n2, and the pointer to the buffer onto the stack in that order. Write a program to test this subroutine.

 

Request for Solution File

Ask an Expert for Answer!!
Other Engineering: Write a subroutine to find the prime numbers between n1 and
Reference No:- TGS02668489

Expected delivery within 24 Hours