I think the answer to problem 7 should be [0 1 1 1 1 1 1 1 1 0 1 0], because q=31 leads to a Wagstaff prime.
Yes, you're right. Thanks, William. I've corrected the test suite. I should have known there was a problem because Athi's solution stepped around 31.
193 Solvers
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
142 Solvers
Convert a Cell Array into an Array
481 Solvers
92 Solvers
Calculate the hypotenuse of a right triangle without using ^ and sqrt ()
60 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!