#include "stdio.h"int main(int argv,char *argc[]){ int n,i,j,k; printf("The results are as follows:\n"); for(n=1,i=999;n<11;i-=2){ for(j=3;(k=j*j)<=i;j+=2) if(i%j==0) break; if(k>i){ printf("%4d",i); n++; } } printf("\n"); return 0;}
运行结果: