Problem 44861. Ratio between sum of primer numbers and non-prime numbers

Write a function that calculates the ratio between the sum of the prime numbers lower or equal than x, and the sum of the non-prime numbers lower than x.

Solution Stats

34.15% Correct | 65.85% Incorrect
Last Solution submitted on Apr 17, 2020

Problem Comments