Problem 14. Find the numeric mean of the prime numbers in a matrix.

Created by Cody Team in Cody Challenge

There will always be at least one prime in the matrix.


 Input  in = [ 8 3
               5 9 ]
 Output out is 4 or (3+5)/2

Solution Stats

47.21% Correct | 52.79% Incorrect
Last solution submitted on May 22, 2018

Problem Comments

Solution Comments

Recent Solvers4751

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!