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.
Find the sum of all the numbers of the input vector
32587 Solvers
07 - Common functions and indexing 1
352 Solvers
What is Sum Of all elements of Matrix
298 Solvers
Convert given decimal number to binary number.
662 Solvers
Find the mode of the given input
81 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!