![]() |
OT - Prime square puzzle
Most of us are familiar with the concept of magic squares: the arrangement of the numbers from 1 to n^2 into a square such that the sum of the numbers on each row and each main diagonal is equal to the same number. E.g., a 3x3 magic square is
Code:
A concept I've been twiddling with lately is that of prime squares: the arrangement of the numbers from 1 to n^2 into a square such that the sum of the numbers on each row and each main diagonal is a prime number. For n=1 and n=2, it is trivial to prove that a prime square does not exist. (1 is not a prime number). I think that I have a proof that n=3 is not possible as well. I have, however, constructed a prime square of size 4. Can you? |
Code:
7 8 3 16 |
34 is a prime number?
|
Did I misunderstand? I thought the diagonals had to be a prime number, but the rest was supposed to be a normal magic square.
|
edit: false alarm
cool puzzle Brillig. Have you solved 5x5 yet? re-edit: got it Code:
3 7 9 10 |
Response to false alarm. :)
|
Sorry if I was unclear, Bee - all the columns and rows are supposed to add up to prime numbers.
Sp1, nope, haven't even started yet :) |
ok. If I understand it correctly this time...:D
is this correct? Code:
1 2 5 11 |
39 isn't prime...11+7+8+13 on the upper right to lower left diagonal.
|
Quote:
you sure that doesn't add up to 37? ;) |
SP1's looks good to me - it's different from mine, but I expected multiple solutions anyway.
5x5 wasn't that difficult at all, I think these are actually easier the bigger the matrix gets... |
I got the same one that SP1 has, but he beat me to it. :(
|
Quote:
Pretty sure (one of my very favorite movie lines). |
Quote:
I agree and was about to post the same thing. I found a solution for 5x5 in about four minutes. |
| All times are GMT -5. The time now is 08:20 AM. |
Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.