Started over, rewrote the majority of it using a dry-erase board. It works rather well now. Any thoughts, comments, suggestions, etc. are welcome and appreciated.Code:#include<stdio.h> #include<limits.h> int main() { short int yesno; long long int i,j; long long int x=3; long long int y=LLONG_MAX; FILE *fp; fp = fopen("output","w+"); fprintf(fp,"1, 2, "); for(i=x;i<=y;i++) { yesno=0; for(j=2;j<=i/2;j+=2) { if(i%j==0) { yesno=1; break; } } if (yesno==0) { fprintf(fp,"%lld, ",i); } } fclose(fp); return 0; }