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.
192 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
513 Solvers
321 Solvers
Edges of a n-dimensional Hypercube
66 Solvers
Sum the numbers on the main diagonal
454 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!