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
1 player likes this solution
1 player likes this solution
6 players like this solution
Tags
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply Today
22 players like this problem
22 players like this problem