Question 2: 2 Marks Write a function named PrimeFinder that accepts a two-element vector of distinct integer values and

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Question 2: 2 Marks Write a function named PrimeFinder that accepts a two-element vector of distinct integer values and

Post by answerhappygod »

Question 2 2 Marks Write A Function Named Primefinder That Accepts A Two Element Vector Of Distinct Integer Values And 1
Question 2 2 Marks Write A Function Named Primefinder That Accepts A Two Element Vector Of Distinct Integer Values And 1 (148.95 KiB) Viewed 23 times
I need this program written in script file and sent to me and for StdID please use 1077937
Question 2: 2 Marks Write a function named PrimeFinder that accepts a two-element vector of distinct integer values and finds all the prime numbers that lie between them. Your answer should have two output arguments: 1- A column vector of all the prime numbers that lie between the two inputs. 2- A scalar that counts the number of elements in the first output. The two values in the input vector may not be in ascending order. You might find the function primes helpful. Note the function command is given in line 1 with suggested names for the input and output variables. You can change the names (but not the order) of these variables if you like. Do not the names of the function. As this exact name is required for the tests to run. Be sure to assign a value to the output variables. ***One of the numbers is StdID.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply