Question: octave problem (40 points) Write a script that determines whether a given number N is a prime number or not. Remember that a prime number
(40 points) Write a script that determines whether a given number N is a prime number or not. Remember that a prime number has only two factors: itself and 1 . In other words, a prime number cannot be exactly divided by any whole number other than itself and 1 . Evaluate your script for N=17. You must use a for loop in the script. OUTPUT: The number N=17 is a prime number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
