摘要:
``` #include using namespace std; /*求解完数,数字的因数等于该数字,2-20000*/ int main() { int num = 0; for(int i =2;i<=20000;i++){ int x = i,sum=0; for(int j=1;j<x;j 阅读全文
摘要:
``` #include #include using namespace std; int main() { int num = 0,count=0,sum = 0; cin >> num; int x = num; while(x!=0){ x=x/10; count++; } x= num; 阅读全文
摘要:
``` #include #include using namespace std; /*判断素数*/ int isprime(int number) { if(number> number; if(isprime(number)){ cout << "the number is prime"<< 阅读全文