Problem 49884. Prime Magic Squares
Solution Stats
Problem Comments
-
2 Comments
Ramon Villamangca
on 9 Nov 2021
Is there an algorithm for this?
Christian Schröder
on 15 Jul 2023
@Ramon yes; for instance, you could consider all (n^2)-tuples of distinct primes in order of their sum until you find one that happens to yield a magic square. Practical algorithms, on the the hand --- I'm not aware of any.
Solution Comments
Show commentsProblem Recent Solvers10
Suggested Problems
-
Generate N equally spaced intervals between -L and L
827 Solvers
-
7864 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
922 Solvers
-
309 Solvers
-
Check that number is whole number
3367 Solvers
More from this Author180
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!