Computers and Technology

Write a MARIE program that accepts an integer from the user, and if it is a prime number the program will output 1, otherwise, the program will output 0. Examples:

If the user input is 17, the output would be 1

If the user input is 2, the output would be 1

If the user input is 15, the output would be 0

If the user input is -2, the output would be 0

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, lexhorton2002
The great length of north america causes the climate to be varied. true false
Answers: 2
image
Computers and Technology, 22.06.2019 19:30, keke6361
When using a public computer or network, you should always
Answers: 2
image
Computers and Technology, 23.06.2019 01:30, shelley3135
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
image
Computers and Technology, 23.06.2019 16:00, ginaaa20
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
Do you know the correct answer?
Write a MARIE program that accepts an integer from the user, and if it is a prime number the program...

Questions in other subjects:

Konu
Mathematics, 27.05.2021 01:00
Konu
Spanish, 27.05.2021 01:00
Konu
History, 27.05.2021 01:00
Konu
Arts, 27.05.2021 01:00