xiaoshaoning / a_circle_of_numbers Goto Github PK
View Code? Open in Web Editor NEWGiven an positive integer n, where 1<=n<=17, compute all the circles derived from the permutations of 1 to n, such that the sum of every two neighboring numbers is a prime.