include<stdio.h> include<string.h>const int MAX=10005;bool b[MAX];int main(){ int i,j,k,m,f;//求出10000以内的所有素数。memset(b,true,sizeof(b));i=2;while(i<102){ if(b[i]){ j=i*i;while(j<MAX){ b[j]=false;j+=i;} } i++;} while(scanf("%d",&m)==...