Problem 44862. Ratio between sum of primes and sum of factors
Write a function that calculates the ratio between the sum of primes numbers lower or equal to x, and the sum of the factors of x.
Solution Stats
Problem Comments
-
2 Comments
Athi
on 2 Mar 2019
The 3rd test case, for x = 100; is wrong. Please correct it.
Jesús Zambrano
on 12 Mar 2019
Done! thank you!
Solution Comments
Show commentsProblem Recent Solvers32
Suggested Problems
-
560 Solvers
-
Replace multiples of 5 with NaN
455 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1214 Solvers
-
17324 Solvers
-
Natural numbers in string form
1758 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!