Problem 1697. Make a Pandiagonal Prime Magic Square: 11 x 11
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
James
on 9 Jul 2013
Richard, I think your test suite has an error in it. Both pd and pad will result in the same matrix, as they're both circshifted by [1 1-i] Will pad=fliplr(pad); after the for loop correct this problem?
Richard Zapor
on 9 Jul 2013
Test Suite fixed. Who new that 1-i is the same as -i+1.
Rafael S.T. Vieira
on 18 Aug 2020
The circular shift should be made from first row, not the 2nd, and the "knight" always moves down from the first column of the row to the last column in an L-movement.
Marco Riani
on 21 Jan 2022
I fully agree with the comments by Rafael S.T. Vieira. The problem is nice but it was badly explained
Solution Comments
Show commentsProblem Recent Solvers14
Suggested Problems
-
2260 Solvers
-
ZigZag matrix with reflected format
201 Solvers
-
Triangular matrices in 3D array
104 Solvers
-
94 Solvers
-
1025 Solvers
More from this Author293
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!