Find all four-digit prime numbers whose digits are monotonically increasing from left-to-right.
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers30
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2820 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14169 Solvers
-
1508 Solvers
-
Matlab Basics - Convert a row vector to a column vector
683 Solvers
-
calculate the tangent of angle in radians
150 Solvers
More from this Author180
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
monotonically increasing means < not <= Doddy
According to the New Oxford American Dictionary, monotonic means "varying in such a way that it either never decreases or never increases." If something monotonically increases (i.e., never decreases), >= is appropriate. In like fashion, if something monotonically decreases (i.e., never increases), <= is also appropriate.