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 Solvers31
Suggested Problems
-
Project Euler: Problem 1, Multiples of 3 and 5
3721 Solvers
-
Remove the two elements next to NaN value
710 Solvers
-
6020 Solvers
-
Find out value of sine given by degree.
357 Solvers
-
35 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.