examination questions
Description:
Count the number of prime numbers less than a non-negative number, n
References:
Please use the following function to solve the problem:
int countPrimes(int n){
}
解题代码
int countPrimes(int n) { if (n == 0 || n == 1 || n == 2){ return 0; } if (n == 3){ return 1; } int temp = 0; bool flag = false; int arr[200] = { '