Problem 43142. Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example:
n = 10 --> mpn = 7
Solution Stats
Problem Comments
-
1 Comment
Dyuman Joshi
on 1 Dec 2020
Needs more test cases.
Solution Comments
Show commentsProblem Recent Solvers176
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15591 Solvers
-
649 Solvers
-
1415 Solvers
-
989 Solvers
-
681 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!