Question: please solve for matlab , thank you The following algorithm gives a test if a given number is prime. Write a script to test it.
The following algorithm gives a test if a given number is prime. Write a script to test it. Then try it out on the numbers: 4058879 (not prime), 193707721 (prime): (a) Input P (b) Initialize N to 3 (c) Find remainder R when P is divided by N (d) While R +0 and N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
