Prime Magic Squares
Different Types

Created by Inder J. Taneja

Orders 13–24 · Normal, pandiagonal and structured constructions

Order

Arrangements use the same prime set in different positions. Each result is checked against the selected design. They are not disjoint sets of primes.

Verified prime squares

Mathematical requirements

Every available design has distinct prime entries and equal complete rows, columns and both principal diagonals. General Pandiagonal additionally checks every wrapping diagonal. Compound designs check every listed internal magic square and their different block sums. Concentric designs check their listed inner magic squares.

This first version covers all orders 13–24. General Pandiagonal examples for orders 13–20 are credited to Jarek Wroblewski in the AZsPCs 2013 final report; their Normal options rearrange the same primes. The compound examples for orders 20 and 21 and the concentric examples for every order 13–24 were constructed and checked for this generator. Additional sequential-generator layouts have not yet been converted to primes.

Arrangements reuse the selected prime set. The bounded new-prime search applies a common even shift and accepts it only if every entry remains prime. It may find no new set. Exact integer arithmetic is used below 2⁶⁴; larger candidates are rejected. Excel stores integers longer than 15 digits as text.

Show referencesHide references

Prime Magic Squares: General References

  1. H. White. Magic Squares of Prime Numbers.
  2. Heinz, Harvey. Prime Numbers Magic Squares.
  3. Makarova, Natalia. Concentric magic squares of primes.
  4. Roberto C. Angelone. A Fully Nested 729 × 729 Unique-Prime Magic Square Constructed from Nine Correlated 243 × 243 Prime Magic Blocks.
  5. Wolfram MathWorld. Prime Magic Square.
  6. Magic Tesseract. Prime Order Squares — related constructions for squares of prime order.
  7. Inder J. Taneja. Prime Magic Squares.

Prime Magic Squares: Block-Structured

  1. Inder J. Taneja. Block-Structured Prime Magic Squares: Orders 6 to 14. Zenodo, June 16, 2026, pp. 1–41. Research paper · DOI
    Web-site Link: Block-Structured Prime Magic Squares: Orders 6 to 14
  2. Inder J. Taneja. Block-Structured Prime Magic Squares: Orders 15 to 23. Zenodo, June 16, 2026, pp. 1–76. Research paper · DOI
    Web-site Link: Block-Structured Prime Magic Squares: Orders 15 to 23
  3. Inder J. Taneja. Block-Structured Prime Magic Squares: Orders 24, 25 and 26. Zenodo, June 19, 2026, pp. 1–26. Research paper · DOI
    Web-site Link: Block-Structured Prime Magic Squares: Orders 24, 25 and 26
  4. Inder J. Taneja. Block-Structured Prime Magic Squares: Orders 27 to 31. Zenodo, June 22, 2026, pp. 1–59. Research paper · DOI
    Web-site Link: Block-Structured Prime Magic Squares: Orders 27 to 31
  5. Inder J. Taneja. Block-Structured Prime Magic Squares: Orders 32 to 38. Zenodo, June 25, 2026, pp. 1–76. Research paper · DOI
    Web-site Link: Block-Structured Prime Magic Squares: Orders 32 to 38
  6. Inder J. Taneja. Block-Structured Prime Magic Squares: Orders 39 to 43. Zenodo, June 28, 2026, pp. 1–61. Research paper · DOI
    Web-site Link: Block-Structured Prime Magic Squares: Orders 39 to 43
  7. Inder J. Taneja. Block-Structured Prime Magic Squares: Orders 44 to 47. Zenodo, July 1, 2026, pp. 1–59. Research paper · DOI
    Web-site Link: Block-Structured Prime Magic Squares: Orders 44 to 47
  8. Inder J. Taneja. Block-Structured Prime Magic Squares: Orders 48 to 51. Zenodo, July 2, 2026, pp. 1–59. Research paper · DOI
    Web-site Link: Block-Structured Prime Magic Squares: Orders 48 to 51

Prime Magic Squares: Higher-Orders

  1. Inder J. Taneja. Higher-Order Block-Structured Prime Magic Squares: Multiples of 3 and 4. Zenodo, July 10, 2026, pp. 1–30. Research paper · DOI
    Web-site Link: Higher-Order Block-Structured Prime Magic Squares: Multiples of 3 and 4
  2. Inder J. Taneja. Higher-Order Block-Structured Prime Magic Squares: Multiples of 5 and 6. Zenodo, July 10, 2026, pp. 1–23. Research paper · DOI
    Web-site Link: Higher-Order Block-Structured Prime Magic Squares: Multiples of 5 and 6
  3. Inder J. Taneja. Higher-Order Block-Structured Prime Magic Squares: Multiples of 7 and 8. Zenodo, July 12, 2026, pp. 1–31. Research paper · DOI
    Web-site Link: Higher-Order Block-Structured Prime Magic Squares: Multiples of 7 and 8
  4. Inder J. Taneja. Higher-Order Block-Structured Prime Magic Squares: Multiples of 9. Zenodo, July 19, 2026, pp. 1–34. Research paper · DOI
    Web-site Link: Higher-Order Block-Structured Prime Magic Squares: Multiples of 9
  5. Inder J. Taneja. Higher-Order Block-Structured Prime Magic Squares: Multiples of 10. Zenodo, July 19, 2026, pp. 1–34. Research paper · DOI
    Web-site Link: Higher-Order Block-Structured Prime Magic Squares: Multiples of 10
  6. Inder J. Taneja. Higher-Order Block-Structured Prime Magic Squares: Multiples of 11. Zenodo, July 24, 2026, pp. 1–29. Research paper · DOI
    Web-site Link: Higher-Order Block-Structured Prime Magic Squares: Multiples of 11
  7. Inder J. Taneja. Higher-Order Block-Structured Prime Magic Squares: Multiples of 13. Zenodo, July 25, 2026, pp. 1–25. Research paper · DOI
    Web-site Link: Higher-Order Block-Structured Prime Magic Squares: Multiples of 13

Prime Magic Squares: Ultra Higher-Orders

  1. Inder J. Taneja. Concentric Even and Odd Orders Prime Magic Squares: Orders 1222 and 1223. Zenodo, June 17, 2026, pp. 1–24.
    Web-site Link: Concentric Even and Odd Orders Prime Magic Squares: Orders 1222 and 1223

    Revised version of:

  2. Inder J. Taneja. Higher Order Block-Structured Prime Magic Squares: Order 1220 Multiples of 4. Zenodo, June 16, 2026, pp. 1–27. Research paper · DOI
    Web-site Link: Higher Order Block-Structured Prime Magic Squares: Order 1220 Multiples of 4
  3. Inder J. Taneja. Higher-Order Block-Structured Prime Magic Squares of Order 960: Multiples of 12 with Blocks of Order 3. Zenodo, July 20, 2026, pp. 1–13. Research paper · DOI
    Web-site Link: Higher-Order Block-Structured Prime Magic Squares of Order 960: Multiples of 12 with Blocks of Order 3
  4. Inder J. Taneja. Higher-Order Block-Structured Prime Magic Squares of Order 1024: Multiples of 16 with Blocks of Order 4. Zenodo, July 21, 2026, pp. 1–18. Research paper · DOI
    Web-site Link: Higher-Order Block-Structured Prime Magic Squares of Order 1024: Multiples of 16 with Blocks of Order 4