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

47.87% Correct | 52.13% Incorrect
Last solution submitted on Feb 21, 2018

Problem Comments

Solution Comments

Recent Solvers4333

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!