Special Prime Circles

A prime circle of order contains the numbers from 1 to such that the sum of every pair of adjacent numbers is prime. A special prime circle is similar, except that the positive difference between adjacent numbers is also prime. This Demonstration generates one prime circle of every possible order between 14 and 50 and highlights the sum and positive difference of adjacent numbers.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Use the slider to select the highlighted pair and "number" in the drop-down menu to set the order of the special prime circle.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.