摘要: 为一个不太懂编程的菜姬师姐解释如何判断素数。 题目:计算大于10000查起的第五个素数(原话,语句有歧义吧) 代码: #include<stdio.h> #include<math.h> int flag(int x) ///自定义判断一个数是不是素数的函数 { if(x==0||x==1) ret 阅读全文
posted @ 2018-09-30 00:49 守林鸟 阅读(1812) 评论(0) 推荐(0)