素数环问题:从1到n(n<=10000)这n个数摆成一个环,要求相邻的任意两个数的和是一个素数。
1 | #include <algorithm> |
1 | #include <algorithm> |
参考链接
https://blog.csdn.net/C20190413/article/details/72630756
https://blog.csdn.net/MosBest/article/details/69085525
素数环问题:从1到n(n<=10000)这n个数摆成一个环,要求相邻的任意两个数的和是一个素数。
1 | #include <algorithm> |
1 | #include <algorithm> |
https://blog.csdn.net/C20190413/article/details/72630756
https://blog.csdn.net/MosBest/article/details/69085525