krazykenzie1417 krazykenzie1417
  • 31-05-2023
  • Computers and Technology
contestada

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

Respuesta :

Otras preguntas

Describe the relative thicknesses of the walls of the heart chambers of the fetal pig.
As many as 300 350 400 450 eggs are released during a woman's reproductive years.
A(n) is any environmental condition that places a physical or emotional demand on an individual.
Land heats and cools more than water because ________.
Describe the inner lining of the stomach.
A ball is dropped from rest from the top of a high building. Ignore air resistance and take g = 9,8 m/s² calculate speed of the ball after 1sec. ​
Find the value of x.
quizlet Which type of bleeding produces the fastest blood loss and is the most difficult to control
We can hear sounds around corners but we cannot see around corners; yet both sound and light are waves. Explain the difference
When you coordinate tasks by email, you show respect for the recipient's time by: