桶排思想,简单!
#include <iostream>
#include <cmath>
#include <cstring>//头文件
using namespace std;
bool pd(int x){
//判断质数
if(x<=1)
return 0;
if(x==2)
return 1
桶排思想,简单!
#include <iostream>
#include <cmath>
#include <cstring>//头文件
using namespace std;
bool pd(int x){
//判断质数
if(x<=1)
return 0;
if(x==2)
return 1