MATLAB??
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:
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.
MATLAB?? Write a function named PrimeFinder that accepts a two-element vector of distinct integer values and finds all t
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am