Cody

Problem 1119. sum of non-primes

Created by li jian in Community

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

61.8% Correct | 38.2% Incorrect
Last solution submitted on Jan 26, 2019

Problem Comments

Recent Solvers238

Suggested Problems

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!