subject

Assembly Language for x86 Processors In Assembly language Irvine 32 format. A prime number is an integer that is divisible only by 1 and by itself. Write a program that:

1.Takes a number as an input.

2.Prints back to the console all the primes that are larger than 1 but not larger than the number that has been entered.

You need to have a procedure called isPrime. You may have more procedures if you like.

1.This procedure receives a number through one of the registers.

2.Checks if this number is prime.

3.Returns back through one of the registers to the main program 1, if the number is prime, 0 otherwise.

sample run:

Please enter a number: 44

Primes found until the given number:

2 3 5 7 11 13 17 19 23 29 31 37 41 43

comment the code as well thank you.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 2
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 23.06.2019 09:20
How to print: number is equal to: 1 and it is odd number number is equal to: 2 and it is even number number is equal to: 3 and it is odd number number is equal to: 4 and it is even number in the console using java using 1 if statement, 1 while loop, 1 else loop also using % to check odds and evens
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
You know the right answer?
Assembly Language for x86 Processors In Assembly language Irvine 32 format. A prime number is an in...
Questions
question
Mathematics, 23.01.2021 19:30
question
Computers and Technology, 23.01.2021 19:30
question
Mathematics, 23.01.2021 19:30
question
Mathematics, 23.01.2021 19:40
Questions on the website: 13722361