CINTA作业7

class Solution { public: int countPrimes(int n) { if(n<=1) return 0; int count=0; int sqrt_n=sqrt(n); bool flag[n]={0}; // set all the elements in the array to 0.
相关文章
相关标签/搜索