Computers and Technology
Computers and Technology, 07.06.2021 01:00, lizz1228

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:10, Unkn0wn3815
Which is a benefit of peer-to-peer networking? easy to add or remove devices main server has a fast processor more reliable than a client/server network same software versions on all computers
Answers: 3
image
Computers and Technology, 21.06.2019 17:20, gracie0818
Q-3 a technician is setting up a computer lab. computers on the same subnet need to communicate with eachother peer to peer communication, a. hardware firewallb. proxy serverc. software firewalld. gre tunneling
Answers: 3
image
Computers and Technology, 22.06.2019 10:30, ilovepickles930
What can tanya do now to start preparing for the college and scholarship application process? think about her grades, activities in which she can get involved, possible part-time jobs at which she can work, and standardized tests she can take. (10 points) apex
Answers: 2
image
Computers and Technology, 22.06.2019 11:10, golderhadashaowtatz
Which are not examples of chronic or persistent stress? moving
Answers: 1
Do you know the correct answer?
Assembly Language for x86 Processors In Assembly language Irvine 32 format. A prime number is an in...

Questions in other subjects:

Konu
Mathematics, 09.09.2021 04:00