prime magic square

A prime magic squareMathworldPlanetmath is a magic square consisting only of prime numbersMathworldPlanetmath (the magic constant may be a composite numberMathworldPlanetmath, especially if the sides are of even length). The primes don’t have to be consecutive, though it is sometimes convenient to consider 1 a prime number for the purpose of constructing these squares.

The smallest prime magic square with the smallest possible magic constant (111) is


first published by Henry Ernest Dudeney in 1917.

Rudolf Ondrejka constructed this magic square using only Chen primesMathworldPlanetmath:


The magic constant is 177.


  • 1 Dudeney, E. Amusements in Mathematics New York: Dover (1970): Problem 408
Title prime magic square
Canonical name PrimeMagicSquare
Date of creation 2013-03-22 16:43:28
Last modified on 2013-03-22 16:43:28
Owner PrimeFan (13766)
Last modified by PrimeFan (13766)
Numerical id 5
Author PrimeFan (13766)
Entry type Definition
Classification msc 11A41