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.
2403 Solvers
Back to basics 20 - singleton dimensions
254 Solvers
Solve the set of simultaneous linear equations
275 Solvers
282 Solvers
110 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!