How to find prime numbers between two inputs?
Show older comments
Hello,
How can I create a column vector with all prime numbers between two outputs? Eg. [10,100] and [200,20]. The two outputs can be in ascending or descending order. How can I code to satisfy these two conditions? Thank you.
1 Comment
Walter Roberson
on 25 Apr 2021
hint: min(), max()
Accepted Answer
More Answers (0)
Categories
Find more on Discrete Math in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!