I also said 8 gigs... meant mibs (how Ubuntu refers to megabytes)... As you all may or may not have been able to tell. I've been very tired lately.
THIS is the source code I meant to post lol. I had to open up all of them in gedit and look them over (this is when backups begin to look like a bad idea lol).
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+");
printf("1, 2, ");
fprintf(fp,"1, 2, ");
for(i=x;i<=y;i+=2)
{
yesno=0;
for(j=3;j*j<=i;j+=2)
{
if(i%j==0)
{
yesno=1;
break;
}
}
if (yesno==0)
{
printf("%lld, ",i);
fprintf(fp,"%lld, ",i);
}
}
fclose(fp);
return 0;
}
Of course I would like to know if I've got some error in this. I've looked over all of the ones from 1 to ~8000 before I got bored with it.
Also, I am working on a way to limit the file size to ~512kb per file. I'm going to look up more information on reading file size or limiting output to files before I do anything else with it though... if I have any questions about that I'll start a new thread.