=1) { count++; } } printf("最大的数是:%d,素数的个数是:%d\n",maxNum,count); return 0;
n的数目是否已知?/*代码参考*/ include <iostream>#include <algorithm>using namespace std;int main(){ int i; cout<<"请输入元素的个数:"; cin>>i; int pos; int pre_num[i+5]; int save_num[i+5]; while(i--) { cin>>pre_num[i-1]; save_...