sum of non-primes - MATLAB Cody - MATLAB Central

Problem 1119. sum of non-primes

Difficulty:Rate

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

53.93% Correct | 46.07% Incorrect
Last Solution submitted on May 05, 2025

Problem Comments

Solution Comments

Show comments
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
0
3

Problem Recent Solvers532

Suggested Problems

Community Treasure Hunt

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

Start Hunting!
Go to top of page