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.
1160 Solvers
235 Solvers
Matrix with different incremental runs
106 Solvers
351 Solvers
Sum of first n terms of a harmonic progression
257 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!