Question: Create a function named primeNumCheck that takes in one ( 1 ) input, and returns one ( 1 ) output of a boolean value (
Create a function named "primeNumCheck" that takes in one input, and returns one output of a boolean value true or false that represents whether or not the number is prime. Take the following into consideration:
a DO NOT use the builtin "isprime" MATLAB function; this assignment is to help your problemsolving and MATLAB skills.
If "isprime" is used, no points given for this question.
b A number needs to meet the following criteria to be considered prime:
i The number is nonnegative and is not or
ii The number is an integer
iii. The number can only be divisible have a remainder of by and itself
c You can assume the following:
i The input is ahrays a number.
ii There is only input no arrays involved
Hint: Look into the "modulo" and "remainder" functions...
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
