Problem 44861. Ratio between sums of prime and non-prime numbers
37.78% Correct | 62.22% Incorrect
Last Solution submitted on Oct 25, 2022
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
Reverse the elements of an array
Create matrix of replicated elements
Append two matrix as shown below example
Rotate a matrix for 180 degree
More from this Author11
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!