Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this part of the assignment, you will write a program that, when given an integer greater than 1 , will print prime if the
In this part of the assignment, you will write a program that, when given an integer greater than will print "prime" if the given number is prime, or "not prime" if the given number is not prime.
When the program is executed, it will ask the user to enter an integer greater than and it will store it into a variable: num. This is done for you in the code we have provided at the top of the program between the two ### DO NOT MODIFY ### comments Below the # YOUR CODE HERE comment, you will write the code to print "prime" if num is prime, or "not prime" if num is not prime.
For example, if you run your program as follows:
Enter integer greater than :
Your program should print the following:
prime
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started