Problem 56190. Split Even Number Into Two Primes
Solution Stats
Problem Comments
-
5 Comments
Nice problem!
you should put some straight-forward test cases for easy debugging
Test cases have been added to the problem.
It is a really nice tasks. However, The test cases or the task description can be improved. E.g. for n = 18 the answer can be a vector [5 13] or [13 5]. However, [13 5] is not "correct" according to the test. So in the task description can be written to return the numbers in ascending order or test cases should take any order of the 2 element vector
Thanks for that catch, Filip. I added the ordering to the problem description.
Solution Comments
Show commentsProblem Recent Solvers191
Suggested Problems
-
Find state names that end with the letter A
1171 Solvers
-
537 Solvers
-
Pernicious Anniversary Problem
817 Solvers
-
Find my daddy long leg (No 's')
2286 Solvers
-
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
935 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!