Question 2: 2 Marks Write a function named PrimeFinder that accepts a two-element vector of distinct integer values and
Posted: Thu May 26, 2022 9:13 am
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.