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 Solvers33
Suggested Problems
-
Find the peak 3n+1 sequence value
2573 Solvers
-
Project Euler: Problem 7, Nth prime
1780 Solvers
-
Who has power to do everything in this world?
491 Solvers
-
construct matrix with identical rows
209 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1905 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.