test case #2 is not correct.
The problem description should be change to "and the sum of non-prime numbers up to the greatest prime lower than x".
Thank you for that clarification, @Rafael S.T. Vieira. The problem title and description have been improved, along with added test cases.
MATCH THE STRINGS (2 CHAR) very easy
252 Solvers
583 Solvers
255 Solvers
Cumulative product of a vector
214 Solvers
149 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!