Problem 1119. sum of non-primes

The sum of the non-primes no larger than 10 is 1+4+6+8+9+10=38

Find the sum of all the positive non-prime integers that do not exceed the input, N.

Solution Stats

54.05% Correct | 45.95% Incorrect
Last Solution submitted on Dec 13, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers451

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!