-这道题和section 1.5 pprime思路几乎一模一样
-质数验证函数分了两类,num<=10000和num>=10000
"YOUR PROGRAM ('sprime') WORKED FIRST TIME! That's fantastic and a rare thing. Please accept these special automated
congratulations."
/*
ID: penglin3
PROG: sprime
LANG: C++11
*/
#include <iostream>
#include <fstream>
#include <vector>
#include <math.h>
using namespace std;//fstream 需要std合法范围
bool bPrime[10001]{};
vector<int> viPrime{};
vector<long> answer{};
#define min(a , b) ((a < b) ? a : b)
//建质数表的函数,然后写入bPrime,vbPrime
void listPrime(bool *bPrime,vector<int> &viPrime, const int&