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.
Problem Recent Solvers34
Suggested Problems
-
945 Solvers
-
Reverse the elements of an array
822 Solvers
-
Create matrix of replicated elements
363 Solvers
-
Append two matrix as shown below example
213 Solvers
-
Rotate a matrix for 180 degree
184 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!