Cody

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.

Example:

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

Solution Stats

46.89% Correct | 53.11% Incorrect
Last solution submitted on Aug 20, 2018

Problem Comments

Solution Comments

Recent Solvers5040

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!