Dado um valor inteiro N, qual o maior valor primo <= N
MaiorPrimo(5) = 5;
MaiorPrimo(10) = 7;
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers45
Suggested Problems
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14059 Solvers
-
The sum of the numbers in the vector
644 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
400 Solvers
-
349 Solvers
-
Replace 0 indices in array with 1's
143 Solvers
More from this Author20
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!