This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate Cody's 5th birthday.
In this problem, let's find the top 5 greatest prime numbers along the first non-singleton dimension of an input array.
Example
x = 1:10; y = [7 5 3 2 NaN];
% Input x is a matrix x = [17 6 3 13 8 17 1 2 5 5 3 7 7 11 2 31 7 6];
% Output y y = [31 11 17 17 7 7 13 3 5 7 2 3 5 NaN 2];
Previous problem in this series: Spot the First Occurrence of 5
14200 Solvers
332 Solvers
The sum of the numbers in the vector
341 Solvers
369 Solvers
463 Solvers