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.
Convert a vector into a number
503 Solvers
Volume of a sphere given its surface area
117 Solvers
205 Solvers
228 Solvers
63 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!