Problem 44861. Ratio between sums of prime and non-prime numbers
Solution Stats
Problem Comments
-
3 Comments
Gergely Patay
on 28 Jun 2019
test case #2 is not correct.
Rafael S.T. Vieira
on 27 Aug 2020
The problem description should be change to "and the sum of non-prime numbers up to the greatest prime lower than x".
goc3
on 29 Sep 2020
Thank you for that clarification, @Rafael S.T. Vieira. The problem title and description have been improved, along with added test cases.
Solution Comments
Show commentsProblem Recent Solvers35
Suggested Problems
-
323 Solvers
-
534 Solvers
-
Reverse the elements of an array
969 Solvers
-
Switch matrix to a column vector
331 Solvers
-
268 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!