Give an example of five five-digit prime numbers whose sum is also a prime number.
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers29
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15780 Solvers
-
Get the length of a given vector
12979 Solvers
-
Flip the vector from right to left
10741 Solvers
-
267 Solvers
-
Find the Oldest Person in a Room
20275 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!
Doddy, the test suite does not check that the numbers are prime and five-digit. I recommend including assert(all(isprime(a)) && all(a > 9999 & a < 1e5)).
@ChrisR: your suggested tests have been added.