Problem 44861. Ratio between sums of prime and non-prime numbers
Write a function that calculates the ratio between the sum of the prime numbers less than or equal to x, and the sum of the non-prime numbers up to the greatest prime less than or equal to x.
For example, if x = 7, then:
Therefore, the desired ratio is:
Solution CommentsShow comments
Problem Recent Solvers35