- 博客(1)
- 收藏
- 关注
原创 输入5~200以内所有尾数为3和7的素数
#include<stdio.h> #include<math.h> int main() { int i,j; for(i=5;i<=200;i=i+2) { for(j=2;j<=sqrt(i);j++) if(i%j==0) break; if(j>sqrt(i)&&(i%10==3||i%10==7)) printf("%d\n",i); } return 0; }
2021-12-11 20:12:12
720
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅