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

31.25% Correct | 68.75% Incorrect
Last Solution submitted on Jul 12, 2020

Problem Comments