标签:以下程序利用筛选法得到质数表voidPrimeTable(intM){inti,j;for(i=;i<=M;i++)isprime[i]=;for(i=;i<M;i++){if(isprime[i])for(j=i+i;j<=M;j+=)isprime[j]=;}}