%I #10 Mar 12 2016 22:23:00
%S 2,0,3117,504182416
%N Smallest magic sum for any n X n magic square filled with primes in an arithmetic progression, or 0 if no such magic square exists.
%C a(n) > 0 for every n >= 3 under Dickson's conjecture.
%D Joseph S. Madachy, "Magic and Antimagic Squares." Ch. 4 in Madachy's Mathematical Recreations, New York: Dover, 1979, p. 95.
%D Clifford A. Pickover, The Mathematics of Oz: Mental Gymnastics from Beyond the Edge, Cambridge University Press, 2002, p. 327.
%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Magic_square">Magic square</a>
%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Primes_in_arithmetic_progression">Primes in arithmetic progression</a>
%H <a href="/index/Mag#magic">Index entries for sequences related to magic squares</a>
%e n = 3
%e |----|----|----|
%e |1669| 199|1249|
%e |----|----|----|
%e | 619|1039|1459|
%e |----|----|----|
%e | 829|1879| 409|
%e |----|----|----|
%e .
%e n = 4
%e |---------|---------|---------|---------|
%e | 53297929|189093589|179393899| 82396999|
%e |---------|---------|---------|---------|
%e |159994519|101796379|111496069|130895449|
%e |---------|---------|---------|---------|
%e |121195759|140595139|150294829| 92096689|
%e |---------|---------|---------|---------|
%e |169694209| 72697309| 62997619|198793279|
%e |---------|---------|---------|---------|
%Y Cf. A269324, A269905.
%K nonn,hard,more
%O 1,1
%A _Arkadiusz Wesolowski_, Mar 07 2016
|