#include "header.h" int main (void) { FILE *fout; int i,n; int *a; double diff; time_t start,stop; char file[50]; printf("input an integer n\n"); scanf("%d",&n); a=(int *)malloc(n * sizeof(int)); time(&start); prime(n,a); time(&stop); diff=stop-start; printf("use %.4lf seconds\n",diff); printf("enter the file name:\n"); scanf("%s",file); fout=fopen(file,"w"); for (i=0;i