(x^5+x^4+x^3+x^2+x+1)*x^13+x^6+x^5+x^4+x^3+x^2+x+1
ver.1.000 2012.1.15
更新履歴
2012.1.15 ver.1.000 新規作成

新しい多項式をつかう。
(%i1) factor((x^5+x^4+x^3+x^2+x+1)*x^13+x^6+x^5+x^4+x^3+x^2+x+1);
       18    17    16    15    14    13    6    5    4    3    2
(%o1) x   + x   + x   + x   + x   + x   + x  + x  + x  + x  + x  + x + 1

e4.batをつくった。
for x:2 while x<20 do(
y:factor((x^5+x^4+x^3+x^2+x+1)*x^13+x^6+x^5+x^4+x^3+x^2+x+1),
print("        x=",x),
print("factor(x)=",y)
);

e4.batを実行した。
(%i2) batch("e4.bat");

read and interpret file: e4.bat
(%i3) for x from 2 while x < 20 do (y :
                2    3    4    5    6             2    3    4    5   13
factor(1 + x + x  + x  + x  + x  + x  + (1 + x + x  + x  + x  + x ) x  ),
print(        x=, x), print(factor(x)=, y))
        x= 2
factor(x)= 516223
        x= 3
factor(x)= 5 43 113 23887
        x= 4
factor(x)= 19 23 1181 177493
        x= 5
factor(x)= 4768066425781
        x= 6
factor(x)= 131 757 1031 1191979
        x= 7
factor(x)= 11 12697 13602352139
        x= 8
factor(x)= 5 29 613 787 294311239
        x= 9
factor(x)= 139 99241 12240832159
        x= 10
factor(x)= 2383 4871 95722687727
        x= 11
factor(x)= 17 829 150989 2874167089
        x= 12
factor(x)= 286553 101355164942501
        x= 13
factor(x)= 5 31 12689 61941720222511
        x= 14
factor(x)= 13 59 861059 696082945687
        x= 15
factor(x)= 61 25609 39241 25831125349
        x= 16
factor(x)= 5037190614820997632273
        x= 17
factor(x)= 419 203914241 174883133167
        x= 18
factor(x)= 5 11 757470935328741628777
        x= 19
factor(x)= 157 569 61843 293107 67876157
(%o3)                                done
(%o3)                               e4.bat
(%i4)

これよりb.txtをつくった。
5,3
43,3
113,3
19,4
23,4
131,6
757,6
11,7
5,8
29,8
613,8
787,8
139,9
17,11
829,11
5,13
31,13
13,14
59,14
61,15
419,17
5,18
11,18
157,19
569,19

Autohajiku.cを修正した。
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>

#define max 1 /* この数から+100まで生成する */

FILE *fp;
FILE *rp;

struct b_{
int n;
int p;
};

struct b_ b_txt[1000];

int n=1;
int Flag=0;
int max_i,i;

int main (void)
{

    /* 保存はカレントディレクトリーのhajiku-6.cというファイル名で上書きする */
    if((fp=fopen("hajiku-6.c","w"))== NULL){
        printf("cannot open hajiku-6.c\n");
        exit(1);
    }
    /* はじくしきを読み込む */
    if((rp=fopen("b.txt","r"))== NULL){
        printf("cannot open b.txt\n");
        exit(1);
    }
   i=0;
     while(EOF!=fscanf(rp,"%d,%d\n",&b_txt[i].n,&b_txt[i].p)){
     printf("%dn+%d\n",b_txt[i].n,b_txt[i].p);
     i++;
     }
   fclose(rp);
   printf("b.txt read!  %d 個 \n",i);
   max_i=i; 
const char c='%';
const char slash=0x5c;
const char dash=0x22;
 fprintf(fp,"#include <stddef.h>\n");
 fprintf(fp,"#include <stdlib.h>\n");
 fprintf(fp,"#include <stdio.h>\n");
 fprintf(fp,"\n");
 fprintf(fp,"FILE *fp; \n");
 fprintf(fp,"\n");
 fprintf(fp,"int n=1;\n");
 fprintf(fp,"int Flag=0;\n");
 fprintf(fp,"\n");
 fprintf(fp,"int main (void)\n");
 fprintf(fp,"\n");
 fprintf(fp,"{ \n");
 fprintf(fp,"  /* 保存はカレントディレクトリーのa.batというファイル名で上書きする */\n");
 fprintf(fp,"  if((fp=fopen(%ca.bat%c,%cw%c))== NULL){\n",dash,dash,dash,dash);
 fprintf(fp,"     printf(%ccannot open a.bat%cn%c);\n",dash,slash,dash);
 fprintf(fp,"     exit(1);\n");
 fprintf(fp,"  }\n");
 fprintf(fp,"\n");
 fprintf(fp,"  for(n=%d;n<%d;n++){\n",max,max+100);
 fprintf(fp,"   Flag=0;\n");
 for(i=0;i<max_i;i++){
 fprintf(fp,"   if((n>%d) && (((n-%d) %c %d)==0)){",b_txt[i].p-1,b_txt[i].p,c,b_txt[i].n);
 fprintf(fp,"     /* %dx+%d */ \n",b_txt[i].n,b_txt[i].p);
 fprintf(fp,"     printf(%c%cd=%dx%cd+%cd %cn%c,n,(n-%d)/%d,%d);\n",dash,c,b_txt[i].n,c,c,slash,dash,b_txt[i].p,b_txt[i].n,b_txt[i].p);
 fprintf(fp,"     Flag++;\n");
 fprintf(fp,"   };\n");
  }
 fprintf(fp,"   if(Flag==0){            /* どれでもないとき */ \n");
 fprintf(fp,"     printf(%c!!! %cd !!! %cn%c,n);\n",dash,c,slash,dash);
 fprintf(fp,"     fprintf(fp,%cfactor((%cd^5+%cd^4+%cd^3+%cd^2+%cd+1)*%cd^13+%cd^6+%cd^5+%cd^4+%cd^3+%cd^2+%cd+1);%cn%c,n,n,n,n,n,n,n,n,n,n,n,n);\n",dash,c,c,c,c,c,c,c,c,c,c,c,c,slash,dash);
 fprintf(fp,"   };\n");
 fprintf(fp,"  };\n");
 fprintf(fp," fclose(fp);\n");
 fprintf(fp," return(0);\n");
 fprintf(fp,"}\n");

  fclose(fp);
   return(0);
}

$ gcc -Wall Autohajiku.c -o Autohajiku
$ ./Autohajiku
5n+3
43n+3
113n+3
19n+4
23n+4
131n+6
757n+6
11n+7
5n+8
29n+8
613n+8
787n+8
139n+9
17n+11
829n+11
5n+13
31n+13
13n+14
59n+14
61n+15
419n+17
5n+18
11n+18
157n+19
569n+19
b.txt read!  25 個 
$ gcc -Wall hajiku-6.c -o hajiku-6
$ ./hajiku-6
!!! 1 !!!
!!! 2 !!!
3=5x0+3
3=43x0+3
3=113x0+3
4=19x0+4
4=23x0+4
!!! 5 !!!
6=131x0+6
6=757x0+6
7=11x0+7
8=5x1+3
8=5x0+8
8=29x0+8
8=613x0+8
8=787x0+8
9=139x0+9
!!! 10 !!!
11=17x0+11
11=829x0+11
!!! 12 !!!
13=5x2+3
13=5x1+8
13=5x0+13
13=31x0+13
14=13x0+14
14=59x0+14
15=61x0+15
!!! 16 !!!
17=419x0+17
18=5x3+3
18=11x1+7
18=5x2+8
18=5x1+13
18=5x0+18
18=11x0+18
19=157x0+19
19=569x0+19
!!! 20 !!!
!!! 21 !!!
!!! 22 !!!
23=5x4+3
23=19x1+4
23=5x3+8
23=5x2+13
23=5x1+18
!!! 24 !!!
!!! 25 !!!
!!! 26 !!!
27=23x1+4
27=13x1+14
28=5x5+3
28=5x4+8
28=17x1+11
28=5x3+13
28=5x2+18
29=11x2+7
29=11x1+18
!!! 30 !!!
!!! 31 !!!
!!! 32 !!!
33=5x6+3
33=5x5+8
33=5x4+13
33=5x3+18
!!! 34 !!!
!!! 35 !!!
!!! 36 !!!
37=29x1+8
38=5x7+3
38=5x6+8
38=5x5+13
38=5x4+18
!!! 39 !!!
40=11x3+7
40=13x2+14
40=11x2+18
!!! 41 !!!
42=19x2+4
43=5x8+3
43=5x7+8
43=5x6+13
43=5x5+18
44=31x1+13
45=17x2+11
46=43x1+3
!!! 47 !!!
48=5x9+3
48=5x8+8
48=5x7+13
48=5x6+18
!!! 49 !!!
50=23x2+4
51=11x4+7
51=11x3+18
!!! 52 !!!
53=5x10+3
53=5x9+8
53=5x8+13
53=13x3+14
53=5x7+18
!!! 54 !!!
!!! 55 !!!
!!! 56 !!!
!!! 57 !!!
58=5x11+3
58=5x10+8
58=5x9+13
58=5x8+18
!!! 59 !!!
!!! 60 !!!
61=19x3+4
62=11x5+7
62=17x3+11
62=11x4+18
63=5x12+3
63=5x11+8
63=5x10+13
63=5x9+18
!!! 64 !!!
!!! 65 !!!
66=29x2+8
66=13x4+14
!!! 67 !!!
68=5x13+3
68=5x12+8
68=5x11+13
68=5x10+18
!!! 69 !!!
!!! 70 !!!
!!! 71 !!!
!!! 72 !!!
73=5x14+3
73=23x3+4
73=11x6+7
73=5x13+8
73=5x12+13
73=59x1+14
73=5x11+18
73=11x5+18
!!! 74 !!!
75=31x2+13
76=61x1+15
!!! 77 !!!
78=5x15+3
78=5x14+8
78=5x13+13
78=5x12+18
79=17x4+11
79=13x5+14
80=19x4+4
!!! 81 !!!
!!! 82 !!!
83=5x16+3
83=5x15+8
83=5x14+13
83=5x13+18
84=11x7+7
84=11x6+18
!!! 85 !!!
!!! 86 !!!
!!! 87 !!!
88=5x17+3
88=5x16+8
88=5x15+13
88=5x14+18
89=43x2+3
!!! 90 !!!
!!! 91 !!!
92=13x6+14
93=5x18+3
93=5x17+8
93=5x16+13
93=5x15+18
!!! 94 !!!
95=11x8+7
95=29x3+8
95=11x7+18
96=23x4+4
96=17x5+11
!!! 97 !!!
98=5x19+3
98=5x18+8
98=5x17+13
98=5x16+18
99=19x5+4
!!! 100 !!!

生成されたa.batは、
factor((1^5+1^4+1^3+1^2+1+1)*1^13+1^6+1^5+1^4+1^3+1^2+1+1);
factor((2^5+2^4+2^3+2^2+2+1)*2^13+2^6+2^5+2^4+2^3+2^2+2+1);
factor((5^5+5^4+5^3+5^2+5+1)*5^13+5^6+5^5+5^4+5^3+5^2+5+1);
factor((10^5+10^4+10^3+10^2+10+1)*10^13+10^6+10^5+10^4+10^3+10^2+10+1);
factor((12^5+12^4+12^3+12^2+12+1)*12^13+12^6+12^5+12^4+12^3+12^2+12+1);
factor((16^5+16^4+16^3+16^2+16+1)*16^13+16^6+16^5+16^4+16^3+16^2+16+1);
factor((20^5+20^4+20^3+20^2+20+1)*20^13+20^6+20^5+20^4+20^3+20^2+20+1);
factor((21^5+21^4+21^3+21^2+21+1)*21^13+21^6+21^5+21^4+21^3+21^2+21+1);
factor((22^5+22^4+22^3+22^2+22+1)*22^13+22^6+22^5+22^4+22^3+22^2+22+1);
factor((24^5+24^4+24^3+24^2+24+1)*24^13+24^6+24^5+24^4+24^3+24^2+24+1);
factor((25^5+25^4+25^3+25^2+25+1)*25^13+25^6+25^5+25^4+25^3+25^2+25+1);
factor((26^5+26^4+26^3+26^2+26+1)*26^13+26^6+26^5+26^4+26^3+26^2+26+1);
factor((30^5+30^4+30^3+30^2+30+1)*30^13+30^6+30^5+30^4+30^3+30^2+30+1);
factor((31^5+31^4+31^3+31^2+31+1)*31^13+31^6+31^5+31^4+31^3+31^2+31+1);
factor((32^5+32^4+32^3+32^2+32+1)*32^13+32^6+32^5+32^4+32^3+32^2+32+1);
factor((34^5+34^4+34^3+34^2+34+1)*34^13+34^6+34^5+34^4+34^3+34^2+34+1);
factor((35^5+35^4+35^3+35^2+35+1)*35^13+35^6+35^5+35^4+35^3+35^2+35+1);
factor((36^5+36^4+36^3+36^2+36+1)*36^13+36^6+36^5+36^4+36^3+36^2+36+1);
factor((39^5+39^4+39^3+39^2+39+1)*39^13+39^6+39^5+39^4+39^3+39^2+39+1);
factor((41^5+41^4+41^3+41^2+41+1)*41^13+41^6+41^5+41^4+41^3+41^2+41+1);
factor((47^5+47^4+47^3+47^2+47+1)*47^13+47^6+47^5+47^4+47^3+47^2+47+1);
factor((49^5+49^4+49^3+49^2+49+1)*49^13+49^6+49^5+49^4+49^3+49^2+49+1);
factor((52^5+52^4+52^3+52^2+52+1)*52^13+52^6+52^5+52^4+52^3+52^2+52+1);
factor((54^5+54^4+54^3+54^2+54+1)*54^13+54^6+54^5+54^4+54^3+54^2+54+1);
factor((55^5+55^4+55^3+55^2+55+1)*55^13+55^6+55^5+55^4+55^3+55^2+55+1);
factor((56^5+56^4+56^3+56^2+56+1)*56^13+56^6+56^5+56^4+56^3+56^2+56+1);
factor((57^5+57^4+57^3+57^2+57+1)*57^13+57^6+57^5+57^4+57^3+57^2+57+1);
factor((59^5+59^4+59^3+59^2+59+1)*59^13+59^6+59^5+59^4+59^3+59^2+59+1);
factor((60^5+60^4+60^3+60^2+60+1)*60^13+60^6+60^5+60^4+60^3+60^2+60+1);
factor((64^5+64^4+64^3+64^2+64+1)*64^13+64^6+64^5+64^4+64^3+64^2+64+1);
factor((65^5+65^4+65^3+65^2+65+1)*65^13+65^6+65^5+65^4+65^3+65^2+65+1);
factor((67^5+67^4+67^3+67^2+67+1)*67^13+67^6+67^5+67^4+67^3+67^2+67+1);
factor((69^5+69^4+69^3+69^2+69+1)*69^13+69^6+69^5+69^4+69^3+69^2+69+1);
factor((70^5+70^4+70^3+70^2+70+1)*70^13+70^6+70^5+70^4+70^3+70^2+70+1);
factor((71^5+71^4+71^3+71^2+71+1)*71^13+71^6+71^5+71^4+71^3+71^2+71+1);
factor((72^5+72^4+72^3+72^2+72+1)*72^13+72^6+72^5+72^4+72^3+72^2+72+1);
factor((74^5+74^4+74^3+74^2+74+1)*74^13+74^6+74^5+74^4+74^3+74^2+74+1);
factor((77^5+77^4+77^3+77^2+77+1)*77^13+77^6+77^5+77^4+77^3+77^2+77+1);
factor((81^5+81^4+81^3+81^2+81+1)*81^13+81^6+81^5+81^4+81^3+81^2+81+1);
factor((82^5+82^4+82^3+82^2+82+1)*82^13+82^6+82^5+82^4+82^3+82^2+82+1);
factor((85^5+85^4+85^3+85^2+85+1)*85^13+85^6+85^5+85^4+85^3+85^2+85+1);
factor((86^5+86^4+86^3+86^2+86+1)*86^13+86^6+86^5+86^4+86^3+86^2+86+1);
factor((87^5+87^4+87^3+87^2+87+1)*87^13+87^6+87^5+87^4+87^3+87^2+87+1);
factor((90^5+90^4+90^3+90^2+90+1)*90^13+90^6+90^5+90^4+90^3+90^2+90+1);
factor((91^5+91^4+91^3+91^2+91+1)*91^13+91^6+91^5+91^4+91^3+91^2+91+1);
factor((94^5+94^4+94^3+94^2+94+1)*94^13+94^6+94^5+94^4+94^3+94^2+94+1);
factor((97^5+97^4+97^3+97^2+97+1)*97^13+97^6+97^5+97^4+97^3+97^2+97+1);
factor((100^5+100^4+100^3+100^2+100+1)*100^13+100^6+100^5+100^4+100^3+100^2+100+1);

(%i1) batch("a.bat");

read and interpret file: a.bat
                      2    3    4    5    6             2    3    4    5   13
(%i2) factor(1 + 1 + 1  + 1  + 1  + 1  + 1  + (1 + 1 + 1  + 1  + 1  + 1 ) 1  )
(%o2)                                 13
                      2    3    4    5    6             2    3    4    5   13
(%i3) factor(1 + 2 + 2  + 2  + 2  + 2  + 2  + (1 + 2 + 2  + 2  + 2  + 2 ) 2  )
(%o3)                               516223
素数ですね。

                      2    3    4    5    6             2    3    4    5   13
(%i4) factor(1 + 5 + 5  + 5  + 5  + 5  + 5  + (1 + 5 + 5  + 5  + 5  + 5 ) 5  )
(%o4)                            4768066425781
素数ですね。

                        2     3     4     5     6
(%i5) factor(1 + 10 + 10  + 10  + 10  + 10  + 10
                                                     2     3     4     5    13
                                       + (1 + 10 + 10  + 10  + 10  + 10 ) 10  )
(%o5)                        2383 4871 95722687727
                        2     3     4     5     6
(%i6) factor(1 + 12 + 12  + 12  + 12  + 12  + 12
                                                     2     3     4     5    13
                                       + (1 + 12 + 12  + 12  + 12  + 12 ) 12  )
(%o6)                       286553 101355164942501
                        2     3     4     5     6
(%i7) factor(1 + 16 + 16  + 16  + 16  + 16  + 16
                                                     2     3     4     5    13
                                       + (1 + 16 + 16  + 16  + 16  + 16 ) 16  )
(%o7)                       5037190614820997632273
素数ですね。

                        2     3     4     5     6
(%i8) factor(1 + 20 + 20  + 20  + 20  + 20  + 20
                                                     2     3     4     5    13
                                       + (1 + 20 + 20  + 20  + 20  + 20 ) 20  )
(%o8)                   23 97 2357 4783 17489 627323849
                        2     3     4     5     6
(%i9) factor(1 + 21 + 21  + 21  + 21  + 21  + 21
                                                     2     3     4     5    13
                                       + (1 + 21 + 21  + 21  + 21  + 21 ) 21  )
(%o9)                     4138298357 160071789694049
                         2     3     4     5     6
(%i10) factor(1 + 22 + 22  + 22  + 22  + 22  + 22
                                                     2     3     4     5    13
                                       + (1 + 22 + 22  + 22  + 22  + 22 ) 22  )
(%o10)                   2347 540577 1203485836889257
                         2     3     4     5     6
(%i11) factor(1 + 24 + 24  + 24  + 24  + 24  + 24
                                                     2     3     4     5    13
                                       + (1 + 24 + 24  + 24  + 24  + 24 ) 24  )
(%o11)                 73 359 10597 1595623 16434451853
                         2     3     4     5     6
(%i12) factor(1 + 25 + 25  + 25  + 25  + 25  + 25
                                                     2     3     4     5    13
                                       + (1 + 25 + 25  + 25  + 25  + 25 ) 25  )
(%o12)                   6947 4261653191 512004193513
                         2     3     4     5     6
(%i13) factor(1 + 26 + 26  + 26  + 26  + 26  + 26
                                                     2     3     4     5    13
                                       + (1 + 26 + 26  + 26  + 26  + 26 ) 26  )
(%o13)                  59 3378191 14561747 10563404441
                         2     3     4     5     6
(%i14) factor(1 + 30 + 30  + 30  + 30  + 30  + 30
                                                     2     3     4     5    13
                                       + (1 + 30 + 30  + 30  + 30  + 30 ) 30  )
(%o14)                   61 6570160912411967225477671
                         2     3     4     5     6
(%i15) factor(1 + 31 + 31  + 31  + 31  + 31  + 31
                                                     2     3     4     5    13
                                       + (1 + 31 + 31  + 31  + 31  + 31 ) 31  )
(%o15)                   2273 317798243078938992884321
                         2     3     4     5     6
(%i16) factor(1 + 32 + 32  + 32  + 32  + 32  + 32
                                                     2     3     4     5    13
                                       + (1 + 32 + 32  + 32  + 32  + 32 ) 32  )
(%o16)                   3331 383630617757320582637323
                         2     3     4     5     6
(%i17) factor(1 + 34 + 34  + 34  + 34  + 34  + 34
                                                     2     3     4     5    13
                                       + (1 + 34 + 34  + 34  + 34  + 34 ) 34  )
(%o17)                 41 67 1471 939970343223133426643
                         2     3     4     5     6
(%i18) factor(1 + 35 + 35  + 35  + 35  + 35  + 35
                                                     2     3     4     5    13
                                       + (1 + 35 + 35  + 35  + 35  + 35 ) 35  )
(%o18)                   6394607981049170963806394761
素数ですね。

                         2     3     4     5     6
(%i19) factor(1 + 36 + 36  + 36  + 36  + 36  + 36
                                                     2     3     4     5    13
                                       + (1 + 36 + 36  + 36  + 36  + 36 ) 36  )
(%o19)                  499127 258932783 82088319977533
                         2     3     4     5     6
(%i20) factor(1 + 39 + 39  + 39  + 39  + 39  + 39
                                                     2     3     4     5    13
                                       + (1 + 39 + 39  + 39  + 39  + 39 ) 39  )
(%o20)                   44714042653840821814332758161
素数ですね。

                         2     3     4     5     6
(%i21) factor(1 + 41 + 41  + 41  + 41  + 41  + 41
                                                     2     3     4     5    13
                                       + (1 + 41 + 41  + 41  + 41  + 41 ) 41  )
(%o21)                1447 34807 2973077 733655207814281
                         2     3     4     5     6
(%i22) factor(1 + 47 + 47  + 47  + 47  + 47  + 47
                                                     2     3     4     5    13
                                       + (1 + 47 + 47  + 47  + 47  + 47 ) 47  )
(%o22)                229 30780723307 181546201151414311
                         2     3     4     5     6
(%i23) factor(1 + 49 + 49  + 49  + 49  + 49  + 49
                                                     2     3     4     5    13
                                       + (1 + 49 + 49  + 49  + 49  + 49 ) 49  )
(%o23)               283 1579 372049 16282293390724680757
                         2     3     4     5     6
(%i24) factor(1 + 52 + 52  + 52  + 52  + 52  + 52
                                                     2     3     4     5    13
                                       + (1 + 52 + 52  + 52  + 52  + 52 ) 52  )
(%o24)                22769 69256706437 4996749312599441
                         2     3     4     5     6
(%i25) factor(1 + 54 + 54  + 54  + 54  + 54  + 54
                                                     2     3     4     5    13
                                       + (1 + 54 + 54  + 54  + 54  + 54 ) 54  )
(%o25)               33619 1164181 6385391 62145941650979
                         2     3     4     5     6
(%i26) factor(1 + 55 + 55  + 55  + 55  + 55  + 55
                                                     2     3     4     5    13
                                       + (1 + 55 + 55  + 55  + 55  + 55 ) 55  )
(%o26)                 21602168064189872993846552620081
素数ですね。

                         2     3     4     5     6
(%i27) factor(1 + 56 + 56  + 56  + 56  + 56  + 56
                                                     2     3     4     5    13
                                       + (1 + 56 + 56  + 56  + 56  + 56 ) 56  )
(%o27)                2053 679829581 21400347051213049081
                         2     3     4     5     6
(%i28) factor(1 + 57 + 57  + 57  + 57  + 57  + 57
                                                     2     3     4     5    13
                                       + (1 + 57 + 57  + 57  + 57  + 57 ) 57  )
(%o28)                 503543 81545062092240983498952491
                         2     3     4     5     6
(%i29) factor(1 + 59 + 59  + 59  + 59  + 59  + 59
                                                     2     3     4     5    13
                                       + (1 + 59 + 59  + 59  + 59  + 59 ) 59  )
(%o29)               11807 87539 3661426757 20172918422681
                         2     3     4     5     6
(%i30) factor(1 + 60 + 60  + 60  + 60  + 60  + 60
                                                     2     3     4     5    13
                                       + (1 + 60 + 60  + 60  + 60  + 60 ) 60  )
(%o30)               3779154619 12227123009 2235130080791
                         2     3     4     5     6
(%i31) factor(1 + 64 + 64  + 64  + 64  + 64  + 64
                                                     2     3     4     5    13
                                       + (1 + 64 + 64  + 64  + 64  + 64 ) 64  )
(%o31)               353 443 338141 6234515255081168890799
                         2     3     4     5     6
(%i32) factor(1 + 65 + 65  + 65  + 65  + 65  + 65
                                                     2     3     4     5    13
                                       + (1 + 65 + 65  + 65  + 65  + 65 ) 65  )
(%o32)                 435686197983045012907788999654541
素数ですね。

                         2     3     4     5     6
(%i33) factor(1 + 67 + 67  + 67  + 67  + 67  + 67
                                                     2     3     4     5    13
                                       + (1 + 67 + 67  + 67  + 67  + 67 ) 67  )
(%o33)                 751410597391757903029395264712393
素数ですね。

                         2     3     4     5     6
(%i34) factor(1 + 69 + 69  + 69  + 69  + 69  + 69
                                                     2     3     4     5    13
                                       + (1 + 69 + 69  + 69  + 69  + 69 ) 69  )
(%o34)               73 587 29762050546007517591253949831
                         2     3     4     5     6
(%i35) factor(1 + 70 + 70  + 70  + 70  + 70  + 70
                                                     2     3     4     5    13
                                       + (1 + 70 + 70  + 70  + 70  + 70 ) 70  )
(%o35)              197 9187 3826267018577 238560454059757
                         2     3     4     5     6
(%i36) factor(1 + 71 + 71  + 71  + 71  + 71  + 71
                                                     2     3     4     5    13
                                       + (1 + 71 + 71  + 71  + 71  + 71 ) 71  )
(%o36)              149 5297 664537 5126004677 793041983969
                         2     3     4     5     6
(%i37) factor(1 + 72 + 72  + 72  + 72  + 72  + 72
                                                     2     3     4     5    13
                                       + (1 + 72 + 72  + 72  + 72  + 72 ) 72  )
(%o37)              509 15427 150890449 2314184981302939919
                         2     3     4     5     6
(%i38) factor(1 + 74 + 74  + 74  + 74  + 74  + 74
                                                     2     3     4     5    13
                                       + (1 + 74 + 74  + 74  + 74  + 74 ) 74  )
(%o38)               401 11192714914447146462204855424151
                         2     3     4     5     6
(%i39) factor(1 + 77 + 77  + 77  + 77  + 77  + 77
                                                     2     3     4     5    13
                                       + (1 + 77 + 77  + 77  + 77  + 77 ) 77  )
(%o39)               1986497 4617663402162915275584802309
                         2     3     4     5     6
(%i40) factor(1 + 81 + 81  + 81  + 81  + 81  + 81
                                                     2     3     4     5    13
                                       + (1 + 81 + 81  + 81  + 81  + 81 ) 81  )
(%o40)               20523952441 1111384593427695838830613
                         2     3     4     5     6
(%i41) factor(1 + 82 + 82  + 82  + 82  + 82  + 82
                                                     2     3     4     5    13
                                       + (1 + 82 + 82  + 82  + 82  + 82 ) 82  )
(%o41)                28443181749577025009968318502362063
素数ですね。

                         2     3     4     5     6
(%i42) factor(1 + 85 + 85  + 85  + 85  + 85  + 85
                                                     2     3     4     5    13
                                       + (1 + 85 + 85  + 85  + 85  + 85 ) 85  )
(%o42)              59 919 937 1068496708334733903939073793
                         2     3     4     5     6
(%i43) factor(1 + 86 + 86  + 86  + 86  + 86  + 86
                                                     2     3     4     5    13
                                       + (1 + 86 + 86  + 86  + 86  + 86 ) 86  )
(%o43)             541 1471 3361008119107 25047947739672139
                         2     3     4     5     6
(%i44) factor(1 + 87 + 87  + 87  + 87  + 87  + 87
                                                     2     3     4     5    13
                                       + (1 + 87 + 87  + 87  + 87  + 87 ) 87  )
(%o44)             3001 212423 7970682961757 16233205253323
                         2     3     4     5     6
(%i45) factor(1 + 90 + 90  + 90  + 90  + 90  + 90
                                                     2     3     4     5    13
                                       + (1 + 90 + 90  + 90  + 90  + 90 ) 90  )
(%o45)               151781091873084294738390537412247191
素数ですね。

                         2     3     4     5     6
(%i46) factor(1 + 91 + 91  + 91  + 91  + 91  + 91
                                                     2     3     4     5    13
                                       + (1 + 91 + 91  + 91  + 91  + 91 ) 91  )
(%o46)              61 7927 75709 5057754458559625879161751
                         2     3     4     5     6
(%i47) factor(1 + 94 + 94  + 94  + 94  + 94  + 94
                                                     2     3     4     5    13
                                       + (1 + 94 + 94  + 94  + 94  + 94 ) 94  )
(%o47)               47497 6986828614137791856754855934323
                         2     3     4     5     6
(%i48) factor(1 + 97 + 97  + 97  + 97  + 97  + 97
                                                     2     3     4     5    13
                                       + (1 + 97 + 97  + 97  + 97  + 97 ) 97  )
(%o48)          73 127 271 569 50549 74489 4381249 24761726993
                           2      3      4      5      6
(%i49) factor(1 + 100 + 100  + 100  + 100  + 100  + 100
                                                 2      3      4      5     13
                                 + (1 + 100 + 100  + 100  + 100  + 100 ) 100  )
(%o49)               1010101010100000000000001010101010101
素数ですね。

(%o49)                               a.bat
(%i50)


b.txtに追加されるものは
23,20
97,20
73,24
359,24
59,26
61,30
41,34
67,34
229,47
283,49
353,64
443,64
73,69
587,69
197,70
149,71
509,72
401,74
59,85
919,85
937,85
541,86
61,91
73,97
127,97
271,97
569,97


$ gcc -Wall Autohajiku.c -o Autohajiku
$ ./Autohajiku
5n+3
43n+3
113n+3
19n+4
23n+4
131n+6
757n+6
11n+7
5n+8
29n+8
613n+8
787n+8
139n+9
17n+11
829n+11
5n+13
31n+13
13n+14
59n+14
61n+15
419n+17
5n+18
11n+18
157n+19
569n+19
23n+20
97n+20
73n+24
359n+24
59n+26
61n+30
41n+34
67n+34
229n+47
283n+49
353n+64
443n+64
73n+69
587n+69
197n+70
149n+71
509n+72
401n+74
59n+85
919n+85
937n+85
541n+86
61n+91
73n+97
127n+97
271n+97
569n+97
b.txt read!  52 個 
$ gcc -Wall hajiku-6.c -o hajiku-6
$ ./hajiku-6
!!! 100 !!!
101=67x1+34
!!! 102 !!!
103=5x20+3
103=5x19+8
103=5x18+13
103=5x17+18
!!! 104 !!!
105=13x7+14
106=11x9+7
106=31x3+13
106=11x8+18
!!! 107 !!!
108=5x21+3
108=5x20+8
108=5x19+13
108=5x18+18
!!! 109 !!!
!!! 110 !!!
!!! 111 !!!
112=23x4+20
113=5x22+3
113=5x21+8
113=17x6+11
113=5x20+13
113=5x19+18
!!! 114 !!!
!!! 115 !!!
116=113x1+3
116=41x2+34
117=11x10+7
117=11x9+18
117=97x1+20
118=5x23+3
118=19x6+4
118=5x22+8
118=5x21+13
118=13x8+14
118=5x20+18
119=23x5+4
!!! 120 !!!
!!! 121 !!!
!!! 122 !!!
123=5x24+3
123=5x23+8
123=5x22+13
123=5x21+18
124=29x4+8
!!! 125 !!!
!!! 126 !!!
!!! 127 !!!
128=5x25+3
128=11x11+7
128=5x24+8
128=5x23+13
128=5x22+18
128=11x10+18
!!! 129 !!!
130=17x7+11
131=13x9+14
132=43x3+3
132=59x2+14
133=5x26+3
133=5x25+8
133=5x24+13
133=5x23+18
!!! 134 !!!
135=23x5+20
!!! 136 !!!
137=19x7+4
137=131x1+6
137=31x4+13
137=61x2+15
138=5x27+3
138=5x26+8
138=5x25+13
138=5x24+18
139=11x12+7
139=11x11+18
!!! 140 !!!
!!! 141 !!!
142=23x6+4
142=73x1+69
143=5x28+3
143=5x27+8
143=5x26+13
143=5x25+18
144=13x10+14
144=59x2+26
144=59x1+85
!!! 145 !!!
!!! 146 !!!
147=17x8+11
148=5x29+3
148=5x28+8
148=139x1+9
148=5x27+13
148=5x26+18
!!! 149 !!!
150=11x13+7
150=11x12+18
!!! 151 !!!
152=61x2+30
152=61x1+91
153=5x30+3
153=5x29+8
153=29x5+8
153=5x28+13
153=5x27+18
!!! 154 !!!
!!! 155 !!!
156=19x8+4
157=13x11+14
157=41x3+34
158=5x31+3
158=5x30+8
158=5x29+13
158=5x28+18
158=23x6+20
!!! 159 !!!
!!! 160 !!!
161=11x14+7
161=11x13+18
!!! 162 !!!
163=5x32+3
163=5x31+8
163=5x30+13
163=5x29+18
164=17x9+11
165=23x7+4
!!! 166 !!!
!!! 167 !!!
168=5x33+3
168=5x32+8
168=5x31+13
168=31x5+13
168=5x30+18
168=67x2+34
!!! 169 !!!
170=13x12+14
170=73x2+24
170=73x1+97
!!! 171 !!!
172=11x15+7
172=11x14+18
173=5x34+3
173=5x33+8
173=5x32+13
173=5x31+18
!!! 174 !!!
175=43x4+3
175=19x9+4
176=157x1+19
!!! 177 !!!
178=5x35+3
178=5x34+8
178=5x33+13
178=5x32+18
!!! 179 !!!
!!! 180 !!!
181=17x10+11
181=23x7+20
182=29x6+8
183=5x36+3
183=11x16+7
183=5x35+8
183=5x34+13
183=13x13+14
183=5x33+18
183=11x15+18
!!! 184 !!!
!!! 185 !!!
!!! 186 !!!
!!! 187 !!!
188=5x37+3
188=23x8+4
188=5x36+8
188=5x35+13
188=5x34+18
!!! 189 !!!
!!! 190 !!!
191=59x3+14
!!! 192 !!!
193=5x38+3
193=5x37+8
193=5x36+13
193=5x35+18
194=19x10+4
194=11x17+7
194=11x16+18
!!! 195 !!!
196=13x14+14
!!! 197 !!!
198=5x39+3
198=5x38+8
198=17x11+11
198=5x37+13
198=61x3+15
198=5x36+18
198=41x4+34
199=31x6+13

生成されたa.batは、
factor((100^5+100^4+100^3+100^2+100+1)*100^13+100^6+100^5+100^4+100^3+100^2+100+1);
factor((102^5+102^4+102^3+102^2+102+1)*102^13+102^6+102^5+102^4+102^3+102^2+102+1);
factor((104^5+104^4+104^3+104^2+104+1)*104^13+104^6+104^5+104^4+104^3+104^2+104+1);
factor((107^5+107^4+107^3+107^2+107+1)*107^13+107^6+107^5+107^4+107^3+107^2+107+1);
factor((109^5+109^4+109^3+109^2+109+1)*109^13+109^6+109^5+109^4+109^3+109^2+109+1);
factor((110^5+110^4+110^3+110^2+110+1)*110^13+110^6+110^5+110^4+110^3+110^2+110+1);
factor((111^5+111^4+111^3+111^2+111+1)*111^13+111^6+111^5+111^4+111^3+111^2+111+1);
factor((114^5+114^4+114^3+114^2+114+1)*114^13+114^6+114^5+114^4+114^3+114^2+114+1);
factor((115^5+115^4+115^3+115^2+115+1)*115^13+115^6+115^5+115^4+115^3+115^2+115+1);
factor((120^5+120^4+120^3+120^2+120+1)*120^13+120^6+120^5+120^4+120^3+120^2+120+1);
factor((121^5+121^4+121^3+121^2+121+1)*121^13+121^6+121^5+121^4+121^3+121^2+121+1);
factor((122^5+122^4+122^3+122^2+122+1)*122^13+122^6+122^5+122^4+122^3+122^2+122+1);
factor((125^5+125^4+125^3+125^2+125+1)*125^13+125^6+125^5+125^4+125^3+125^2+125+1);
factor((126^5+126^4+126^3+126^2+126+1)*126^13+126^6+126^5+126^4+126^3+126^2+126+1);
factor((127^5+127^4+127^3+127^2+127+1)*127^13+127^6+127^5+127^4+127^3+127^2+127+1);
factor((129^5+129^4+129^3+129^2+129+1)*129^13+129^6+129^5+129^4+129^3+129^2+129+1);
factor((134^5+134^4+134^3+134^2+134+1)*134^13+134^6+134^5+134^4+134^3+134^2+134+1);
factor((136^5+136^4+136^3+136^2+136+1)*136^13+136^6+136^5+136^4+136^3+136^2+136+1);
factor((140^5+140^4+140^3+140^2+140+1)*140^13+140^6+140^5+140^4+140^3+140^2+140+1);
factor((141^5+141^4+141^3+141^2+141+1)*141^13+141^6+141^5+141^4+141^3+141^2+141+1);
factor((145^5+145^4+145^3+145^2+145+1)*145^13+145^6+145^5+145^4+145^3+145^2+145+1);
factor((146^5+146^4+146^3+146^2+146+1)*146^13+146^6+146^5+146^4+146^3+146^2+146+1);
factor((149^5+149^4+149^3+149^2+149+1)*149^13+149^6+149^5+149^4+149^3+149^2+149+1);
factor((151^5+151^4+151^3+151^2+151+1)*151^13+151^6+151^5+151^4+151^3+151^2+151+1);
factor((154^5+154^4+154^3+154^2+154+1)*154^13+154^6+154^5+154^4+154^3+154^2+154+1);
factor((155^5+155^4+155^3+155^2+155+1)*155^13+155^6+155^5+155^4+155^3+155^2+155+1);
factor((159^5+159^4+159^3+159^2+159+1)*159^13+159^6+159^5+159^4+159^3+159^2+159+1);
factor((160^5+160^4+160^3+160^2+160+1)*160^13+160^6+160^5+160^4+160^3+160^2+160+1);
factor((162^5+162^4+162^3+162^2+162+1)*162^13+162^6+162^5+162^4+162^3+162^2+162+1);
factor((166^5+166^4+166^3+166^2+166+1)*166^13+166^6+166^5+166^4+166^3+166^2+166+1);
factor((167^5+167^4+167^3+167^2+167+1)*167^13+167^6+167^5+167^4+167^3+167^2+167+1);
factor((169^5+169^4+169^3+169^2+169+1)*169^13+169^6+169^5+169^4+169^3+169^2+169+1);
factor((171^5+171^4+171^3+171^2+171+1)*171^13+171^6+171^5+171^4+171^3+171^2+171+1);
factor((174^5+174^4+174^3+174^2+174+1)*174^13+174^6+174^5+174^4+174^3+174^2+174+1);
factor((177^5+177^4+177^3+177^2+177+1)*177^13+177^6+177^5+177^4+177^3+177^2+177+1);
factor((179^5+179^4+179^3+179^2+179+1)*179^13+179^6+179^5+179^4+179^3+179^2+179+1);
factor((180^5+180^4+180^3+180^2+180+1)*180^13+180^6+180^5+180^4+180^3+180^2+180+1);
factor((184^5+184^4+184^3+184^2+184+1)*184^13+184^6+184^5+184^4+184^3+184^2+184+1);
factor((185^5+185^4+185^3+185^2+185+1)*185^13+185^6+185^5+185^4+185^3+185^2+185+1);
factor((186^5+186^4+186^3+186^2+186+1)*186^13+186^6+186^5+186^4+186^3+186^2+186+1);
factor((187^5+187^4+187^3+187^2+187+1)*187^13+187^6+187^5+187^4+187^3+187^2+187+1);
factor((189^5+189^4+189^3+189^2+189+1)*189^13+189^6+189^5+189^4+189^3+189^2+189+1);
factor((190^5+190^4+190^3+190^2+190+1)*190^13+190^6+190^5+190^4+190^3+190^2+190+1);
factor((192^5+192^4+192^3+192^2+192+1)*192^13+192^6+192^5+192^4+192^3+192^2+192+1);
factor((195^5+195^4+195^3+195^2+195+1)*195^13+195^6+195^5+195^4+195^3+195^2+195+1);
factor((197^5+197^4+197^3+197^2+197+1)*197^13+197^6+197^5+197^4+197^3+197^2+197+1);

(%i1) batch("a.bat");

read and interpret file: a.bat
                          2      3      4      5      6
(%i2) factor(1 + 100 + 100  + 100  + 100  + 100  + 100
                                                 2      3      4      5     13
                                 + (1 + 100 + 100  + 100  + 100  + 100 ) 100  )
(%o2)                1010101010100000000000001010101010101
                          2      3      4      5      6
(%i3) factor(1 + 102 + 102  + 102  + 102  + 102  + 102
                                                 2      3      4      5     13
                                 + (1 + 102 + 102  + 102  + 102  + 102 ) 102  )
(%o3)               958877 7688999 195636184278069973255801
                          2      3      4      5      6
(%i4) factor(1 + 104 + 104  + 104  + 104  + 104  + 104
                                                 2      3      4      5     13
                                 + (1 + 104 + 104  + 104  + 104  + 104 ) 104  )
(%o4)              21461989933 225054637967 423485229833411
                          2      3      4      5      6
(%i5) factor(1 + 107 + 107  + 107  + 107  + 107  + 107
                                                 2      3      4      5     13
                                 + (1 + 107 + 107  + 107  + 107  + 107 ) 107  )
(%o5)              269 4643 78671710659539 34722929087292101
                          2      3      4      5      6
(%i6) factor(1 + 109 + 109  + 109  + 109  + 109  + 109
                                                 2      3      4      5     13
                                 + (1 + 109 + 109  + 109  + 109  + 109 ) 109  )
(%o6)              928703 2562644686493 2000389019578257079
                          2      3      4      5      6
(%i7) factor(1 + 110 + 110  + 110  + 110  + 110  + 110
                                                 2      3      4      5     13
                                 + (1 + 110 + 110  + 110  + 110  + 110 ) 110  )
(%o7)               3160709 1775211109029390707946986510879
                          2      3      4      5      6
(%i8) factor(1 + 111 + 111  + 111  + 111  + 111  + 111
                                                 2      3      4      5     13
                                 + (1 + 111 + 111  + 111  + 111  + 111 ) 111  )
(%o8)              9171534523 618162966989 1164659364280799
                          2      3      4      5      6
(%i9) factor(1 + 114 + 114  + 114  + 114  + 114  + 114
                                                 2      3      4      5     13
                                 + (1 + 114 + 114  + 114  + 114  + 114 ) 114  )
(%o9)            269 313 248177 4275457772147 119418871432577
                           2      3      4      5      6
(%i10) factor(1 + 115 + 115  + 115  + 115  + 115  + 115
                                                 2      3      4      5     13
                                 + (1 + 115 + 115  + 115  + 115  + 115 ) 115  )
(%o10)           137 157 5471 197599 536886444202478837503381
                           2      3      4      5      6
(%i11) factor(1 + 120 + 120  + 120  + 120  + 120  + 120
                                                 2      3      4      5     13
                                 + (1 + 120 + 120  + 120  + 120  + 120 ) 120  )
(%o11)            307 9059 2587930237 3730143276061590787541
                           2      3      4      5      6
(%i12) factor(1 + 121 + 121  + 121  + 121  + 121  + 121
                                                 2      3      4      5     13
                                 + (1 + 121 + 121  + 121  + 121  + 121 ) 121  )
(%o12)            2339 5939581 5206884563 430900312836413929
                           2      3      4      5      6
(%i13) factor(1 + 122 + 122  + 122  + 122  + 122  + 122
                                                 2      3      4      5     13
                                 + (1 + 122 + 122  + 122  + 122  + 122 ) 122  )
(%o13)             71 653 779614454356370452459309093409941
                           2      3      4      5      6
(%i14) factor(1 + 125 + 125  + 125  + 125  + 125  + 125
                                                 2      3      4      5     13
                                 + (1 + 125 + 125  + 125  + 125  + 125 ) 125  )
(%o14)             22391 2499165816876815925553380659110211
                           2      3      4      5      6
(%i15) factor(1 + 126 + 126  + 126  + 126  + 126  + 126
                                                 2      3      4      5     13
                                 + (1 + 126 + 126  + 126  + 126  + 126 ) 126  )
(%o15)              64584803746240210384755619235257326763
素数ですね。

                           2      3      4      5      6
(%i16) factor(1 + 127 + 127  + 127  + 127  + 127  + 127
                                                 2      3      4      5     13
                                 + (1 + 127 + 127  + 127  + 127  + 127 ) 127  )
(%o16)              74456077515620841213302111026759433473
素数ですね。

                           2      3      4      5      6
(%i17) factor(1 + 129 + 129  + 129  + 129  + 129  + 129
                                                 2      3      4      5     13
                                 + (1 + 129 + 129  + 129  + 129  + 129 ) 129  )
(%o17)             29303 3895137654901583 864091296227735029
                           2      3      4      5      6
(%i18) factor(1 + 134 + 134  + 134  + 134  + 134  + 134
                                                 2      3      4      5     13
                                 + (1 + 134 + 134  + 134  + 134  + 134 ) 134  )
(%o18)            241116529 723496789 8627977847 129887367713
                           2      3      4      5      6
(%i19) factor(1 + 136 + 136  + 136  + 136  + 136  + 136
                                                 2      3      4      5     13
                                 + (1 + 136 + 136  + 136  + 136  + 136 ) 136  )
(%o19)           1559 194717 25828001 32551028177910241943051
                           2      3      4      5      6
(%i20) factor(1 + 140 + 140  + 140  + 140  + 140  + 140
                                                 2      3      4      5     13
                                 + (1 + 140 + 140  + 140  + 140  + 140 ) 140  )
(%o20)            29567 93097 467442092987 334154344643191057
                           2      3      4      5      6
(%i21) factor(1 + 141 + 141  + 141  + 141  + 141  + 141
                                                 2      3      4      5     13
                                 + (1 + 141 + 141  + 141  + 141  + 141 ) 141  )
(%o21)            653135292409 19522218691841 38326819340717
                           2      3      4      5      6
(%i22) factor(1 + 145 + 145  + 145  + 145  + 145  + 145
                                                 2      3      4      5     13
                                 + (1 + 145 + 145  + 145  + 145  + 145 ) 145  )
(%o22)            4273 30982481 666659963 9159591209613194359
                           2      3      4      5      6
(%i23) factor(1 + 146 + 146  + 146  + 146  + 146  + 146
                                                 2      3      4      5     13
                                 + (1 + 146 + 146  + 146  + 146  + 146 ) 146  )
(%o23)             4513777129447 202673116628197133177871769
                           2      3      4      5      6
(%i24) factor(1 + 149 + 149  + 149  + 149  + 149  + 149
                                                 2      3      4      5     13
                                 + (1 + 149 + 149  + 149  + 149  + 149 ) 149  )
(%o24)             793684827105074011 1661993444634336098191
                           2      3      4      5      6
(%i25) factor(1 + 151 + 151  + 151  + 151  + 151  + 151
                                                 2      3      4      5     13
                                 + (1 + 151 + 151  + 151  + 151  + 151 ) 151  )
(%o25)            313 62173317990671171 86163306599561341331
                           2      3      4      5      6
(%i26) factor(1 + 154 + 154  + 154  + 154  + 154  + 154
                                                 2      3      4      5     13
                                 + (1 + 154 + 154  + 154  + 154  + 154 ) 154  )
(%o26)            452269 342980509 15400541938778207542608751
                           2      3      4      5      6
(%i27) factor(1 + 155 + 155  + 155  + 155  + 155  + 155
                                                 2      3      4      5     13
                                 + (1 + 155 + 155  + 155  + 155  + 155 ) 155  )
(%o27)            2311 4376813843 265352707678304061120511397
                           2      3      4      5      6
(%i28) factor(1 + 159 + 159  + 159  + 159  + 159  + 159
                                                 2      3      4      5     13
                                 + (1 + 159 + 159  + 159  + 159  + 159 ) 159  )
(%o28)            18341830711273758001 231443822998491751441
                           2      3      4      5      6
(%i29) factor(1 + 160 + 160  + 160  + 160  + 160  + 160
                                                 2      3      4      5     13
                                 + (1 + 160 + 160  + 160  + 160  + 160 ) 160  )
(%o29)          331 21324361 22951609 453044503 64747726608373
                           2      3      4      5      6
(%i30) factor(1 + 162 + 162  + 162  + 162  + 162  + 162
                                                 2      3      4      5     13
                                 + (1 + 162 + 162  + 162  + 162  + 162 ) 162  )
(%o30)             647 9184491564410319300872503781303457449
                           2      3      4      5      6
(%i31) factor(1 + 166 + 166  + 166  + 166  + 166  + 166
                                                 2      3      4      5     13
                                 + (1 + 166 + 166  + 166  + 166  + 166 ) 166  )
(%o31)          263 307 1847 60265353902917 1025512593309045997
                           2      3      4      5      6
(%i32) factor(1 + 167 + 167  + 167  + 167  + 167  + 167
                                                 2      3      4      5     13
                                 + (1 + 167 + 167  + 167  + 167  + 167 ) 167  )
(%o32)             10268449314767660340133208522609205282193
素数ですね。

                           2      3      4      5      6
(%i33) factor(1 + 169 + 169  + 169  + 169  + 169  + 169
                                                 2      3      4      5     13
                                 + (1 + 169 + 169  + 169  + 169  + 169 ) 169  )
(%o33)            4099 3103560298405152448348828387300044319
                           2      3      4      5      6
(%i34) factor(1 + 171 + 171  + 171  + 171  + 171  + 171
                                                 2      3      4      5     13
                                 + (1 + 171 + 171  + 171  + 171  + 171 ) 171  )
(%o34)            50223673 934410451189073 334989363816177617
                           2      3      4      5      6
(%i35) factor(1 + 174 + 174  + 174  + 174  + 174  + 174
                                                 2      3      4      5     13
                                 + (1 + 174 + 174  + 174  + 174  + 174 ) 174  )
(%o35)             21497582002532248091353510769405441871451
素数ですね。

                           2      3      4      5      6
(%i36) factor(1 + 177 + 177  + 177  + 177  + 177  + 177
                                                 2      3      4      5     13
                                 + (1 + 177 + 177  + 177  + 177  + 177 ) 177  )
(%o36)           429387919 14838108440261 4589348429394387047
                           2      3      4      5      6
(%i37) factor(1 + 179 + 179  + 179  + 179  + 179  + 179
                                                 2      3      4      5     13
                                 + (1 + 179 + 179  + 179  + 179  + 179 ) 179  )
(%o37)           1303 101064436337 271797096127659760790763311
                           2      3      4      5      6
(%i38) factor(1 + 180 + 180  + 180  + 180  + 180  + 180
                                                 2      3      4      5     13
                                 + (1 + 180 + 180  + 180  + 180  + 180 ) 180  )
(%o38)           1487 41174768185891 646223035077780703091993
                           2      3      4      5      6
(%i39) factor(1 + 184 + 184  + 184  + 184  + 184  + 184
                                                 2      3      4      5     13
                                 + (1 + 184 + 184  + 184  + 184  + 184 ) 184  )
(%o39)            823531106663 71352228109132588812130331807
                           2      3      4      5      6
(%i40) factor(1 + 185 + 185  + 185  + 185  + 185  + 185
                                                 2      3      4      5     13
                                 + (1 + 185 + 185  + 185  + 185  + 185 ) 185  )
(%o40)            535550807633 120960712989780711824798334317
                           2      3      4      5      6
(%i41) factor(1 + 186 + 186  + 186  + 186  + 186  + 186
                                                 2      3      4      5     13
                                 + (1 + 186 + 186  + 186  + 186  + 186 ) 186  )
(%o41)           659 135497 799390747826706052812088035681061
                           2      3      4      5      6
(%i42) factor(1 + 187 + 187  + 187  + 187  + 187  + 187
                                                 2      3      4      5     13
                                 + (1 + 187 + 187  + 187  + 187  + 187 ) 187  )
(%o42)          132403 153071 164813171 23533955059111540157311
                           2      3      4      5      6
(%i43) factor(1 + 189 + 189  + 189  + 189  + 189  + 189
                                                 2      3      4      5     13
                                 + (1 + 189 + 189  + 189  + 189  + 189 ) 189  )
(%o43)         113 1019 133238851 1297011593 4783976809859958941
                           2      3      4      5      6
(%i44) factor(1 + 190 + 190  + 190  + 190  + 190  + 190
                                                 2      3      4      5     13
                                 + (1 + 190 + 190  + 190  + 190  + 190 ) 190  )
(%o44)           29531 173369226570887 20445910180487387728903
                           2      3      4      5      6
(%i45) factor(1 + 192 + 192  + 192  + 192  + 192  + 192
                                                 2      3      4      5     13
                                 + (1 + 192 + 192  + 192  + 192  + 192 ) 192  )
(%o45)            126383383537174026523309248781994536243393
素数ですね。

                           2      3      4      5      6
(%i46) factor(1 + 195 + 195  + 195  + 195  + 195  + 195
                                                 2      3      4      5     13
                                 + (1 + 195 + 195  + 195  + 195  + 195 ) 195  )
(%o46)           2467 287880651585498481 235220007494654627923
                           2      3      4      5      6
(%i47) factor(1 + 197 + 197  + 197  + 197  + 197  + 197
                                                 2      3      4      5     13
                                 + (1 + 197 + 197  + 197  + 197  + 197 ) 197  )
(%o47)            981180643277749301 204575326911840934604033
(%o47)                               a.bat
(%i48)



b.txtに追加されるものは
269,107
269,114
313,114
137,115
157,115
307,120
71,122
653,122
313,151
331,160
647,162
263,166
307,166
659,186
113,189

$ gcc -Wall Autohajiku.c -o Autohajiku
$ ./Autohajiku
5n+3
43n+3
113n+3
19n+4
23n+4
131n+6
757n+6
11n+7
5n+8
29n+8
613n+8
787n+8
139n+9
17n+11
829n+11
5n+13
31n+13
13n+14
59n+14
61n+15
419n+17
5n+18
11n+18
157n+19
569n+19
23n+20
97n+20
73n+24
359n+24
59n+26
61n+30
41n+34
67n+34
229n+47
283n+49
353n+64
443n+64
73n+69
587n+69
197n+70
149n+71
509n+72
401n+74
59n+85
919n+85
937n+85
541n+86
61n+91
73n+97
127n+97
271n+97
569n+97
269n+107
269n+114
313n+114
137n+115
157n+115
307n+120
71n+122
653n+122
313n+151
331n+160
647n+162
263n+166
307n+166
659n+186
113n+189
b.txt read!  67 個 
$ gcc -Wall hajiku-6.c -o hajiku-6
$ ./hajiku-6
!!! 200 !!!
!!! 201 !!!
!!! 202 !!!
203=5x40+3
203=5x39+8
203=5x38+13
203=5x37+18
203=59x3+26
203=59x2+85
204=23x8+20
205=11x18+7
205=11x17+18
!!! 206 !!!
!!! 207 !!!
208=5x41+3
208=5x40+8
208=5x39+13
208=5x38+18
209=13x15+14
!!! 210 !!!
211=23x9+4
211=29x7+8
!!! 212 !!!
213=5x42+3
213=19x11+4
213=5x41+8
213=5x40+13
213=5x39+18
213=61x3+30
213=61x2+91
214=97x2+20
215=17x12+11
215=73x2+69
216=11x19+7
216=11x18+18
!!! 217 !!!
218=5x43+3
218=43x5+3
218=5x42+8
218=5x41+13
218=5x40+18
!!! 219 !!!
220=149x1+71
!!! 221 !!!
222=13x16+14
223=5x44+3
223=5x43+8
223=5x42+13
223=5x41+18
224=127x1+97
!!! 225 !!!
!!! 226 !!!
227=11x20+7
227=11x19+18
227=23x9+20
228=5x45+3
228=5x44+8
228=5x43+13
228=5x42+18
229=113x2+3
230=31x7+13
!!! 231 !!!
232=19x12+4
232=17x13+11
233=5x46+3
233=5x45+8
233=5x44+13
233=5x43+18
234=23x10+4
235=13x17+14
235=67x3+34
!!! 236 !!!
!!! 237 !!!
238=5x47+3
238=11x21+7
238=5x46+8
238=5x45+13
238=5x44+18
238=11x20+18
239=41x5+34
240=29x8+8
!!! 241 !!!
!!! 242 !!!
243=5x48+3
243=5x47+8
243=5x46+13
243=5x45+18
243=73x3+24
243=73x2+97
!!! 244 !!!
!!! 245 !!!
!!! 246 !!!
!!! 247 !!!
248=5x49+3
248=5x48+8
248=5x47+13
248=13x18+14
248=5x46+18
249=11x22+7
249=17x14+11
249=11x21+18
250=59x4+14
250=23x10+20
251=19x13+4
252=137x1+115
253=5x50+3
253=5x49+8
253=5x48+13
253=5x47+18
!!! 254 !!!
!!! 255 !!!
!!! 256 !!!
257=23x11+4
258=5x51+3
258=5x50+8
258=5x49+13
258=5x48+18
259=61x4+15
260=11x23+7
260=11x22+18
261=43x6+3
261=31x8+13
261=13x19+14
262=59x4+26
262=59x3+85
263=5x52+3
263=5x51+8
263=5x50+13
263=5x49+18
264=71x2+122
!!! 265 !!!
266=17x15+11
267=197x1+70
268=5x53+3
268=131x2+6
268=5x52+8
268=5x51+13
268=5x50+18
269=29x9+8
270=19x14+4
271=11x24+7
271=11x23+18
272=157x1+115
273=5x54+3
273=5x53+8
273=5x52+13
273=5x51+18
273=23x11+20
274=13x20+14
274=61x4+30
274=61x3+91
!!! 275 !!!
276=229x1+47
!!! 277 !!!
278=5x55+3
278=5x54+8
278=5x53+13
278=5x52+18
!!! 279 !!!
280=23x12+4
280=41x6+34
!!! 281 !!!
282=11x25+7
282=11x24+18
283=5x56+3
283=5x55+8
283=17x16+11
283=5x54+13
283=5x53+18
!!! 284 !!!
!!! 285 !!!
!!! 286 !!!
287=139x2+9
287=13x21+14
288=5x57+3
288=5x56+8
288=5x55+13
288=5x54+18
288=73x3+69
289=19x15+4
!!! 290 !!!
!!! 291 !!!
292=31x9+13
293=5x58+3
293=11x26+7
293=5x57+8
293=5x56+13
293=5x55+18
293=11x25+18
!!! 294 !!!
!!! 295 !!!
296=23x12+20
!!! 297 !!!
298=5x59+3
298=5x58+8
298=29x10+8
298=5x57+13
298=5x56+18
!!! 299 !!!

生成されたa.batは、
factor((200^5+200^4+200^3+200^2+200+1)*200^13+200^6+200^5+200^4+200^3+200^2+200+1);
factor((201^5+201^4+201^3+201^2+201+1)*201^13+201^6+201^5+201^4+201^3+201^2+201+1);
factor((202^5+202^4+202^3+202^2+202+1)*202^13+202^6+202^5+202^4+202^3+202^2+202+1);
factor((206^5+206^4+206^3+206^2+206+1)*206^13+206^6+206^5+206^4+206^3+206^2+206+1);
factor((207^5+207^4+207^3+207^2+207+1)*207^13+207^6+207^5+207^4+207^3+207^2+207+1);
factor((210^5+210^4+210^3+210^2+210+1)*210^13+210^6+210^5+210^4+210^3+210^2+210+1);
factor((212^5+212^4+212^3+212^2+212+1)*212^13+212^6+212^5+212^4+212^3+212^2+212+1);
factor((217^5+217^4+217^3+217^2+217+1)*217^13+217^6+217^5+217^4+217^3+217^2+217+1);
factor((219^5+219^4+219^3+219^2+219+1)*219^13+219^6+219^5+219^4+219^3+219^2+219+1);
factor((221^5+221^4+221^3+221^2+221+1)*221^13+221^6+221^5+221^4+221^3+221^2+221+1);
factor((225^5+225^4+225^3+225^2+225+1)*225^13+225^6+225^5+225^4+225^3+225^2+225+1);
factor((226^5+226^4+226^3+226^2+226+1)*226^13+226^6+226^5+226^4+226^3+226^2+226+1);
factor((231^5+231^4+231^3+231^2+231+1)*231^13+231^6+231^5+231^4+231^3+231^2+231+1);
factor((236^5+236^4+236^3+236^2+236+1)*236^13+236^6+236^5+236^4+236^3+236^2+236+1);
factor((237^5+237^4+237^3+237^2+237+1)*237^13+237^6+237^5+237^4+237^3+237^2+237+1);
factor((241^5+241^4+241^3+241^2+241+1)*241^13+241^6+241^5+241^4+241^3+241^2+241+1);
factor((242^5+242^4+242^3+242^2+242+1)*242^13+242^6+242^5+242^4+242^3+242^2+242+1);
factor((244^5+244^4+244^3+244^2+244+1)*244^13+244^6+244^5+244^4+244^3+244^2+244+1);
factor((245^5+245^4+245^3+245^2+245+1)*245^13+245^6+245^5+245^4+245^3+245^2+245+1);
factor((246^5+246^4+246^3+246^2+246+1)*246^13+246^6+246^5+246^4+246^3+246^2+246+1);
factor((247^5+247^4+247^3+247^2+247+1)*247^13+247^6+247^5+247^4+247^3+247^2+247+1);
factor((254^5+254^4+254^3+254^2+254+1)*254^13+254^6+254^5+254^4+254^3+254^2+254+1);
factor((255^5+255^4+255^3+255^2+255+1)*255^13+255^6+255^5+255^4+255^3+255^2+255+1);
factor((256^5+256^4+256^3+256^2+256+1)*256^13+256^6+256^5+256^4+256^3+256^2+256+1);
factor((265^5+265^4+265^3+265^2+265+1)*265^13+265^6+265^5+265^4+265^3+265^2+265+1);
factor((275^5+275^4+275^3+275^2+275+1)*275^13+275^6+275^5+275^4+275^3+275^2+275+1);
factor((277^5+277^4+277^3+277^2+277+1)*277^13+277^6+277^5+277^4+277^3+277^2+277+1);
factor((279^5+279^4+279^3+279^2+279+1)*279^13+279^6+279^5+279^4+279^3+279^2+279+1);
factor((281^5+281^4+281^3+281^2+281+1)*281^13+281^6+281^5+281^4+281^3+281^2+281+1);
factor((284^5+284^4+284^3+284^2+284+1)*284^13+284^6+284^5+284^4+284^3+284^2+284+1);
factor((285^5+285^4+285^3+285^2+285+1)*285^13+285^6+285^5+285^4+285^3+285^2+285+1);
factor((286^5+286^4+286^3+286^2+286+1)*286^13+286^6+286^5+286^4+286^3+286^2+286+1);
factor((290^5+290^4+290^3+290^2+290+1)*290^13+290^6+290^5+290^4+290^3+290^2+290+1);
factor((291^5+291^4+291^3+291^2+291+1)*291^13+291^6+291^5+291^4+291^3+291^2+291+1);
factor((294^5+294^4+294^3+294^2+294+1)*294^13+294^6+294^5+294^4+294^3+294^2+294+1);
factor((295^5+295^4+295^3+295^2+295+1)*295^13+295^6+295^5+295^4+295^3+295^2+295+1);
factor((297^5+297^4+297^3+297^2+297+1)*297^13+297^6+297^5+297^4+297^3+297^2+297+1);
factor((299^5+299^4+299^3+299^2+299+1)*299^13+299^6+299^5+299^4+299^3+299^2+299+1);


(%i1) batch("a.bat");

read and interpret file: a.bat
                          2      3      4      5      6
(%i2) factor(1 + 200 + 200  + 200  + 200  + 200  + 200
                                                 2      3      4      5     13
                                 + (1 + 200 + 200  + 200  + 200  + 200 ) 200  )
(%o2)             569057 462978764047642327569997381746154793
                          2      3      4      5      6
(%i3) factor(1 + 201 + 201  + 201  + 201  + 201  + 201
                                                 2      3      4      5     13
                                 + (1 + 201 + 201  + 201  + 201  + 201 ) 201  )
(%o3)            4597459 180772297 346773062543144559729372631
                          2      3      4      5      6
(%i4) factor(1 + 202 + 202  + 202  + 202  + 202  + 202
                                                 2      3      4      5     13
                                 + (1 + 202 + 202  + 202  + 202  + 202 ) 202  )
(%o4)          3889 4253 5278349 2555844751 1412258066902022881
                          2      3      4      5      6
(%i5) factor(1 + 206 + 206  + 206  + 206  + 206  + 206
                                                 2      3      4      5     13
                                 + (1 + 206 + 206  + 206  + 206  + 206 ) 206  )
(%o5)           1631057 121333054699 2266079050897369289411681
                          2      3      4      5      6
(%i6) factor(1 + 207 + 207  + 207  + 207  + 207  + 207
                                                 2      3      4      5     13
                                 + (1 + 207 + 207  + 207  + 207  + 207 ) 207  )
(%o6)            27211 17981455434305343122994147666019122883
                          2      3      4      5      6
(%i7) factor(1 + 210 + 210  + 210  + 210  + 210  + 210
                                                 2      3      4      5     13
                                 + (1 + 210 + 210  + 210  + 210  + 210 ) 210  )
(%o7)            54456640922753 11640441827481989362161428687
                          2      3      4      5      6
(%i8) factor(1 + 212 + 212  + 212  + 212  + 212  + 212
                                                 2      3      4      5     13
                                 + (1 + 212 + 212  + 212  + 212  + 212 ) 212  )
(%o8)            204090693608086403483 3683627450656793356991
                          2      3      4      5      6
(%i9) factor(1 + 217 + 217  + 217  + 217  + 217  + 217
                                                 2      3      4      5     13
                                 + (1 + 217 + 217  + 217  + 217  + 217 ) 217  )
(%o9)           229 246534487 326231894935589 62092852406407619
                           2      3      4      5      6
(%i10) factor(1 + 219 + 219  + 219  + 219  + 219  + 219
                                                 2      3      4      5     13
                                 + (1 + 219 + 219  + 219  + 219  + 219 ) 219  )
(%o10)           303613 4442846669823077656706018012010880237
                           2      3      4      5      6
(%i11) factor(1 + 221 + 221  + 221  + 221  + 221  + 221
                                                 2      3      4      5     13
                                 + (1 + 221 + 221  + 221  + 221  + 221 ) 221  )
(%o11)          155001652921 12626516757541 811728193190115913
                           2      3      4      5      6
(%i12) factor(1 + 225 + 225  + 225  + 225  + 225  + 225
                                                 2      3      4      5     13
                                 + (1 + 225 + 225  + 225  + 225  + 225 ) 225  )
(%o12)          4987 6745221409 95059674013 686100802263459619
                           2      3      4      5      6
(%i13) factor(1 + 226 + 226  + 226  + 226  + 226  + 226
                                                 2      3      4      5     13
                                 + (1 + 226 + 226  + 226  + 226  + 226 ) 226  )
(%o13)           859 5333 518696214138333703298777210464779929
                           2      3      4      5      6
(%i14) factor(1 + 231 + 231  + 231  + 231  + 231  + 231
                                                 2      3      4      5     13
                                 + (1 + 231 + 231  + 231  + 231  + 231 ) 231  )
(%o14)         349 270821 2545163426697149 14644560538448515573
                           2      3      4      5      6
(%i15) factor(1 + 236 + 236  + 236  + 236  + 236  + 236
                                                 2      3      4      5     13
                                 + (1 + 236 + 236  + 236  + 236  + 236 ) 236  )
(%o15)           589154312511666806483 8790855333730759369391
                           2      3      4      5      6
(%i16) factor(1 + 237 + 237  + 237  + 237  + 237  + 237
                                                 2      3      4      5     13
                                 + (1 + 237 + 237  + 237  + 237  + 237 ) 237  )
(%o16)           1028091817658435213587 5435940175356583178119
                           2      3      4      5      6
(%i17) factor(1 + 241 + 241  + 241  + 241  + 241  + 241
                                                 2      3      4      5     13
                                 + (1 + 241 + 241  + 241  + 241  + 241 ) 241  )
(%o17)           7019563 1075975768863803864469333514791238471
                           2      3      4      5      6
(%i18) factor(1 + 242 + 242  + 242  + 242  + 242  + 242
                                                 2      3      4      5     13
                                 + (1 + 242 + 242  + 242  + 242  + 242 ) 242  )
(%o18)            8137198512851999342829964765693792913554543
素数ですね。

                           2      3      4      5      6
(%i19) factor(1 + 244 + 244  + 244  + 244  + 244  + 244
                                                 2      3      4      5     13
                                 + (1 + 244 + 244  + 244  + 244  + 244 ) 244  )
(%o19)           1111036119758083 8493217555398531304376115607
                           2      3      4      5      6
(%i20) factor(1 + 245 + 245  + 245  + 245  + 245  + 245
                                                 2      3      4      5     13
                                 + (1 + 245 + 245  + 245  + 245  + 245 ) 245  )
(%o20)           9185708976317 1105740189119876484480622134713
                           2      3      4      5      6
(%i21) factor(1 + 246 + 246  + 246  + 246  + 246  + 246
                                                 2      3      4      5     13
                                 + (1 + 246 + 246  + 246  + 246  + 246 ) 246  )
(%o21)         32647 51197 278558099 23474554993585902043725523
                           2      3      4      5      6
(%i22) factor(1 + 247 + 247  + 247  + 247  + 247  + 247
                                                 2      3      4      5     13
                                 + (1 + 247 + 247  + 247  + 247  + 247 ) 247  )
(%o22)           1201345031869 9786766982282973281760038538757
                           2      3      4      5      6
(%i23) factor(1 + 254 + 254  + 254  + 254  + 254  + 254
                                                 2      3      4      5     13
                                 + (1 + 254 + 254  + 254  + 254  + 254 ) 254  )
(%o23)          4327 7551331 594990034996286417253505628326783
                           2      3      4      5      6
(%i24) factor(1 + 255 + 255  + 255  + 255  + 255  + 255
                                                 2      3      4      5     13
                                 + (1 + 255 + 255  + 255  + 255  + 255 ) 255  )
(%o24)         25457 3450519437 3106984749013 76453767134947393
                           2      3      4      5      6
(%i25) factor(1 + 256 + 256  + 256  + 256  + 256  + 256
                                                 2      3      4      5     13
                                 + (1 + 256 + 256  + 256  + 256  + 256 ) 256  )
(%o25)          631 2350981403 15091784929462617747842326042181
                           2      3      4      5      6
(%i26) factor(1 + 265 + 265  + 265  + 265  + 265  + 265
                                                 2      3      4      5     13
                                 + (1 + 265 + 265  + 265  + 265  + 265 ) 265  )
(%o26)        281 1523 606301 1228630615613 130783163143337669039
                           2      3      4      5      6
(%i27) factor(1 + 275 + 275  + 275  + 275  + 275  + 275
                                                 2      3      4      5     13
                                 + (1 + 275 + 275  + 275  + 275  + 275 ) 275  )
(%o27)         83113897 170074906537 248833495553 23085957550553
                           2      3      4      5      6
(%i28) factor(1 + 277 + 277  + 277  + 277  + 277  + 277
                                                 2      3      4      5     13
                                 + (1 + 277 + 277  + 277  + 277  + 277 ) 277  )
(%o28)      73 367 13099 31379 172867 1476688141 32910879027153269
                           2      3      4      5      6
(%i29) factor(1 + 279 + 279  + 279  + 279  + 279  + 279
                                                 2      3      4      5     13
                                 + (1 + 279 + 279  + 279  + 279  + 279 ) 279  )
(%o29)         233 165293 2734164771107677047645481602141386509
                           2      3      4      5      6
(%i30) factor(1 + 281 + 281  + 281  + 281  + 281  + 281
                                                 2      3      4      5     13
                                 + (1 + 281 + 281  + 281  + 281  + 281 ) 281  )
(%o30)          967 380131 325763396670459263709025348073679529
                           2      3      4      5      6
(%i31) factor(1 + 284 + 284  + 284  + 284  + 284  + 284
                                                 2      3      4      5     13
                                 + (1 + 284 + 284  + 284  + 284  + 284 ) 284  )
(%o31)          8230294871 627302601637 28078217993015915529983
                           2      3      4      5      6
(%i32) factor(1 + 285 + 285  + 285  + 285  + 285  + 285
                                                 2      3      4      5     13
                                 + (1 + 285 + 285  + 285  + 285  + 285 ) 285  )
(%o32)          787 7338010541 26741202729600068700993116782883
                           2      3      4      5      6
(%i33) factor(1 + 286 + 286  + 286  + 286  + 286  + 286
                                                 2      3      4      5     13
                                 + (1 + 286 + 286  + 286  + 286  + 286 ) 286  )
(%o33)         211 7309 8538997374030443 12490000974596317826279
                           2      3      4      5      6
(%i34) factor(1 + 290 + 290  + 290  + 290  + 290  + 290
                                                 2      3      4      5     13
                                 + (1 + 290 + 290  + 290  + 290  + 290 ) 290  )
(%o34)          349 69645495261632263 8688517081799617963573693
                           2      3      4      5      6
(%i35) factor(1 + 291 + 291  + 291  + 291  + 291  + 291
                                                 2      3      4      5     13
                                 + (1 + 291 + 291  + 291  + 291  + 291 ) 291  )
(%o35)         829 2073074533633977227 130737250031257410297431
                           2      3      4      5      6
(%i36) factor(1 + 294 + 294  + 294  + 294  + 294  + 294
                                                 2      3      4      5     13
                                 + (1 + 294 + 294  + 294  + 294  + 294 ) 294  )
(%o36)         241 607 1847251057390820724554840785152187822813
                           2      3      4      5      6
(%i37) factor(1 + 295 + 295  + 295  + 295  + 295  + 295
                                                 2      3      4      5     13
                                 + (1 + 295 + 295  + 295  + 295  + 295 ) 295  )
(%o37)        5113 614569 17120507 125087801 42686736297527687899
                           2      3      4      5      6
(%i38) factor(1 + 297 + 297  + 297  + 297  + 297  + 297
                                                 2      3      4      5     13
                                 + (1 + 297 + 297  + 297  + 297  + 297 ) 297  )
(%o38)          4603 70475773491474332997994427958332075800711
                           2      3      4      5      6
(%i39) factor(1 + 299 + 299  + 299  + 299  + 299  + 299
                                                 2      3      4      5     13
                                 + (1 + 299 + 299  + 299  + 299  + 299 ) 299  )
(%o39)       30557 330611 135872741 252620923 1055617658327438441
(%o39)                               a.bat
(%i40)



b.txtに追加されるものは
229,217
859,226
349,231
631,256
281,265
73,277
367,277
233,279
967,281
787,285
211,286
349,290
829,291
241,294
607,294

$ gcc -Wall Autohajiku.c -o Autohajiku
$ ./Autohajiku
5n+3
43n+3
113n+3
19n+4
23n+4
131n+6
757n+6
11n+7
5n+8
29n+8
613n+8
787n+8
139n+9
17n+11
829n+11
5n+13
31n+13
13n+14
59n+14
61n+15
419n+17
5n+18
11n+18
157n+19
569n+19
23n+20
97n+20
73n+24
359n+24
59n+26
61n+30
41n+34
67n+34
229n+47
283n+49
353n+64
443n+64
73n+69
587n+69
197n+70
149n+71
509n+72
401n+74
59n+85
919n+85
937n+85
541n+86
61n+91
73n+97
127n+97
271n+97
569n+97
269n+107
269n+114
313n+114
137n+115
157n+115
307n+120
71n+122
653n+122
313n+151
331n+160
647n+162
263n+166
307n+166
659n+186
113n+189
229n+217
859n+226
349n+231
631n+256
281n+265
73n+277
367n+277
233n+279
967n+281
787n+285
211n+286
349n+290
829n+291
241n+294
607n+294
b.txt read!  82 個 
$ gcc -Wall hajiku-6.c -o hajiku-6
$ ./hajiku-6
300=17x17+11
300=13x22+14
!!! 301 !!!
302=67x4+34
302=113x1+189
303=5x60+3
303=23x13+4
303=5x59+8
303=5x58+13
303=5x57+18
304=43x7+3
304=11x27+7
304=11x26+18
!!! 305 !!!
!!! 306 !!!
!!! 307 !!!
308=5x61+3
308=19x16+4
308=5x60+8
308=5x59+13
308=5x58+18
309=59x5+14
!!! 310 !!!
311=97x3+20
!!! 312 !!!
313=5x62+3
313=5x61+8
313=5x60+13
313=13x23+14
313=5x59+18
!!! 314 !!!
315=11x28+7
315=11x27+18
316=73x4+24
316=73x3+97
317=17x18+11
318=5x63+3
318=5x62+8
318=5x61+13
318=5x60+18
319=23x13+20
320=61x5+15
321=59x5+26
321=41x7+34
321=59x4+85
!!! 322 !!!
323=5x64+3
323=5x63+8
323=5x62+13
323=31x10+13
323=5x61+18
!!! 324 !!!
!!! 325 !!!
326=23x14+4
326=11x29+7
326=13x24+14
326=11x28+18
327=19x17+4
327=29x11+8
328=5x65+3
328=5x64+8
328=5x63+13
328=5x62+18
!!! 329 !!!
!!! 330 !!!
!!! 331 !!!
332=283x1+49
333=5x66+3
333=5x65+8
333=5x64+13
333=5x63+18
333=157x2+19
334=17x19+11
335=61x5+30
335=61x4+91
335=71x3+122
!!! 336 !!!
337=11x30+7
337=11x29+18
338=5x67+3
338=5x66+8
338=5x65+13
338=5x64+18
339=13x25+14
!!! 340 !!!
!!! 341 !!!
342=113x3+3
342=23x14+20
343=5x68+3
343=5x67+8
343=5x66+13
343=5x65+18
!!! 344 !!!
!!! 345 !!!
346=19x18+4
347=43x8+3
348=5x69+3
348=11x31+7
348=5x68+8
348=5x67+13
348=5x66+18
348=11x30+18
349=23x15+4
350=73x1+277
351=17x20+11
351=127x2+97
352=13x26+14
353=5x70+3
353=5x69+8
353=5x68+13
353=5x67+18
354=31x11+13
!!! 355 !!!
356=29x12+8
!!! 357 !!!
358=5x71+3
358=5x70+8
358=5x69+13
358=5x68+18
359=11x32+7
359=11x31+18
!!! 360 !!!
361=73x4+69
362=41x8+34
363=5x72+3
363=5x71+8
363=5x70+13
363=5x69+18
!!! 364 !!!
365=19x19+4
365=13x27+14
365=23x15+20
!!! 366 !!!
!!! 367 !!!
368=5x73+3
368=5x72+8
368=17x21+11
368=5x71+13
368=59x6+14
368=5x70+18
368=271x1+97
369=67x5+34
369=149x2+71
370=11x33+7
370=11x32+18
!!! 371 !!!
372=23x16+4
373=5x74+3
373=5x73+8
373=5x72+13
373=5x71+18
!!! 374 !!!
!!! 375 !!!
376=269x1+107
!!! 377 !!!
378=5x75+3
378=5x74+8
378=5x73+13
378=13x28+14
378=5x72+18
!!! 379 !!!
380=59x6+26
380=59x5+85
381=11x34+7
381=61x6+15
381=11x33+18
!!! 382 !!!
383=5x76+3
383=5x75+8
383=5x74+13
383=5x73+18
383=359x1+24
383=269x1+114
384=19x20+4
385=29x13+8
385=17x22+11
385=31x12+13
!!! 386 !!!
!!! 387 !!!
388=5x77+3
388=5x76+8
388=5x75+13
388=5x74+18
388=23x16+20
389=73x5+24
389=73x4+97
389=137x2+115
390=43x9+3
391=13x29+14
392=11x35+7
392=11x34+18
393=5x78+3
393=5x77+8
393=5x76+13
393=5x75+18
!!! 394 !!!
395=23x17+4
396=61x6+30
396=61x5+91
!!! 397 !!!
398=5x79+3
398=5x78+8
398=5x77+13
398=5x76+18
399=131x3+6

生成されたa.batは、
factor((301^5+301^4+301^3+301^2+301+1)*301^13+301^6+301^5+301^4+301^3+301^2+301+1);
factor((305^5+305^4+305^3+305^2+305+1)*305^13+305^6+305^5+305^4+305^3+305^2+305+1);
factor((306^5+306^4+306^3+306^2+306+1)*306^13+306^6+306^5+306^4+306^3+306^2+306+1);
factor((307^5+307^4+307^3+307^2+307+1)*307^13+307^6+307^5+307^4+307^3+307^2+307+1);
factor((310^5+310^4+310^3+310^2+310+1)*310^13+310^6+310^5+310^4+310^3+310^2+310+1);
factor((312^5+312^4+312^3+312^2+312+1)*312^13+312^6+312^5+312^4+312^3+312^2+312+1);
factor((314^5+314^4+314^3+314^2+314+1)*314^13+314^6+314^5+314^4+314^3+314^2+314+1);
factor((322^5+322^4+322^3+322^2+322+1)*322^13+322^6+322^5+322^4+322^3+322^2+322+1);
factor((324^5+324^4+324^3+324^2+324+1)*324^13+324^6+324^5+324^4+324^3+324^2+324+1);
factor((325^5+325^4+325^3+325^2+325+1)*325^13+325^6+325^5+325^4+325^3+325^2+325+1);
factor((329^5+329^4+329^3+329^2+329+1)*329^13+329^6+329^5+329^4+329^3+329^2+329+1);
factor((330^5+330^4+330^3+330^2+330+1)*330^13+330^6+330^5+330^4+330^3+330^2+330+1);
factor((331^5+331^4+331^3+331^2+331+1)*331^13+331^6+331^5+331^4+331^3+331^2+331+1);
factor((336^5+336^4+336^3+336^2+336+1)*336^13+336^6+336^5+336^4+336^3+336^2+336+1);
factor((340^5+340^4+340^3+340^2+340+1)*340^13+340^6+340^5+340^4+340^3+340^2+340+1);
factor((341^5+341^4+341^3+341^2+341+1)*341^13+341^6+341^5+341^4+341^3+341^2+341+1);
factor((344^5+344^4+344^3+344^2+344+1)*344^13+344^6+344^5+344^4+344^3+344^2+344+1);
factor((345^5+345^4+345^3+345^2+345+1)*345^13+345^6+345^5+345^4+345^3+345^2+345+1);
factor((355^5+355^4+355^3+355^2+355+1)*355^13+355^6+355^5+355^4+355^3+355^2+355+1);
factor((357^5+357^4+357^3+357^2+357+1)*357^13+357^6+357^5+357^4+357^3+357^2+357+1);
factor((360^5+360^4+360^3+360^2+360+1)*360^13+360^6+360^5+360^4+360^3+360^2+360+1);
factor((364^5+364^4+364^3+364^2+364+1)*364^13+364^6+364^5+364^4+364^3+364^2+364+1);
factor((366^5+366^4+366^3+366^2+366+1)*366^13+366^6+366^5+366^4+366^3+366^2+366+1);
factor((367^5+367^4+367^3+367^2+367+1)*367^13+367^6+367^5+367^4+367^3+367^2+367+1);
factor((371^5+371^4+371^3+371^2+371+1)*371^13+371^6+371^5+371^4+371^3+371^2+371+1);
factor((374^5+374^4+374^3+374^2+374+1)*374^13+374^6+374^5+374^4+374^3+374^2+374+1);
factor((375^5+375^4+375^3+375^2+375+1)*375^13+375^6+375^5+375^4+375^3+375^2+375+1);
factor((377^5+377^4+377^3+377^2+377+1)*377^13+377^6+377^5+377^4+377^3+377^2+377+1);
factor((379^5+379^4+379^3+379^2+379+1)*379^13+379^6+379^5+379^4+379^3+379^2+379+1);
factor((382^5+382^4+382^3+382^2+382+1)*382^13+382^6+382^5+382^4+382^3+382^2+382+1);
factor((386^5+386^4+386^3+386^2+386+1)*386^13+386^6+386^5+386^4+386^3+386^2+386+1);
factor((387^5+387^4+387^3+387^2+387+1)*387^13+387^6+387^5+387^4+387^3+387^2+387+1);
factor((394^5+394^4+394^3+394^2+394+1)*394^13+394^6+394^5+394^4+394^3+394^2+394+1);
factor((397^5+397^4+397^3+397^2+397+1)*397^13+397^6+397^5+397^4+397^3+397^2+397+1);


(%i1) batch("a.bat");

read and interpret file: a.bat
                          2      3      4      5      6
(%i2) factor(1 + 301 + 301  + 301  + 301  + 301  + 301
                                                 2      3      4      5     13
                                 + (1 + 301 + 301  + 301  + 301  + 301 ) 301  )
(%o2)          7589 1446038457910483 37607785869332558387903099
                          2      3      4      5      6
(%i3) factor(1 + 305 + 305  + 305  + 305  + 305  + 305
                                                 2      3      4      5     13
                                 + (1 + 305 + 305  + 305  + 305  + 305 ) 305  )
(%o3)           874117 598761403103963303299521552562868661193
                          2      3      4      5      6
(%i4) factor(1 + 306 + 306  + 306  + 306  + 306  + 306
                                                 2      3      4      5     13
                                 + (1 + 306 + 306  + 306  + 306  + 306 ) 306  )
(%o4)           202641154877903007031 2739552401393609035653193
                          2      3      4      5      6
(%i5) factor(1 + 307 + 307  + 307  + 307  + 307  + 307
                                                 2      3      4      5     13
                                 + (1 + 307 + 307  + 307  + 307  + 307 ) 307  )
(%o5)           7557718379 79522289047 979553430630735001503101
                          2      3      4      5      6
(%i6) factor(1 + 310 + 310  + 310  + 310  + 310  + 310
                                                 2      3      4      5     13
                                 + (1 + 310 + 310  + 310  + 310  + 310 ) 310  )
(%o6)         43789 119827 17882073343 7474396247376702971694859
                          2      3      4      5      6
(%i7) factor(1 + 312 + 312  + 312  + 312  + 312  + 312
                                                 2      3      4      5     13
                                 + (1 + 312 + 312  + 312  + 312  + 312 ) 312  )
(%o7)         1583 7904483 4750809549461 13245089337293119197257
                          2      3      4      5      6
(%i8) factor(1 + 314 + 314  + 314  + 314  + 314  + 314
                                                 2      3      4      5     13
                                 + (1 + 314 + 314  + 314  + 314  + 314 ) 314  )
(%o8)        709 1548941 29128889 1707882661 16167985650410022211
                          2      3      4      5      6
(%i9) factor(1 + 322 + 322  + 322  + 322  + 322  + 322
                                                 2      3      4      5     13
                                 + (1 + 322 + 322  + 322  + 322  + 322 ) 322  )
(%o9)           1389173627113388129252069735425905254530933183
素数ですね。

                           2      3      4      5      6
(%i10) factor(1 + 324 + 324  + 324  + 324  + 324  + 324
                                                 2      3      4      5     13
                                 + (1 + 324 + 324  + 324  + 324  + 324 ) 324  )
(%o10)        1361 1734754207981 3832590863911 171618513824288351
                           2      3      4      5      6
(%i11) factor(1 + 325 + 325  + 325  + 325  + 325  + 325
                                                 2      3      4      5     13
                                 + (1 + 325 + 325  + 325  + 325  + 325 ) 325  )
(%o11)         171881 287932002604627 33168133963064356002431423
                           2      3      4      5      6
(%i12) factor(1 + 329 + 329  + 329  + 329  + 329  + 329
                                                 2      3      4      5     13
                                 + (1 + 329 + 329  + 329  + 329  + 329 ) 329  )
(%o12)         651641 57991004201243 54135130319463160720513567
                           2      3      4      5      6
(%i13) factor(1 + 330 + 330  + 330  + 330  + 330  + 330
                                                 2      3      4      5     13
                                 + (1 + 330 + 330  + 330  + 330  + 330 ) 330  )
(%o13)         354383 9980650399 610853738256626808785084536343
                           2      3      4      5      6
(%i14) factor(1 + 331 + 331  + 331  + 331  + 331  + 331
                                                 2      3      4      5     13
                                 + (1 + 331 + 331  + 331  + 331  + 331 ) 331  )
(%o14)          2281486702512877934731967359111626741277799833
素数ですね。

                           2      3      4      5      6
(%i15) factor(1 + 336 + 336  + 336  + 336  + 336  + 336
                                                 2      3      4      5     13
                                 + (1 + 336 + 336  + 336  + 336  + 336 ) 336  )
(%o15)         258527 218801794069 52825629142669718006084936531
                           2      3      4      5      6
(%i16) factor(1 + 340 + 340  + 340  + 340  + 340  + 340
                                                 2      3      4      5     13
                                 + (1 + 340 + 340  + 340  + 340  + 340 ) 340  )
(%o16)         40429717 5646030772669241 16197790716648263048153
                           2      3      4      5      6
(%i17) factor(1 + 341 + 341  + 341  + 341  + 341  + 341
                                                 2      3      4      5     13
                                 + (1 + 341 + 341  + 341  + 341  + 341 ) 341  )
(%o17)       76733 135977 1645419599 198070678777 1146330360079511
                           2      3      4      5      6
(%i18) factor(1 + 344 + 344  + 344  + 344  + 344  + 344
                                                 2      3      4      5     13
                                 + (1 + 344 + 344  + 344  + 344  + 344 ) 344  )
(%o18)         362306983 12596201060750222015963746298502703807
                           2      3      4      5      6
(%i19) factor(1 + 345 + 345  + 345  + 345  + 345  + 345
                                                 2      3      4      5     13
                                 + (1 + 345 + 345  + 345  + 345  + 345 ) 345  )
(%o19)         359 684874505167 19556850487567258326103495027157
                           2      3      4      5      6
(%i20) factor(1 + 355 + 355  + 355  + 355  + 355  + 355
                                                 2      3      4      5     13
                                 + (1 + 355 + 355  + 355  + 355  + 355 ) 355  )
(%o20)         449 6302842953839 2841532443092744548469582518471
                           2      3      4      5      6
(%i21) factor(1 + 357 + 357  + 357  + 357  + 357  + 357
                                                 2      3      4      5     13
                                 + (1 + 357 + 357  + 357  + 357  + 357 ) 357  )
(%o21)         203875884609766630109 43639548604727756457435257
                           2      3      4      5      6
(%i22) factor(1 + 360 + 360  + 360  + 360  + 360  + 360
                                                 2      3      4      5     13
                                 + (1 + 360 + 360  + 360  + 360  + 360 ) 360  )
(%o22)      57331 107773 152671 101609491 107910262925241203712427
                           2      3      4      5      6
(%i23) factor(1 + 364 + 364  + 364  + 364  + 364  + 364
                                                 2      3      4      5     13
                                 + (1 + 364 + 364  + 364  + 364  + 364 ) 364  )
(%o23)         15153371574618989 832741851276658962848770684049
                           2      3      4      5      6
(%i24) factor(1 + 366 + 366  + 366  + 366  + 366  + 366
                                                 2      3      4      5     13
                                 + (1 + 366 + 366  + 366  + 366  + 366 ) 366  )
(%o24)         8139322449017070391 1711037406415459741213416253
                           2      3      4      5      6
(%i25) factor(1 + 367 + 367  + 367  + 367  + 367  + 367
                                                 2      3      4      5     13
                                 + (1 + 367 + 367  + 367  + 367  + 367 ) 367  )
(%o25)        58967 150957581 17411920961 94376417404889386406819
                           2      3      4      5      6
(%i26) factor(1 + 371 + 371  + 371  + 371  + 371  + 371
                                                 2      3      4      5     13
                                 + (1 + 371 + 371  + 371  + 371  + 371 ) 371  )
(%o26)         56286047 8962327669 35243659087164023285305454651
                           2      3      4      5      6
(%i27) factor(1 + 374 + 374  + 374  + 374  + 374  + 374
                                                 2      3      4      5     13
                                 + (1 + 374 + 374  + 374  + 374  + 374 ) 374  )
(%o27)        26209 736259 39767113678219 26782213746051467927459
                           2      3      4      5      6
(%i28) factor(1 + 375 + 375  + 375  + 375  + 375  + 375
                                                 2      3      4      5     13
                                 + (1 + 375 + 375  + 375  + 375  + 375 ) 375  )
(%o28)     109 389 3547 4903 1482907 8825610068617 2234419190924519
                           2      3      4      5      6
(%i29) factor(1 + 377 + 377  + 377  + 377  + 377  + 377
                                                 2      3      4      5     13
                                 + (1 + 377 + 377  + 377  + 377  + 377 ) 377  )
(%o29)         5183210361013 7903426925393 579273327162051364697
                           2      3      4      5      6
(%i30) factor(1 + 379 + 379  + 379  + 379  + 379  + 379
                                                 2      3      4      5     13
                                 + (1 + 379 + 379  + 379  + 379  + 379 ) 379  )
(%o30)         5413 4821866281239260014316567299546693309906117
                           2      3      4      5      6
(%i31) factor(1 + 382 + 382  + 382  + 382  + 382  + 382
                                                 2      3      4      5     13
                                 + (1 + 382 + 382  + 382  + 382  + 382 ) 382  )
(%o31)        14699 76069943 300192463 89614493560124937182598793
                           2      3      4      5      6
(%i32) factor(1 + 386 + 386  + 386  + 386  + 386  + 386
                                                 2      3      4      5     13
                                 + (1 + 386 + 386  + 386  + 386  + 386 ) 386  )
(%o32)        6959 4294392966529 1214085968547113666708558929073
                           2      3      4      5      6
(%i33) factor(1 + 387 + 387  + 387  + 387  + 387  + 387
                                                 2      3      4      5     13
                                 + (1 + 387 + 387  + 387  + 387  + 387 ) 387  )
(%o33)         69739 545061258999040339988533738768144135014427
                           2      3      4      5      6
(%i34) factor(1 + 394 + 394  + 394  + 394  + 394  + 394
                                                 2      3      4      5     13
                                 + (1 + 394 + 394  + 394  + 394  + 394 ) 394  )
(%o34)         237590706718529609111 220905340328554618229507921
                           2      3      4      5      6
(%i35) factor(1 + 397 + 397  + 397  + 397  + 397  + 397
                                                 2      3      4      5     13
                                 + (1 + 397 + 397  + 397  + 397  + 397 ) 397  )
(%o35)          60162301610924949387547466394449926149127454533
素数ですね。

(%o35)                               a.bat
(%i36)





b.txtに追加されるものは
709,314
359,345
449,355
109,375
389,375

$ gcc -Wall Autohajiku.c -o Autohajiku
$ ./Autohajiku
5n+3
43n+3
113n+3
19n+4
23n+4
131n+6
757n+6
11n+7
5n+8
29n+8
613n+8
787n+8
139n+9
17n+11
829n+11
5n+13
31n+13
13n+14
59n+14
61n+15
419n+17
5n+18
11n+18
157n+19
569n+19
23n+20
97n+20
73n+24
359n+24
59n+26
61n+30
41n+34
67n+34
229n+47
283n+49
353n+64
443n+64
73n+69
587n+69
197n+70
149n+71
509n+72
401n+74
59n+85
919n+85
937n+85
541n+86
61n+91
73n+97
127n+97
271n+97
569n+97
269n+107
269n+114
313n+114
137n+115
157n+115
307n+120
71n+122
653n+122
313n+151
331n+160
647n+162
263n+166
307n+166
659n+186
113n+189
229n+217
859n+226
349n+231
631n+256
281n+265
73n+277
367n+277
233n+279
967n+281
787n+285
211n+286
349n+290
829n+291
241n+294
607n+294
709n+314
359n+345
449n+355
109n+375
389n+375
b.txt read!  87 個 
$ gcc -Wall hajiku-6.c -o hajiku-6
$ ./hajiku-6
!!! 400 !!!
!!! 401 !!!
402=17x23+11
403=5x80+3
403=19x21+4
403=11x36+7
403=5x79+8
403=5x78+13
403=5x77+18
403=11x35+18
403=41x9+34
404=13x30+14
!!! 405 !!!
406=71x4+122
!!! 407 !!!
408=5x81+3
408=5x80+8
408=5x79+13
408=5x78+18
408=97x4+20
!!! 409 !!!
!!! 410 !!!
411=23x17+20
!!! 412 !!!
413=5x82+3
413=5x81+8
413=5x80+13
413=5x79+18
414=11x37+7
414=29x14+8
414=11x36+18
415=113x2+189
416=31x13+13
417=13x31+14
417=353x1+64
418=5x83+3
418=23x18+4
418=5x82+8
418=5x81+13
418=5x80+18
419=17x24+11
!!! 420 !!!
!!! 421 !!!
422=19x22+4
423=5x84+3
423=5x83+8
423=5x82+13
423=5x81+18
423=73x2+277
!!! 424 !!!
425=11x38+7
425=11x37+18
426=139x3+9
427=59x7+14
427=313x1+114
427=307x1+120
428=5x85+3
428=5x84+8
428=5x83+13
428=5x82+18
429=157x2+115
429=263x1+166
430=13x32+14
!!! 431 !!!
!!! 432 !!!
433=5x86+3
433=43x10+3
433=5x85+8
433=5x84+13
433=5x83+18
434=23x18+20
434=73x5+69
!!! 435 !!!
436=11x39+7
436=17x25+11
436=419x1+17
436=11x38+18
436=67x6+34
!!! 437 !!!
438=5x87+3
438=5x86+8
438=5x85+13
438=5x84+18
439=59x7+26
439=59x6+85
!!! 440 !!!
441=19x23+4
441=23x19+4
442=61x7+15
443=5x88+3
443=5x87+8
443=29x15+8
443=5x86+13
443=13x33+14
443=5x85+18
444=41x10+34
!!! 445 !!!
446=229x1+217
447=11x40+7
447=31x14+13
447=11x39+18
448=5x89+3
448=5x88+8
448=5x87+13
448=5x86+18
!!! 449 !!!
!!! 450 !!!
!!! 451 !!!
!!! 452 !!!
453=5x90+3
453=5x89+8
453=17x26+11
453=5x88+13
453=5x87+18
!!! 454 !!!
455=113x4+3
456=13x34+14
457=23x19+20
457=61x7+30
457=61x6+91
458=5x91+3
458=11x41+7
458=5x90+8
458=5x89+13
458=5x88+18
458=11x40+18
!!! 459 !!!
460=19x24+4
!!! 461 !!!
462=73x6+24
462=73x5+97
463=5x92+3
463=5x91+8
463=5x90+13
463=5x89+18
464=23x20+4
464=197x2+70
464=313x1+151
!!! 465 !!!
!!! 466 !!!
!!! 467 !!!
468=5x93+3
468=5x92+8
468=5x91+13
468=5x90+18
469=11x42+7
469=13x35+14
469=11x41+18
470=17x27+11
!!! 471 !!!
472=29x16+8
473=5x94+3
473=5x93+8
473=5x92+13
473=5x91+18
473=307x1+166
!!! 474 !!!
475=401x1+74
476=43x11+3
477=71x5+122
478=5x95+3
478=5x94+8
478=5x93+13
478=31x15+13
478=5x92+18
478=127x3+97
479=19x25+4
480=11x43+7
480=11x42+18
480=23x20+20
!!! 481 !!!
482=13x36+14
483=5x96+3
483=5x95+8
483=5x94+13
483=5x93+18
484=109x1+375
485=41x11+34
486=59x8+14
487=23x21+4
487=17x28+11
488=5x97+3
488=5x96+8
488=5x95+13
488=5x94+18
!!! 489 !!!
490=157x3+19
491=11x44+7
491=11x43+18
491=331x1+160
!!! 492 !!!
493=5x98+3
493=5x97+8
493=5x96+13
493=5x95+18
!!! 494 !!!
495=13x37+14
496=73x3+277
497=211x1+286
498=5x99+3
498=19x26+4
498=5x98+8
498=5x97+13
498=5x96+18
498=59x8+26
498=59x7+85
!!! 499 !!!

生成されたa.batは、
factor((400^5+400^4+400^3+400^2+400+1)*400^13+400^6+400^5+400^4+400^3+400^2+400+1);
factor((401^5+401^4+401^3+401^2+401+1)*401^13+401^6+401^5+401^4+401^3+401^2+401+1);
factor((405^5+405^4+405^3+405^2+405+1)*405^13+405^6+405^5+405^4+405^3+405^2+405+1);
factor((407^5+407^4+407^3+407^2+407+1)*407^13+407^6+407^5+407^4+407^3+407^2+407+1);
factor((409^5+409^4+409^3+409^2+409+1)*409^13+409^6+409^5+409^4+409^3+409^2+409+1);
factor((410^5+410^4+410^3+410^2+410+1)*410^13+410^6+410^5+410^4+410^3+410^2+410+1);
factor((412^5+412^4+412^3+412^2+412+1)*412^13+412^6+412^5+412^4+412^3+412^2+412+1);
factor((420^5+420^4+420^3+420^2+420+1)*420^13+420^6+420^5+420^4+420^3+420^2+420+1);
factor((421^5+421^4+421^3+421^2+421+1)*421^13+421^6+421^5+421^4+421^3+421^2+421+1);
factor((424^5+424^4+424^3+424^2+424+1)*424^13+424^6+424^5+424^4+424^3+424^2+424+1);
factor((431^5+431^4+431^3+431^2+431+1)*431^13+431^6+431^5+431^4+431^3+431^2+431+1);
factor((432^5+432^4+432^3+432^2+432+1)*432^13+432^6+432^5+432^4+432^3+432^2+432+1);
factor((435^5+435^4+435^3+435^2+435+1)*435^13+435^6+435^5+435^4+435^3+435^2+435+1);
factor((437^5+437^4+437^3+437^2+437+1)*437^13+437^6+437^5+437^4+437^3+437^2+437+1);
factor((440^5+440^4+440^3+440^2+440+1)*440^13+440^6+440^5+440^4+440^3+440^2+440+1);
factor((445^5+445^4+445^3+445^2+445+1)*445^13+445^6+445^5+445^4+445^3+445^2+445+1);
factor((449^5+449^4+449^3+449^2+449+1)*449^13+449^6+449^5+449^4+449^3+449^2+449+1);
factor((450^5+450^4+450^3+450^2+450+1)*450^13+450^6+450^5+450^4+450^3+450^2+450+1);
factor((451^5+451^4+451^3+451^2+451+1)*451^13+451^6+451^5+451^4+451^3+451^2+451+1);
factor((452^5+452^4+452^3+452^2+452+1)*452^13+452^6+452^5+452^4+452^3+452^2+452+1);
factor((454^5+454^4+454^3+454^2+454+1)*454^13+454^6+454^5+454^4+454^3+454^2+454+1);
factor((459^5+459^4+459^3+459^2+459+1)*459^13+459^6+459^5+459^4+459^3+459^2+459+1);
factor((461^5+461^4+461^3+461^2+461+1)*461^13+461^6+461^5+461^4+461^3+461^2+461+1);
factor((465^5+465^4+465^3+465^2+465+1)*465^13+465^6+465^5+465^4+465^3+465^2+465+1);
factor((466^5+466^4+466^3+466^2+466+1)*466^13+466^6+466^5+466^4+466^3+466^2+466+1);
factor((467^5+467^4+467^3+467^2+467+1)*467^13+467^6+467^5+467^4+467^3+467^2+467+1);
factor((471^5+471^4+471^3+471^2+471+1)*471^13+471^6+471^5+471^4+471^3+471^2+471+1);
factor((474^5+474^4+474^3+474^2+474+1)*474^13+474^6+474^5+474^4+474^3+474^2+474+1);
factor((481^5+481^4+481^3+481^2+481+1)*481^13+481^6+481^5+481^4+481^3+481^2+481+1);
factor((489^5+489^4+489^3+489^2+489+1)*489^13+489^6+489^5+489^4+489^3+489^2+489+1);
factor((492^5+492^4+492^3+492^2+492+1)*492^13+492^6+492^5+492^4+492^3+492^2+492+1);
factor((494^5+494^4+494^3+494^2+494+1)*494^13+494^6+494^5+494^4+494^3+494^2+494+1);
factor((499^5+499^4+499^3+499^2+499+1)*499^13+499^6+499^5+499^4+499^3+499^2+499+1);

(%i1) batch("a.bat");

read and interpret file: a.bat
                          2      3      4      5      6
(%i2) factor(1 + 400 + 400  + 400  + 400  + 400  + 400
                                                 2      3      4      5     13
                                 + (1 + 400 + 400  + 400  + 400  + 400 ) 400  )
(%o2)         30013 57899 4695180461 8443726919124473167987908043
                          2      3      4      5      6
(%i3) factor(1 + 401 + 401  + 401  + 401  + 401  + 401
                                                 2      3      4      5     13
                                 + (1 + 401 + 401  + 401  + 401  + 401 ) 401  )
(%o3)          120079 600089497419189209507955511257032495206147
                          2      3      4      5      6
(%i4) factor(1 + 405 + 405  + 405  + 405  + 405  + 405
                                                 2      3      4      5     13
                                 + (1 + 405 + 405  + 405  + 405  + 405 ) 405  )
(%o4)          107 805156490652116963586858904592085027018945983
                          2      3      4      5      6
(%i5) factor(1 + 407 + 407  + 407  + 407  + 407  + 407
                                                 2      3      4      5     13
                                 + (1 + 407 + 407  + 407  + 407  + 407 ) 407  )
(%o5)           94138601382060811972827428123539077583679100913
素数ですね。

                          2      3      4      5      6
(%i6) factor(1 + 409 + 409  + 409  + 409  + 409  + 409
                                                 2      3      4      5     13
                                 + (1 + 409 + 409  + 409  + 409  + 409 ) 409  )
(%o6)         2116397 5002438933603 9711890027655237420060965051
                          2      3      4      5      6
(%i7) factor(1 + 410 + 410  + 410  + 410  + 410  + 410
                                                 2      3      4      5     13
                                 + (1 + 410 + 410  + 410  + 410  + 410 ) 410  )
(%o7)          202055127315948682736437 531740934123827748544603
                          2      3      4      5      6
(%i8) factor(1 + 412 + 412  + 412  + 412  + 412  + 412
                                                 2      3      4      5     13
                                 + (1 + 412 + 412  + 412  + 412  + 412 ) 412  )
(%o8)        1984259 23145071 145969607192987 17493872914899533171
                          2      3      4      5      6
(%i9) factor(1 + 420 + 420  + 420  + 420  + 420  + 420
                                                 2      3      4      5     13
                                 + (1 + 420 + 420  + 420  + 420  + 420 ) 420  )
(%o9)         2269890889456523 3222807889105451 22661209966977277
                           2      3      4      5      6
(%i10) factor(1 + 421 + 421  + 421  + 421  + 421  + 421
                                                 2      3      4      5     13
                                 + (1 + 421 + 421  + 421  + 421  + 421 ) 421  )
(%o10)        1117 154902118495955134526111853361240993761931129
                           2      3      4      5      6
(%i11) factor(1 + 424 + 424  + 424  + 424  + 424  + 424
                                                 2      3      4      5     13
                                 + (1 + 424 + 424  + 424  + 424  + 424 ) 424  )
(%o11)        15891259849 12372360868653513137814818811482396449
                           2      3      4      5      6
(%i12) factor(1 + 431 + 431  + 431  + 431  + 431  + 431
                                                 2      3      4      5     13
                                 + (1 + 431 + 431  + 431  + 431  + 431 ) 431  )
(%o12)         3541 74554480903591511474294427058804317358645213
                           2      3      4      5      6
(%i13) factor(1 + 432 + 432  + 432  + 432  + 432  + 432
                                                 2      3      4      5     13
                                 + (1 + 432 + 432  + 432  + 432  + 432 ) 432  )
(%o13)        18459797 14910321176207669015321531893693979706029
                           2      3      4      5      6
(%i14) factor(1 + 435 + 435  + 435  + 435  + 435  + 435
                                                 2      3      4      5     13
                                 + (1 + 435 + 435  + 435  + 435  + 435 ) 435  )
(%o14)        1039 9973 30086023197520902003154878100417172591563
                           2      3      4      5      6
(%i15) factor(1 + 437 + 437  + 437  + 437  + 437  + 437
                                                 2      3      4      5     13
                                 + (1 + 437 + 437  + 437  + 437  + 437 ) 437  )
(%o15)       954409 1413283 37487972627647 6695842012732299744817
                           2      3      4      5      6
(%i16) factor(1 + 440 + 440  + 440  + 440  + 440  + 440
                                                 2      3      4      5     13
                                 + (1 + 440 + 440  + 440  + 440  + 440 ) 440  )
(%o16)        2803 136619671024934808466144589359516486922242147
                           2      3      4      5      6
(%i17) factor(1 + 445 + 445  + 445  + 445  + 445  + 445
                                                 2      3      4      5     13
                                 + (1 + 445 + 445  + 445  + 445  + 445 ) 445  )
(%o17)        229 47980133 42713022914601423097042708567463403053
                           2      3      4      5      6
(%i18) factor(1 + 449 + 449  + 449  + 449  + 449  + 449
                                                 2      3      4      5     13
                                 + (1 + 449 + 449  + 449  + 449  + 449 ) 449  )
(%o18)       1031 27536407841599 19419431613735604816679136250229
                           2      3      4      5      6
(%i19) factor(1 + 450 + 450  + 450  + 450  + 450  + 450
                                                 2      3      4      5     13
                                 + (1 + 450 + 450  + 450  + 450  + 450 ) 450  )
(%o19)     15383 19793 139513909 113429582053 119095380666963434977
                           2      3      4      5      6
(%i20) factor(1 + 451 + 451  + 451  + 451  + 451  + 451
                                                 2      3      4      5     13
                                 + (1 + 451 + 451  + 451  + 451  + 451 ) 451  )
(%o20)        314389759 1899649121427109635059652382394422302007
                           2      3      4      5      6
(%i21) factor(1 + 452 + 452  + 452  + 452  + 452  + 452
                                                 2      3      4      5     13
                                 + (1 + 452 + 452  + 452  + 452  + 452 ) 452  )
(%o21)        3769 7853 20998679481226556438444074692286462510289
                           2      3      4      5      6
(%i22) factor(1 + 454 + 454  + 454  + 454  + 454  + 454
                                                 2      3      4      5     13
                                 + (1 + 454 + 454  + 454  + 454  + 454 ) 454  )
(%o22)     659 757 1021 14957 24753187 3568456028873172459430364503
                           2      3      4      5      6
(%i23) factor(1 + 459 + 459  + 459  + 459  + 459  + 459
                                                 2      3      4      5     13
                                 + (1 + 459 + 459  + 459  + 459  + 459 ) 459  )
(%o23)       1129687814747 11179485034129 64892619268522587945707
                           2      3      4      5      6
(%i24) factor(1 + 461 + 461  + 461  + 461  + 461  + 461
                                                 2      3      4      5     13
                                 + (1 + 461 + 461  + 461  + 461  + 461 ) 461  )
(%o24)        3387134507 261653957258716797634353844004100361679
                           2      3      4      5      6
(%i25) factor(1 + 465 + 465  + 465  + 465  + 465  + 465
                                                 2      3      4      5     13
                                 + (1 + 465 + 465  + 465  + 465  + 465 ) 465  )
(%o25)       5861 150379 391782029 2998366378683226672335046073191
                           2      3      4      5      6
(%i26) factor(1 + 466 + 466  + 466  + 466  + 466  + 466
                                                 2      3      4      5     13
                                 + (1 + 466 + 466  + 466  + 466  + 466 ) 466  )
(%o26)        643937112409 1671229174410309485798516305503049447
                           2      3      4      5      6
(%i27) factor(1 + 467 + 467  + 467  + 467  + 467  + 467
                                                 2      3      4      5     13
                                 + (1 + 467 + 467  + 467  + 467  + 467 ) 467  )
(%o27)        10378213358063989 107773557634833662510399980176037
                           2      3      4      5      6
(%i28) factor(1 + 471 + 471  + 471  + 471  + 471  + 471
                                                 2      3      4      5     13
                                 + (1 + 471 + 471  + 471  + 471  + 471 ) 471  )
(%o28)        15439 84465665911280031979442880647433996654471487
                           2      3      4      5      6
(%i29) factor(1 + 474 + 474  + 474  + 474  + 474  + 474
                                                 2      3      4      5     13
                                 + (1 + 474 + 474  + 474  + 474  + 474 ) 474  )
(%o29)       2708483 4684005657189400909 115234846087293859530833
                           2      3      4      5      6
(%i30) factor(1 + 481 + 481  + 481  + 481  + 481  + 481
                                                 2      3      4      5     13
                                 + (1 + 481 + 481  + 481  + 481  + 481 ) 481  )
(%o30)        1429 1331934857905058202743861210233507459373689177
                           2      3      4      5      6
(%i31) factor(1 + 489 + 489  + 489  + 489  + 489  + 489
                                                 2      3      4      5     13
                                 + (1 + 489 + 489  + 489  + 489  + 489 ) 489  )
(%o31)       4621 3112778330898593589773 178059167398560624279317
                           2      3      4      5      6
(%i32) factor(1 + 492 + 492  + 492  + 492  + 492  + 492
                                                 2      3      4      5     13
                                 + (1 + 492 + 492  + 492  + 492  + 492 ) 492  )
(%o32)       20857 76809449 52532828185891597 33974900013737428433
                           2      3      4      5      6
(%i33) factor(1 + 494 + 494  + 494  + 494  + 494  + 494
                                                 2      3      4      5     13
                                 + (1 + 494 + 494  + 494  + 494  + 494 ) 494  )
(%o33)       58192050127 4368794851815701 12098730438829128605153
                           2      3      4      5      6
(%i34) factor(1 + 499 + 499  + 499  + 499  + 499  + 499
                                                 2      3      4      5     13
                                 + (1 + 499 + 499  + 499  + 499  + 499 ) 499  )
(%o34)        35620609 103509374415883141386207371821240687749289
(%o34)                               a.bat
(%i35)

b.txtに追加されるものは
107,405
229,445
659,454
757,454

$ gcc -Wall Autohajiku.c -o Autohajiku
$ ./Autohajiku
5n+3
43n+3
113n+3
19n+4
23n+4
131n+6
757n+6
11n+7
5n+8
29n+8
613n+8
787n+8
139n+9
17n+11
829n+11
5n+13
31n+13
13n+14
59n+14
61n+15
419n+17
5n+18
11n+18
157n+19
569n+19
23n+20
97n+20
73n+24
359n+24
59n+26
61n+30
41n+34
67n+34
229n+47
283n+49
353n+64
443n+64
73n+69
587n+69
197n+70
149n+71
509n+72
401n+74
59n+85
919n+85
937n+85
541n+86
61n+91
73n+97
127n+97
271n+97
569n+97
269n+107
269n+114
313n+114
137n+115
157n+115
307n+120
71n+122
653n+122
313n+151
331n+160
647n+162
263n+166
307n+166
659n+186
113n+189
229n+217
859n+226
349n+231
631n+256
281n+265
73n+277
367n+277
233n+279
967n+281
787n+285
211n+286
349n+290
829n+291
241n+294
607n+294
709n+314
359n+345
449n+355
109n+375
389n+375
107n+405
229n+445
659n+454
757n+454
b.txt read!  91 個 
$ gcc -Wall hajiku-6.c -o hajiku-6
$ ./hajiku-6
!!! 500 !!!
501=29x17+8
502=11x45+7
502=11x44+18
503=5x100+3
503=5x99+8
503=5x98+13
503=61x8+15
503=5x97+18
503=23x21+20
503=67x7+34
504=17x29+11
505=97x5+20
505=229x2+47
!!! 506 !!!
507=443x1+64
507=73x6+69
508=5x101+3
508=5x100+8
508=5x99+13
508=13x38+14
508=5x98+18
509=31x16+13
510=23x22+4
!!! 511 !!!
512=233x1+279
512=107x1+405
513=5x102+3
513=11x46+7
513=5x101+8
513=5x100+13
513=5x99+18
513=11x45+18
!!! 514 !!!
!!! 515 !!!
!!! 516 !!!
517=19x27+4
518=5x103+3
518=5x102+8
518=5x101+13
518=5x100+18
518=61x8+30
518=149x3+71
518=61x7+91
519=43x12+3
!!! 520 !!!
521=17x30+11
521=13x39+14
!!! 522 !!!
523=5x104+3
523=5x103+8
523=5x102+13
523=5x101+18
524=11x47+7
524=11x46+18
!!! 525 !!!
526=23x22+20
526=41x12+34
526=137x3+115
!!! 527 !!!
528=5x105+3
528=5x104+8
528=5x103+13
528=5x102+18
528=113x3+189
!!! 529 !!!
530=131x4+6
530=29x18+8
!!! 531 !!!
!!! 532 !!!
533=5x106+3
533=23x23+4
533=5x105+8
533=5x104+13
533=5x103+18
534=13x40+14
535=11x48+7
535=11x47+18
535=73x7+24
535=73x6+97
535=241x1+294
536=19x28+4
!!! 537 !!!
538=5x107+3
538=5x106+8
538=17x31+11
538=5x105+13
538=5x104+18
!!! 539 !!!
540=31x17+13
!!! 541 !!!
!!! 542 !!!
543=5x108+3
543=5x107+8
543=5x106+13
543=5x105+18
!!! 544 !!!
545=59x9+14
546=11x49+7
546=11x48+18
546=281x1+265
547=13x41+14
548=5x109+3
548=5x108+8
548=5x107+13
548=5x106+18
548=71x6+122
549=23x23+20
!!! 550 !!!
!!! 551 !!!
!!! 552 !!!
553=5x110+3
553=5x109+8
553=5x108+13
553=5x107+18
!!! 554 !!!
555=19x29+4
555=17x32+11
556=23x24+4
557=11x50+7
557=11x49+18
557=59x9+26
557=59x8+85
558=5x111+3
558=5x110+8
558=5x109+13
558=5x108+18
559=29x19+8
560=13x42+14
!!! 561 !!!
562=43x13+3
563=5x112+3
563=5x111+8
563=5x110+13
563=5x109+18
564=61x9+15
565=139x4+9
!!! 566 !!!
567=41x13+34
568=5x113+3
568=113x5+3
568=11x51+7
568=5x112+8
568=5x111+13
568=5x110+18
568=11x50+18
569=73x4+277
570=67x8+34
571=31x18+13
572=17x33+11
572=23x24+20
573=5x114+3
573=5x113+8
573=5x112+13
573=13x43+14
573=5x111+18
574=19x30+4
!!! 575 !!!
!!! 576 !!!
!!! 577 !!!
578=5x115+3
578=5x114+8
578=5x113+13
578=5x112+18
579=23x25+4
579=11x52+7
579=11x51+18
579=61x9+30
579=61x8+91
580=73x7+69
580=349x1+231
581=509x1+72
!!! 582 !!!
583=5x116+3
583=5x115+8
583=5x114+13
583=5x113+18
!!! 584 !!!
!!! 585 !!!
586=13x44+14
586=157x3+115
!!! 587 !!!
588=5x117+3
588=5x116+8
588=29x20+8
588=5x115+13
588=5x114+18
588=569x1+19
589=17x34+11
590=11x53+7
590=11x52+18
!!! 591 !!!
!!! 592 !!!
593=5x118+3
593=19x31+4
593=5x117+8
593=5x116+13
593=5x115+18
593=109x2+375
!!! 594 !!!
595=23x25+20
!!! 596 !!!
!!! 597 !!!
598=5x119+3
598=5x118+8
598=5x117+13
598=5x116+18
599=13x45+14

生成されたa.batは、
factor((500^5+500^4+500^3+500^2+500+1)*500^13+500^6+500^5+500^4+500^3+500^2+500+1);
factor((506^5+506^4+506^3+506^2+506+1)*506^13+506^6+506^5+506^4+506^3+506^2+506+1);
factor((511^5+511^4+511^3+511^2+511+1)*511^13+511^6+511^5+511^4+511^3+511^2+511+1);
factor((514^5+514^4+514^3+514^2+514+1)*514^13+514^6+514^5+514^4+514^3+514^2+514+1);
factor((515^5+515^4+515^3+515^2+515+1)*515^13+515^6+515^5+515^4+515^3+515^2+515+1);
factor((516^5+516^4+516^3+516^2+516+1)*516^13+516^6+516^5+516^4+516^3+516^2+516+1);
factor((520^5+520^4+520^3+520^2+520+1)*520^13+520^6+520^5+520^4+520^3+520^2+520+1);
factor((522^5+522^4+522^3+522^2+522+1)*522^13+522^6+522^5+522^4+522^3+522^2+522+1);
factor((525^5+525^4+525^3+525^2+525+1)*525^13+525^6+525^5+525^4+525^3+525^2+525+1);
factor((527^5+527^4+527^3+527^2+527+1)*527^13+527^6+527^5+527^4+527^3+527^2+527+1);
factor((529^5+529^4+529^3+529^2+529+1)*529^13+529^6+529^5+529^4+529^3+529^2+529+1);
factor((531^5+531^4+531^3+531^2+531+1)*531^13+531^6+531^5+531^4+531^3+531^2+531+1);
factor((532^5+532^4+532^3+532^2+532+1)*532^13+532^6+532^5+532^4+532^3+532^2+532+1);
factor((537^5+537^4+537^3+537^2+537+1)*537^13+537^6+537^5+537^4+537^3+537^2+537+1);
factor((539^5+539^4+539^3+539^2+539+1)*539^13+539^6+539^5+539^4+539^3+539^2+539+1);
factor((541^5+541^4+541^3+541^2+541+1)*541^13+541^6+541^5+541^4+541^3+541^2+541+1);
factor((542^5+542^4+542^3+542^2+542+1)*542^13+542^6+542^5+542^4+542^3+542^2+542+1);
factor((544^5+544^4+544^3+544^2+544+1)*544^13+544^6+544^5+544^4+544^3+544^2+544+1);
factor((550^5+550^4+550^3+550^2+550+1)*550^13+550^6+550^5+550^4+550^3+550^2+550+1);
factor((551^5+551^4+551^3+551^2+551+1)*551^13+551^6+551^5+551^4+551^3+551^2+551+1);
factor((552^5+552^4+552^3+552^2+552+1)*552^13+552^6+552^5+552^4+552^3+552^2+552+1);
factor((554^5+554^4+554^3+554^2+554+1)*554^13+554^6+554^5+554^4+554^3+554^2+554+1);
factor((561^5+561^4+561^3+561^2+561+1)*561^13+561^6+561^5+561^4+561^3+561^2+561+1);
factor((566^5+566^4+566^3+566^2+566+1)*566^13+566^6+566^5+566^4+566^3+566^2+566+1);
factor((575^5+575^4+575^3+575^2+575+1)*575^13+575^6+575^5+575^4+575^3+575^2+575+1);
factor((576^5+576^4+576^3+576^2+576+1)*576^13+576^6+576^5+576^4+576^3+576^2+576+1);
factor((577^5+577^4+577^3+577^2+577+1)*577^13+577^6+577^5+577^4+577^3+577^2+577+1);
factor((582^5+582^4+582^3+582^2+582+1)*582^13+582^6+582^5+582^4+582^3+582^2+582+1);
factor((584^5+584^4+584^3+584^2+584+1)*584^13+584^6+584^5+584^4+584^3+584^2+584+1);
factor((585^5+585^4+585^3+585^2+585+1)*585^13+585^6+585^5+585^4+585^3+585^2+585+1);
factor((587^5+587^4+587^3+587^2+587+1)*587^13+587^6+587^5+587^4+587^3+587^2+587+1);
factor((591^5+591^4+591^3+591^2+591+1)*591^13+591^6+591^5+591^4+591^3+591^2+591+1);
factor((592^5+592^4+592^3+592^2+592+1)*592^13+592^6+592^5+592^4+592^3+592^2+592+1);
factor((594^5+594^4+594^3+594^2+594+1)*594^13+594^6+594^5+594^4+594^3+594^2+594+1);
factor((596^5+596^4+596^3+596^2+596+1)*596^13+596^6+596^5+596^4+596^3+596^2+596+1);
factor((597^5+597^4+597^3+597^2+597+1)*597^13+597^6+597^5+597^4+597^3+597^2+597+1);

(%i1) batch("a.bat");

read and interpret file:a.bat
                          2      3      4      5      6
(%i2) factor(1 + 500 + 500  + 500  + 500  + 500  + 500
                                                 2      3      4      5     13
                                 + (1 + 500 + 500  + 500  + 500  + 500 ) 500  )
(%o2)        317 362863 33229789313068671610587169575197025209831
                          2      3      4      5      6
(%i3) factor(1 + 506 + 506  + 506  + 506  + 506  + 506
                                                 2      3      4      5     13
                                 + (1 + 506 + 506  + 506  + 506  + 506 ) 506  )
(%o3)         25679 184497435785208804198596396471246901386503577
                          2      3      4      5      6
(%i4) factor(1 + 511 + 511  + 511  + 511  + 511  + 511
                                                 2      3      4      5     13
                                 + (1 + 511 + 511  + 511  + 511  + 511 ) 511  )
(%o4)        71985707 77696560531 283971079027 3560448813174663467
                          2      3      4      5      6
(%i5) factor(1 + 514 + 514  + 514  + 514  + 514  + 514
                                                 2      3      4      5     13
                                 + (1 + 514 + 514  + 514  + 514  + 514 ) 514  )
(%o5)        19997 7551394051 893198522025629 46584551645770529197
                          2      3      4      5      6
(%i6) factor(1 + 515 + 515  + 515  + 515  + 515  + 515
                                                 2      3      4      5     13
                                 + (1 + 515 + 515  + 515  + 515  + 515 ) 515  )
(%o6)         54401 119609961284223756029173518858714495848656841
                          2      3      4      5      6
(%i7) factor(1 + 516 + 516  + 516  + 516  + 516  + 516
                                                 2      3      4      5     13
                                 + (1 + 516 + 516  + 516  + 516  + 516 ) 516  )
(%o7)       541 599429 45249569 6743276123 74374270501 915575109011
                          2      3      4      5      6
(%i8) factor(1 + 520 + 520  + 520  + 520  + 520  + 520
                                                 2      3      4      5     13
                                 + (1 + 520 + 520  + 520  + 520  + 520 ) 520  )
(%o8)         13585636069 569923014162020395182450347911695714709
                          2      3      4      5      6
(%i9) factor(1 + 522 + 522  + 522  + 522  + 522  + 522
                                                 2      3      4      5     13
                                 + (1 + 522 + 522  + 522  + 522  + 522 ) 522  )
(%o9)        84827 181874979159950766077 537767768860709529441577
                           2      3      4      5      6
(%i10) factor(1 + 525 + 525  + 525  + 525  + 525  + 525
                                                 2      3      4      5     13
                                 + (1 + 525 + 525  + 525  + 525  + 525 ) 525  )
(%o10)      1069 4957 1658387993 1046677067308885046991912876425429
                           2      3      4      5      6
(%i11) factor(1 + 527 + 527  + 527  + 527  + 527  + 527
                                                 2      3      4      5     13
                                 + (1 + 527 + 527  + 527  + 527  + 527 ) 527  )
(%o11)       10859 727914462291423665779 1246079535684214202779793
                           2      3      4      5      6
(%i12) factor(1 + 529 + 529  + 529  + 529  + 529  + 529
                                                 2      3      4      5     13
                                 + (1 + 529 + 529  + 529  + 529  + 529 ) 529  )
(%o12)        3894959920031 2707203189882841173239872172469280691
                           2      3      4      5      6
(%i13) factor(1 + 531 + 531  + 531  + 531  + 531  + 531
                                                 2      3      4      5     13
                                 + (1 + 531 + 531  + 531  + 531  + 531 ) 531  )
(%o13)        328931 34309566088370594340156907657321159129576643
                           2      3      4      5      6
(%i14) factor(1 + 532 + 532  + 532  + 532  + 532  + 532
                                                 2      3      4      5     13
                                 + (1 + 532 + 532  + 532  + 532  + 532 ) 532  )
(%o14)       17903 58169 11210089580376615472293883376665601361859
                           2      3      4      5      6
(%i15) factor(1 + 537 + 537  + 537  + 537  + 537  + 537
                                                 2      3      4      5     13
                                 + (1 + 537 + 537  + 537  + 537  + 537 ) 537  )
(%o15)      607 1753181 2618191584941551097 4958265400509363475447
                           2      3      4      5      6
(%i16) factor(1 + 539 + 539  + 539  + 539  + 539  + 539
                                                 2      3      4      5     13
                                 + (1 + 539 + 539  + 539  + 539  + 539 ) 539  )
(%o16)       118786729 124347294197468844680811787712669717067409
                           2      3      4      5      6
(%i17) factor(1 + 541 + 541  + 541  + 541  + 541  + 541
                                                 2      3      4      5     13
                                 + (1 + 541 + 541  + 541  + 541  + 541 ) 541  )
(%o17)     6829 20107 22215491 130920481 39535421926773323626871321
                           2      3      4      5      6
(%i18) factor(1 + 542 + 542  + 542  + 542  + 542  + 542
                                                 2      3      4      5     13
                                 + (1 + 542 + 542  + 542  + 542  + 542 ) 542  )
(%o18)       853 59467 37573867 8564030877877610883644327402980279
                           2      3      4      5      6
(%i19) factor(1 + 544 + 544  + 544  + 544  + 544  + 544
                                                 2      3      4      5     13
                                 + (1 + 544 + 544  + 544  + 544  + 544 ) 544  )
(%o19)       100180342350008651431 174099191054984001435589404151
                           2      3      4      5      6
(%i20) factor(1 + 550 + 550  + 550  + 550  + 550  + 550
                                                 2      3      4      5     13
                                 + (1 + 550 + 550  + 550  + 550  + 550 ) 550  )
(%o20)       3248137 352606173287 18552161053978353017522151889229
                           2      3      4      5      6
(%i21) factor(1 + 551 + 551  + 551  + 551  + 551  + 551
                                                 2      3      4      5     13
                                 + (1 + 551 + 551  + 551  + 551  + 551 ) 551  )
(%o21)        21954203661606375994313821449247411984570651757713
素数ですね。

                           2      3      4      5      6
(%i22) factor(1 + 552 + 552  + 552  + 552  + 552  + 552
                                                 2      3      4      5     13
                                 + (1 + 552 + 552  + 552  + 552  + 552 ) 552  )
(%o22)        6855671 3308574438607498502563691347527608441621663
                           2      3      4      5      6
(%i23) factor(1 + 554 + 554  + 554  + 554  + 554  + 554
                                                 2      3      4      5     13
                                 + (1 + 554 + 554  + 554  + 554  + 554 ) 554  )
(%o23)        24208082934713313964648808777572257534474473607271
                           2      3      4      5      6
(%i24) factor(1 + 561 + 561  + 561  + 561  + 561  + 561
                                                 2      3      4      5     13
                                 + (1 + 561 + 561  + 561  + 561  + 561 ) 561  )
(%o24)        9389099 3232082356786241756520315828682852956303047
                           2      3      4      5      6
(%i25) factor(1 + 566 + 566  + 566  + 566  + 566  + 566
                                                 2      3      4      5     13
                                 + (1 + 566 + 566  + 566  + 566  + 566 ) 566  )
(%o25)      2081 28481021 169099543033 3552169463807146499710594231
                           2      3      4      5      6
(%i26) factor(1 + 575 + 575  + 575  + 575  + 575  + 575
                                                 2      3      4      5     13
                                 + (1 + 575 + 575  + 575  + 575  + 575 ) 575  )
(%o26)     1433 18257 18045197 100170518812849236568880615704628093
                           2      3      4      5      6
(%i27) factor(1 + 576 + 576  + 576  + 576  + 576  + 576
                                                 2      3      4      5     13
                                 + (1 + 576 + 576  + 576  + 576  + 576 ) 576  )
(%o27)      21089 829026743933 31586076073127 88356628477758363587
                           2      3      4      5      6
(%i28) factor(1 + 577 + 577  + 577  + 577  + 577  + 577
                                                 2      3      4      5     13
                                 + (1 + 577 + 577  + 577  + 577  + 577 ) 577  )
(%o28)       16853049657411949 2987029186171794035984865599004577
                           2      3      4      5      6
(%i29) factor(1 + 582 + 582  + 582  + 582  + 582  + 582
                                                 2      3      4      5     13
                                 + (1 + 582 + 582  + 582  + 582  + 582 ) 582  )
(%o29)      50377 103903 70585508771923 159141936393206109047799751
                           2      3      4      5      6
(%i30) factor(1 + 584 + 584  + 584  + 584  + 584  + 584
                                                 2      3      4      5     13
                                 + (1 + 584 + 584  + 584  + 584  + 584 ) 584  )
(%o30)      102352307 211958401 5677703145223 507755443205279504981
                           2      3      4      5      6
(%i31) factor(1 + 585 + 585  + 585  + 585  + 585  + 585
                                                 2      3      4      5     13
                                 + (1 + 585 + 585  + 585  + 585  + 585 ) 585  )
(%o31)      823 499903 2003149 78261789782187262925530654311681481
                           2      3      4      5      6
(%i32) factor(1 + 587 + 587  + 587  + 587  + 587  + 587
                                                 2      3      4      5     13
                                 + (1 + 587 + 587  + 587  + 587  + 587 ) 587  )
(%o32)       5986759 11456040279077495913263186416739192866724767
                           2      3      4      5      6
(%i33) factor(1 + 591 + 591  + 591  + 591  + 591  + 591
                                                 2      3      4      5     13
                                 + (1 + 591 + 591  + 591  + 591  + 591 ) 591  )
(%o33)       43734323 1772097924772418190777274999791344545404251
                           2      3      4      5      6
(%i34) factor(1 + 592 + 592  + 592  + 592  + 592  + 592
                                                 2      3      4      5     13
                                 + (1 + 592 + 592  + 592  + 592  + 592 ) 592  )
(%o34)      7477 30099841 721183985099 492251774849869607565461351
                           2      3      4      5      6
(%i35) factor(1 + 594 + 594  + 594  + 594  + 594  + 594
                                                 2      3      4      5     13
                                 + (1 + 594 + 594  + 594  + 594  + 594 ) 594  )
(%o35)       647 51384185081018648461 2553606689209840706791841693
                           2      3      4      5      6
(%i36) factor(1 + 596 + 596  + 596  + 596  + 596  + 596
                                                 2      3      4      5     13
                                 + (1 + 596 + 596  + 596  + 596  + 596 ) 596  )
(%o36)        90190743962719738874133343990317752520287202848293
素数ですね。

                           2      3      4      5      6
(%i37) factor(1 + 597 + 597  + 597  + 597  + 597  + 597
                                                 2      3      4      5     13
                                 + (1 + 597 + 597  + 597  + 597  + 597 ) 597  )
%o37)      163 1108652038395288465587 514378926177859310384760893
(%o37)                               a.bat
(





b.txtに追加されるものは
317,500
541,516
607,537
853,542
823,585

生成されたa.batは、
factor((600^5+600^4+600^3+600^2+600+1)*600^13+600^6+600^5+600^4+600^3+600^2+600+1);
factor((607^5+607^4+607^3+607^2+607+1)*607^13+607^6+607^5+607^4+607^3+607^2+607+1);
factor((609^5+609^4+609^3+609^2+609+1)*609^13+609^6+609^5+609^4+609^3+609^2+609+1);
factor((610^5+610^4+610^3+610^2+610+1)*610^13+610^6+610^5+610^4+610^3+610^2+610+1);
factor((611^5+611^4+611^3+611^2+611+1)*611^13+611^6+611^5+611^4+611^3+611^2+611+1);
factor((614^5+614^4+614^3+614^2+614+1)*614^13+614^6+614^5+614^4+614^3+614^2+614+1);
factor((620^5+620^4+620^3+620^2+620+1)*620^13+620^6+620^5+620^4+620^3+620^2+620+1);
factor((622^5+622^4+622^3+622^2+622+1)*622^13+622^6+622^5+622^4+622^3+622^2+622+1);
factor((624^5+624^4+624^3+624^2+624+1)*624^13+624^6+624^5+624^4+624^3+624^2+624+1);
factor((626^5+626^4+626^3+626^2+626+1)*626^13+626^6+626^5+626^4+626^3+626^2+626+1);
factor((629^5+629^4+629^3+629^2+629+1)*629^13+629^6+629^5+629^4+629^3+629^2+629+1);
factor((630^5+630^4+630^3+630^2+630+1)*630^13+630^6+630^5+630^4+630^3+630^2+630+1);
factor((632^5+632^4+632^3+632^2+632+1)*632^13+632^6+632^5+632^4+632^3+632^2+632+1);
factor((635^5+635^4+635^3+635^2+635+1)*635^13+635^6+635^5+635^4+635^3+635^2+635+1);
factor((636^5+636^4+636^3+636^2+636+1)*636^13+636^6+636^5+636^4+636^3+636^2+636+1);
factor((654^5+654^4+654^3+654^2+654+1)*654^13+654^6+654^5+654^4+654^3+654^2+654+1);
factor((655^5+655^4+655^3+655^2+655+1)*655^13+655^6+655^5+655^4+655^3+655^2+655+1);
factor((659^5+659^4+659^3+659^2+659+1)*659^13+659^6+659^5+659^4+659^3+659^2+659+1);
factor((660^5+660^4+660^3+660^2+660+1)*660^13+660^6+660^5+660^4+660^3+660^2+660+1);
factor((662^5+662^4+662^3+662^2+662+1)*662^13+662^6+662^5+662^4+662^3+662^2+662+1);
factor((665^5+665^4+665^3+665^2+665+1)*665^13+665^6+665^5+665^4+665^3+665^2+665+1);
factor((670^5+670^4+670^3+670^2+670+1)*670^13+670^6+670^5+670^4+670^3+670^2+670+1);
factor((672^5+672^4+672^3+672^2+672+1)*672^13+672^6+672^5+672^4+672^3+672^2+672+1);
factor((676^5+676^4+676^3+676^2+676+1)*676^13+676^6+676^5+676^4+676^3+676^2+676+1);
factor((679^5+679^4+679^3+679^2+679+1)*679^13+679^6+679^5+679^4+679^3+679^2+679+1);
factor((680^5+680^4+680^3+680^2+680+1)*680^13+680^6+680^5+680^4+680^3+680^2+680+1);
factor((682^5+682^4+682^3+682^2+682+1)*682^13+682^6+682^5+682^4+682^3+682^2+682+1);
factor((684^5+684^4+684^3+684^2+684+1)*684^13+684^6+684^5+684^4+684^3+684^2+684+1);
factor((685^5+685^4+685^3+685^2+685+1)*685^13+685^6+685^5+685^4+685^3+685^2+685+1);
factor((696^5+696^4+696^3+696^2+696+1)*696^13+696^6+696^5+696^4+696^3+696^2+696+1);
factor((697^5+697^4+697^3+697^2+697+1)*697^13+697^6+697^5+697^4+697^3+697^2+697+1);

(%i1) batch("a.bat");

read and interpret file: a.bat
                          2      3      4      5      6
(%i2) factor(1 + 600 + 600  + 600  + 600  + 600  + 600
                                                 2      3      4      5     13
                                 + (1 + 600 + 600  + 600  + 600  + 600 ) 600  )
(%o2)       2113 986471 12534205547 3893734211173298095222968913021
                          2      3      4      5      6
(%i3) factor(1 + 607 + 607  + 607  + 607  + 607  + 607
                                                 2      3      4      5     13
                                 + (1 + 607 + 607  + 607  + 607  + 607 ) 607  )
(%o3)       40277 187909 16561810452307217734583824899156217950041
                          2      3      4      5      6
(%i4) factor(1 + 609 + 609  + 609  + 609  + 609  + 609
                                                 2      3      4      5     13
                                 + (1 + 609 + 609  + 609  + 609  + 609 ) 609  )
(%o4)         132991835724523110273349149642186419388867158017741
素数ですね。

                          2      3      4      5      6
(%i5) factor(1 + 610 + 610  + 610  + 610  + 610  + 610
                                                 2      3      4      5     13
                                 + (1 + 610 + 610  + 610  + 610  + 610 ) 610  )
(%o5)        88541569 1547042906970489169279365076281847710593119
                          2      3      4      5      6
(%i6) factor(1 + 611 + 611  + 611  + 611  + 611  + 611
                                                 2      3      4      5     13
                                 + (1 + 611 + 611  + 611  + 611  + 611 ) 611  )
(%o6)      1103 60136288249 185522073851 11464244448852775249602349
                          2      3      4      5      6
(%i7) factor(1 + 614 + 614  + 614  + 614  + 614  + 614
                                                 2      3      4      5     13
                                 + (1 + 614 + 614  + 614  + 614  + 614 ) 614  )
(%o7)      229 932839 4682267 8473609 18179075972656366620989814827
                          2      3      4      5      6
(%i8) factor(1 + 620 + 620  + 620  + 620  + 620  + 620
                                                 2      3      4      5     13
                                 + (1 + 620 + 620  + 620  + 620  + 620 ) 620  )
(%o8)       3761 14691595735068283 3321843351717664845208434586967
                          2      3      4      5      6
(%i9) factor(1 + 622 + 622  + 622  + 622  + 622  + 622
                                                 2      3      4      5     13
                                 + (1 + 622 + 622  + 622  + 622  + 622 ) 622  )
(%o9)       727 3825233382713 4392826080531709 15921696889397781737
                           2      3      4      5      6
(%i10) factor(1 + 624 + 624  + 624  + 624  + 624  + 624
                                                 2      3      4      5     13
                                 + (1 + 624 + 624  + 624  + 624  + 624 ) 624  )
(%o10)       667519 64128770516327987 4813961491103790522837780917
                           2      3      4      5      6
(%i11) factor(1 + 626 + 626  + 626  + 626  + 626  + 626
                                                 2      3      4      5     13
                                 + (1 + 626 + 626  + 626  + 626  + 626 ) 626  )
(%o11)      2203 18305477 5412984286785182646371063008839472507673
                           2      3      4      5      6
(%i12) factor(1 + 629 + 629  + 629  + 629  + 629  + 629
                                                 2      3      4      5     13
                                 + (1 + 629 + 629  + 629  + 629  + 629 ) 629  )
(%o12)      4595243 327491273873 158086361910972630246333608818639
                           2      3      4      5      6
(%i13) factor(1 + 630 + 630  + 630  + 630  + 630  + 630
                                                 2      3      4      5     13
                                 + (1 + 630 + 630  + 630  + 630  + 630 ) 630  )
(%o13)     241 9349 2039957 64456492193 826323134420095133682641659
                           2      3      4      5      6
(%i14) factor(1 + 632 + 632  + 632  + 632  + 632  + 632
                                                 2      3      4      5     13
                                 + (1 + 632 + 632  + 632  + 632  + 632 ) 632  )
(%o14)        259176206028496710633812166569377138584997895702713
素数ですね。

                           2      3      4      5      6
(%i15) factor(1 + 635 + 635  + 635  + 635  + 635  + 635
                                                 2      3      4      5     13
                                 + (1 + 635 + 635  + 635  + 635  + 635 ) 635  )
(%o15)       2351 120049095856977310810763771738942161588848151511
                           2      3      4      5      6
(%i16) factor(1 + 636 + 636  + 636  + 636  + 636  + 636
                                                 2      3      4      5     13
                                 + (1 + 636 + 636  + 636  + 636  + 636 ) 636  )
(%o16)       109682413 2647125159031533482429563864827125757082081
                           2      3      4      5      6
(%i17) factor(1 + 654 + 654  + 654  + 654  + 654  + 654
                                                 2      3      4      5     13
                                 + (1 + 654 + 654  + 654  + 654  + 654 ) 654  )
(%o17)      523 4738636817 47453663205703 4079802878509802224583927
                           2      3      4      5      6
(%i18) factor(1 + 655 + 655  + 655  + 655  + 655  + 655
                                                 2      3      4      5     13
                                 + (1 + 655 + 655  + 655  + 655  + 655 ) 655  )
(%o18)        493181697987557415203556430108159923456907659691681
素数ですね。

                           2      3      4      5      6
(%i19) factor(1 + 659 + 659  + 659  + 659  + 659  + 659
                                                 2      3      4      5     13
                                 + (1 + 659 + 659  + 659  + 659  + 659 ) 659  )
(%o19)      1733 137191 2314583214281445175492609962799745452274147
                           2      3      4      5      6
(%i20) factor(1 + 660 + 660  + 660  + 660  + 660  + 660
                                                 2      3      4      5     13
                                 + (1 + 660 + 660  + 660  + 660  + 660 ) 660  )
(%o20)      4211 210523 7578889945692427 84170318093233043647651631
                           2      3      4      5      6
(%i21) factor(1 + 662 + 662  + 662  + 662  + 662  + 662
                                                 2      3      4      5     13
                                 + (1 + 662 + 662  + 662  + 662  + 662 ) 662  )
(%o21)        597173242200807824281174069795816987885237879096003
素数ですね。

                           2      3      4      5      6
(%i22) factor(1 + 665 + 665  + 665  + 665  + 665  + 665
                                                 2      3      4      5     13
                                 + (1 + 665 + 665  + 665  + 665  + 665 ) 665  )
(%o22)       23539 27520427283220109538667179782651448679138223119
                           2      3      4      5      6
(%i23) factor(1 + 670 + 670  + 670  + 670  + 670  + 670
                                                 2      3      4      5     13
                                 + (1 + 670 + 670  + 670  + 670  + 670 ) 670  )
(%o23)      34607 3767789270659 5685184659905531974503242860006967
                           2      3      4      5      6
(%i24) factor(1 + 672 + 672  + 672  + 672  + 672  + 672
                                                 2      3      4      5     13
                                 + (1 + 672 + 672  + 672  + 672  + 672 ) 672  )
(%o24)     517635857 3956175061 33396780378001 11436396758486901629
                           2      3      4      5      6
(%i25) factor(1 + 676 + 676  + 676  + 676  + 676  + 676
                                                 2      3      4      5     13
                                 + (1 + 676 + 676  + 676  + 676  + 676 ) 676  )
(%o25)       10061 86505217230261608527044724306054378948582044233
                           2      3      4      5      6
(%i26) factor(1 + 679 + 679  + 679  + 679  + 679  + 679
                                                 2      3      4      5     13
                                 + (1 + 679 + 679  + 679  + 679  + 679 ) 679  )
(%o26)    2081 128599 2782268737 339946820838437 3723713728460669611
                           2      3      4      5      6
(%i27) factor(1 + 680 + 680  + 680  + 680  + 680  + 680
                                                 2      3      4      5     13
                                 + (1 + 680 + 680  + 680  + 680  + 680 ) 680  )
(%o27)      27239 2452123 14489925634489876095142512826133851429373
                           2      3      4      5      6
(%i28) factor(1 + 682 + 682  + 682  + 682  + 682  + 682
                                                 2      3      4      5     13
                                 + (1 + 682 + 682  + 682  + 682  + 682 ) 682  )
(%o28)      1811 412592727982817970721207 1365576350936173388212619
                           2      3      4      5      6
(%i29) factor(1 + 684 + 684  + 684  + 684  + 684  + 684
                                                 2      3      4      5     13
                                 + (1 + 684 + 684  + 684  + 684  + 684 ) 684  )
(%o29)      2327539 11517953 40121111890586752620540500101368684623
                           2      3      4      5      6
(%i30) factor(1 + 685 + 685  + 685  + 685  + 685  + 685
                                                 2      3      4      5     13
                                 + (1 + 685 + 685  + 685  + 685  + 685 ) 685  )
(%o30)      8248403 8618059 15534075875869540970011546162901250293
                           2      3      4      5      6
(%i31) factor(1 + 696 + 696  + 696  + 696  + 696  + 696
                                                 2      3      4      5     13
                                 + (1 + 696 + 696  + 696  + 696  + 696 ) 696  )
(%o31)      3016777 1796493443 271407536617666866325324401298907963
                           2      3      4      5      6
(%i32) factor(1 + 697 + 697  + 697  + 697  + 697  + 697
                                                 2      3      4      5     13
                                 + (1 + 697 + 697  + 697  + 697  + 697 ) 697  )
(%o32)     115793 120167 123871469797961 875739075877957028397782963
(%o32)                               a.bat
(%i33)


b.txtb.txtに追加されるものは
229,614
727,622
241,630
523,654


生成されたa.batは、
factor((705^5+705^4+705^3+705^2+705+1)*705^13+705^6+705^5+705^4+705^3+705^2+705+1);
factor((706^5+706^4+706^3+706^2+706+1)*706^13+706^6+706^5+706^4+706^3+706^2+706+1);
factor((709^5+709^4+709^3+709^2+709+1)*709^13+709^6+709^5+709^4+709^3+709^2+709+1);
factor((712^5+712^4+712^3+712^2+712+1)*712^13+712^6+712^5+712^4+712^3+712^2+712+1);
factor((714^5+714^4+714^3+714^2+714+1)*714^13+714^6+714^5+714^4+714^3+714^2+714+1);
factor((719^5+719^4+719^3+719^2+719+1)*719^13+719^6+719^5+719^4+719^3+719^2+719+1);
factor((720^5+720^4+720^3+720^2+720+1)*720^13+720^6+720^5+720^4+720^3+720^2+720+1);
factor((721^5+721^4+721^3+721^2+721+1)*721^13+721^6+721^5+721^4+721^3+721^2+721+1);
factor((724^5+724^4+724^3+724^2+724+1)*724^13+724^6+724^5+724^4+724^3+724^2+724+1);
factor((727^5+727^4+727^3+727^2+727+1)*727^13+727^6+727^5+727^4+727^3+727^2+727+1);
factor((730^5+730^4+730^3+730^2+730+1)*730^13+730^6+730^5+730^4+730^3+730^2+730+1);
factor((735^5+735^4+735^3+735^2+735+1)*735^13+735^6+735^5+735^4+735^3+735^2+735+1);
factor((736^5+736^4+736^3+736^2+736+1)*736^13+736^6+736^5+736^4+736^3+736^2+736+1);
factor((737^5+737^4+737^3+737^2+737+1)*737^13+737^6+737^5+737^4+737^3+737^2+737+1);
factor((739^5+739^4+739^3+739^2+739+1)*739^13+739^6+739^5+739^4+739^3+739^2+739+1);
factor((741^5+741^4+741^3+741^2+741+1)*741^13+741^6+741^5+741^4+741^3+741^2+741+1);
factor((746^5+746^4+746^3+746^2+746+1)*746^13+746^6+746^5+746^4+746^3+746^2+746+1);
factor((749^5+749^4+749^3+749^2+749+1)*749^13+749^6+749^5+749^4+749^3+749^2+749+1);
factor((750^5+750^4+750^3+750^2+750+1)*750^13+750^6+750^5+750^4+750^3+750^2+750+1);
factor((751^5+751^4+751^3+751^2+751+1)*751^13+751^6+751^5+751^4+751^3+751^2+751+1);
factor((752^5+752^4+752^3+752^2+752+1)*752^13+752^6+752^5+752^4+752^3+752^2+752+1);
factor((760^5+760^4+760^3+760^2+760+1)*760^13+760^6+760^5+760^4+760^3+760^2+760+1);
factor((765^5+765^4+765^3+765^2+765+1)*765^13+765^6+765^5+765^4+765^3+765^2+765+1);
factor((767^5+767^4+767^3+767^2+767+1)*767^13+767^6+767^5+767^4+767^3+767^2+767+1);
factor((769^5+769^4+769^3+769^2+769+1)*769^13+769^6+769^5+769^4+769^3+769^2+769+1);
factor((774^5+774^4+774^3+774^2+774+1)*774^13+774^6+774^5+774^4+774^3+774^2+774+1);
factor((782^5+782^4+782^3+782^2+782+1)*782^13+782^6+782^5+782^4+782^3+782^2+782+1);
factor((784^5+784^4+784^3+784^2+784+1)*784^13+784^6+784^5+784^4+784^3+784^2+784+1);
factor((785^5+785^4+785^3+785^2+785+1)*785^13+785^6+785^5+785^4+785^3+785^2+785+1);
factor((787^5+787^4+787^3+787^2+787+1)*787^13+787^6+787^5+787^4+787^3+787^2+787+1);
factor((789^5+789^4+789^3+789^2+789+1)*789^13+789^6+789^5+789^4+789^3+789^2+789+1);
factor((790^5+790^4+790^3+790^2+790+1)*790^13+790^6+790^5+790^4+790^3+790^2+790+1);
factor((797^5+797^4+797^3+797^2+797+1)*797^13+797^6+797^5+797^4+797^3+797^2+797+1);


(%i1) batch("a.bat");

read and interpret file: a.bat
                          2      3      4      5      6
(%i2) factor(1 + 705 + 705  + 705  + 705  + 705  + 705
                                                 2      3      4      5     13
                                 + (1 + 705 + 705  + 705  + 705  + 705 ) 705  )
(%o2)        2772437 668588461912030951366700179416330759918493913
                          2      3      4      5      6
(%i3) factor(1 + 706 + 706  + 706  + 706  + 706  + 706
                                                 2      3      4      5     13
                                 + (1 + 706 + 706  + 706  + 706  + 706 ) 706  )
(%o3)       1987157 74588309293 12829131568513612236200657306497583
                          2      3      4      5      6
(%i4) factor(1 + 709 + 709  + 709  + 709  + 709  + 709
                                                 2      3      4      5     13
                                 + (1 + 709 + 709  + 709  + 709  + 709 ) 709  )
(%o4)        79626814789031 25774239944291878655435728999764751811
                          2      3      4      5      6
(%i5) factor(1 + 712 + 712  + 712  + 712  + 712  + 712
                                                 2      3      4      5     13
                                 + (1 + 712 + 712  + 712  + 712  + 712 ) 712  )
(%o5)       786864017431 829066766477 3394384892972453100318325019
                          2      3      4      5      6
(%i6) factor(1 + 714 + 714  + 714  + 714  + 714  + 714
                                                 2      3      4      5     13
                                 + (1 + 714 + 714  + 714  + 714  + 714 ) 714  )
(%o6)        294044556917107 7920696075842113013386590720634290973
                          2      3      4      5      6
(%i7) factor(1 + 719 + 719  + 719  + 719  + 719  + 719
                                                 2      3      4      5     13
                                 + (1 + 719 + 719  + 719  + 719  + 719 ) 719  )
(%o7)      3989 173343901 1629297259417696703 2343967273953602255743
                          2      3      4      5      6
(%i8) factor(1 + 720 + 720  + 720  + 720  + 720  + 720
                                                 2      3      4      5     13
                                 + (1 + 720 + 720  + 720  + 720  + 720 ) 720  )
(%o8)       203247216067481 13321831497969021968434077861160328441
                          2      3      4      5      6
(%i9) factor(1 + 721 + 721  + 721  + 721  + 721  + 721
                                                 2      3      4      5     13
                                 + (1 + 721 + 721  + 721  + 721  + 721 ) 721  )
(%o9)        3032795436193867 915365237491368332190721186897877479
                           2      3      4      5      6
(%i10) factor(1 + 724 + 724  + 724  + 724  + 724  + 724
                                                 2      3      4      5     13
                                 + (1 + 724 + 724  + 724  + 724  + 724 ) 724  )
(%o10)      3224413 14410141 64383645979512039003317330915228939197
                           2      3      4      5      6
(%i11) factor(1 + 727 + 727  + 727  + 727  + 727  + 727
                                                 2      3      4      5     13
                                 + (1 + 727 + 727  + 727  + 727  + 727 ) 727  )
(%o11)      7191953 17763931 25225005375124246318703650297374916211
                           2      3      4      5      6
(%i12) factor(1 + 730 + 730  + 730  + 730  + 730  + 730
                                                 2      3      4      5     13
                                 + (1 + 730 + 730  + 730  + 730  + 730 ) 730  )
(%o12)      3413 14297369 71123709540191674994902241786080225569523
                           2      3      4      5      6
(%i13) factor(1 + 735 + 735  + 735  + 735  + 735  + 735
                                                 2      3      4      5     13
                                 + (1 + 735 + 735  + 735  + 735  + 735 ) 735  )
(%o13)      4138051 50576341 18750814489150030185579481636804230271
                           2      3      4      5      6
(%i14) factor(1 + 736 + 736  + 736  + 736  + 736  + 736
                                                 2      3      4      5     13
                                 + (1 + 736 + 736  + 736  + 736  + 736 ) 736  )
(%o14)       4021528337911239986197585504959321807759792269936353
素数ですね。

                           2      3      4      5      6
(%i15) factor(1 + 737 + 737  + 737  + 737  + 737  + 737
                                                 2      3      4      5     13
                                 + (1 + 737 + 737  + 737  + 737  + 737 ) 737  )
(%o15)     1709 414677 1250955352753608030539 4648476444112452218039
                           2      3      4      5      6
(%i16) factor(1 + 739 + 739  + 739  + 739  + 739  + 739
                                                 2      3      4      5     13
                                 + (1 + 739 + 739  + 739  + 739  + 739 ) 739  )
(%o16)       9541407361825169 453498160318496453627787134263627769
                           2      3      4      5      6
(%i17) factor(1 + 741 + 741  + 741  + 741  + 741  + 741
                                                 2      3      4      5     13
                                 + (1 + 741 + 741  + 741  + 741  + 741 ) 741  )
(%o17)    1087 148510849 159084449 176888165886382450034638122675179
                           2      3      4      5      6
(%i18) factor(1 + 746 + 746  + 746  + 746  + 746  + 746
                                                 2      3      4      5     13
                                 + (1 + 746 + 746  + 746  + 746  + 746 ) 746  )
(%o18)      394113997 13009469584221988885138141728170612729319619
                           2      3      4      5      6
(%i19) factor(1 + 749 + 749  + 749  + 749  + 749  + 749
                                                 2      3      4      5     13
                                 + (1 + 749 + 749  + 749  + 749  + 749 ) 749  )
(%o19)    1997 2452753 6897664088129 16088631277877 10139111960219717
                           2      3      4      5      6
(%i20) factor(1 + 750 + 750  + 750  + 750  + 750  + 750
                                                 2      3      4      5     13
                                 + (1 + 750 + 750  + 750  + 750  + 750 ) 750  )
(%o20)      285629 19764229460088809757292782131519726058860049719
                           2      3      4      5      6
(%i21) factor(1 + 751 + 751  + 751  + 751  + 751  + 751
                                                 2      3      4      5     13
                                 + (1 + 751 + 751  + 751  + 751  + 751 ) 751  )
(%o21)     353 195648964200931 5355922535400091 15631872145500058001
                           2      3      4      5      6
(%i22) factor(1 + 752 + 752  + 752  + 752  + 752  + 752
                                                 2      3      4      5     13
                                 + (1 + 752 + 752  + 752  + 752  + 752 ) 752  )
(%o22)     183736499 105502308979 8294339642917 36834927350292258389
                           2      3      4      5      6
(%i23) factor(1 + 760 + 760  + 760  + 760  + 760  + 760
                                                 2      3      4      5     13
                                 + (1 + 760 + 760  + 760  + 760  + 760 ) 760  )
(%o23)     163 37212751 1181237147148860572773689155611018222359197
                           2      3      4      5      6
(%i24) factor(1 + 765 + 765  + 765  + 765  + 765  + 765
                                                 2      3      4      5     13
                                 + (1 + 765 + 765  + 765  + 765  + 765 ) 765  )
(%o24)      2609 61763221590919 50034537463836745298099278447907171
                           2      3      4      5      6
(%i25) factor(1 + 767 + 767  + 767  + 767  + 767  + 767
                                                 2      3      4      5     13
                                 + (1 + 767 + 767  + 767  + 767  + 767 ) 767  )
(%o25)      1871 4516576368523769355506833176243548322955507556783
                           2      3      4      5      6
(%i26) factor(1 + 769 + 769  + 769  + 769  + 769  + 769
                                                 2      3      4      5     13
                                 + (1 + 769 + 769  + 769  + 769  + 769 ) 769  )
(%o26)      1455691950372431591 6083727537341373101011193466413291
                           2      3      4      5      6
(%i27) factor(1 + 774 + 774  + 774  + 774  + 774  + 774
                                                 2      3      4      5     13
                                 + (1 + 774 + 774  + 774  + 774  + 774 ) 774  )
(%o27)     27107 643163748881 165800897584493 3442776802242037511621
                           2      3      4      5      6
(%i28) factor(1 + 782 + 782  + 782  + 782  + 782  + 782
                                                 2      3      4      5     13
                                 + (1 + 782 + 782  + 782  + 782  + 782 ) 782  )
(%o28)       11975048313569252167452892603812203056336206379935163
素数ですね。

                           2      3      4      5      6
(%i29) factor(1 + 784 + 784  + 784  + 784  + 784  + 784
                                                 2      3      4      5     13
                                 + (1 + 784 + 784  + 784  + 784  + 784 ) 784  )
(%o29)    1453 61223 205297 1842809 372563478857094874047208727359243
                           2      3      4      5      6
(%i30) factor(1 + 785 + 785  + 785  + 785  + 785  + 785
                                                 2      3      4      5     13
                                 + (1 + 785 + 785  + 785  + 785  + 785 ) 785  )
(%o30)       12829431594728007331603107796756933990630528244329261
素数ですね。

                           2      3      4      5      6
(%i31) factor(1 + 787 + 787  + 787  + 787  + 787  + 787
                                                 2      3      4      5     13
                                 + (1 + 787 + 787  + 787  + 787  + 787 ) 787  )
(%o31)      23548817 570332701922295313055991705774856121774709209
                           2      3      4      5      6
(%i32) factor(1 + 789 + 789  + 789  + 789  + 789  + 789
                                                 2      3      4      5     13
                                 + (1 + 789 + 789  + 789  + 789  + 789 ) 789  )
(%o32)     36947 483551 23819605265563 33035494876789685017226781451
                           2      3      4      5      6
(%i33) factor(1 + 790 + 790  + 790  + 790  + 790  + 790
                                                 2      3      4      5     13
                                 + (1 + 790 + 790  + 790  + 790  + 790 ) 790  )
(%o33)     30908167 2495112179736653 186498097134671315588850286841
                           2      3      4      5      6
(%i34) factor(1 + 797 + 797  + 797  + 797  + 797  + 797
                                                 2      3      4      5     13
                                 + (1 + 797 + 797  + 797  + 797  + 797 ) 797  )
(%o34)     15797 136463 893736575106449689 8749756655696605562515927
(%o34)                               a.bat
(%i35)


b.txtb.txtに追加されるものは
353,751
163,760

生成されたa.batは、
factor((801^5+801^4+801^3+801^2+801+1)*801^13+801^6+801^5+801^4+801^3+801^2+801+1);
factor((805^5+805^4+805^3+805^2+805+1)*805^13+805^6+805^5+805^4+805^3+805^2+805+1);
factor((806^5+806^4+806^3+806^2+806+1)*806^13+806^6+806^5+806^4+806^3+806^2+806+1);
factor((812^5+812^4+812^3+812^2+812+1)*812^13+812^6+812^5+812^4+812^3+812^2+812+1);
factor((814^5+814^4+814^3+814^2+814+1)*814^13+814^6+814^5+814^4+814^3+814^2+814+1);
factor((815^5+815^4+815^3+815^2+815+1)*815^13+815^6+815^5+815^4+815^3+815^2+815+1);
factor((824^5+824^4+824^3+824^2+824+1)*824^13+824^6+824^5+824^4+824^3+824^2+824+1);
factor((826^5+826^4+826^3+826^2+826+1)*826^13+826^6+826^5+826^4+826^3+826^2+826+1);
factor((829^5+829^4+829^3+829^2+829+1)*829^13+829^6+829^5+829^4+829^3+829^2+829+1);
factor((830^5+830^4+830^3+830^2+830+1)*830^13+830^6+830^5+830^4+830^3+830^2+830+1);
factor((831^5+831^4+831^3+831^2+831+1)*831^13+831^6+831^5+831^4+831^3+831^2+831+1);
factor((834^5+834^4+834^3+834^2+834+1)*834^13+834^6+834^5+834^4+834^3+834^2+834+1);
factor((835^5+835^4+835^3+835^2+835+1)*835^13+835^6+835^5+835^4+835^3+835^2+835+1);
factor((836^5+836^4+836^3+836^2+836+1)*836^13+836^6+836^5+836^4+836^3+836^2+836+1);
factor((837^5+837^4+837^3+837^2+837+1)*837^13+837^6+837^5+837^4+837^3+837^2+837+1);
factor((839^5+839^4+839^3+839^2+839+1)*839^13+839^6+839^5+839^4+839^3+839^2+839+1);
factor((841^5+841^4+841^3+841^2+841+1)*841^13+841^6+841^5+841^4+841^3+841^2+841+1);
factor((842^5+842^4+842^3+842^2+842+1)*842^13+842^6+842^5+842^4+842^3+842^2+842+1);
factor((847^5+847^4+847^3+847^2+847+1)*847^13+847^6+847^5+847^4+847^3+847^2+847+1);
factor((851^5+851^4+851^3+851^2+851+1)*851^13+851^6+851^5+851^4+851^3+851^2+851+1);
factor((856^5+856^4+856^3+856^2+856+1)*856^13+856^6+856^5+856^4+856^3+856^2+856+1);
factor((857^5+857^4+857^3+857^2+857+1)*857^13+857^6+857^5+857^4+857^3+857^2+857+1);
factor((860^5+860^4+860^3+860^2+860+1)*860^13+860^6+860^5+860^4+860^3+860^2+860+1);
factor((862^5+862^4+862^3+862^2+862+1)*862^13+862^6+862^5+862^4+862^3+862^2+862+1);
factor((864^5+864^4+864^3+864^2+864+1)*864^13+864^6+864^5+864^4+864^3+864^2+864+1);
factor((866^5+866^4+866^3+866^2+866+1)*866^13+866^6+866^5+866^4+866^3+866^2+866+1);
factor((870^5+870^4+870^3+870^2+870+1)*870^13+870^6+870^5+870^4+870^3+870^2+870+1);
factor((874^5+874^4+874^3+874^2+874+1)*874^13+874^6+874^5+874^4+874^3+874^2+874+1);
factor((875^5+875^4+875^3+875^2+875+1)*875^13+875^6+875^5+875^4+875^3+875^2+875+1);
factor((877^5+877^4+877^3+877^2+877+1)*877^13+877^6+877^5+877^4+877^3+877^2+877+1);
factor((879^5+879^4+879^3+879^2+879+1)*879^13+879^6+879^5+879^4+879^3+879^2+879+1);
factor((880^5+880^4+880^3+880^2+880+1)*880^13+880^6+880^5+880^4+880^3+880^2+880+1);
factor((882^5+882^4+882^3+882^2+882+1)*882^13+882^6+882^5+882^4+882^3+882^2+882+1);
factor((886^5+886^4+886^3+886^2+886+1)*886^13+886^6+886^5+886^4+886^3+886^2+886+1);
factor((889^5+889^4+889^3+889^2+889+1)*889^13+889^6+889^5+889^4+889^3+889^2+889+1);
factor((890^5+890^4+890^3+890^2+890+1)*890^13+890^6+890^5+890^4+890^3+890^2+890+1);
factor((891^5+891^4+891^3+891^2+891+1)*891^13+891^6+891^5+891^4+891^3+891^2+891+1);
factor((892^5+892^4+892^3+892^2+892+1)*892^13+892^6+892^5+892^4+892^3+892^2+892+1);
factor((896^5+896^4+896^3+896^2+896+1)*896^13+896^6+896^5+896^4+896^3+896^2+896+1);


(%i1) batch("a.bat");

read and interpret file: a.bat
                          2      3      4      5      6
(%i2) factor(1 + 801 + 801  + 801  + 801  + 801  + 801
                                                 2      3      4      5     13
                                 + (1 + 801 + 801  + 801  + 801  + 801 ) 801  )
(%o2)      919 68275421 437867137 671437462628758196173125320207351
                          2      3      4      5      6
(%i3) factor(1 + 805 + 805  + 805  + 805  + 805  + 805
                                                 2      3      4      5     13
                                 + (1 + 805 + 805  + 805  + 805  + 805 ) 805  )
(%o3)      953 6959 163697 18585969526176504786829765592638350987299
                          2      3      4      5      6
(%i4) factor(1 + 806 + 806  + 806  + 806  + 806  + 806
                                                 2      3      4      5     13
                                 + (1 + 806 + 806  + 806  + 806  + 806 ) 806  )
(%o4)      1148029213 12252996187 1466812749598538490932332391231293
                          2      3      4      5      6
(%i5) factor(1 + 812 + 812  + 812  + 812  + 812  + 812
                                                 2      3      4      5     13
                                 + (1 + 812 + 812  + 812  + 812  + 812 ) 812  )
(%o5)    6089 632501 1150309 26032129 530296967 7324329629 52641139399
                          2      3      4      5      6
(%i6) factor(1 + 814 + 814  + 814  + 814  + 814  + 814
                                                 2      3      4      5     13
                                 + (1 + 814 + 814  + 814  + 814  + 814 ) 814  )
(%o6)      199753 86870957 1420382231929634715086844034336821524591
                          2      3      4      5      6
(%i7) factor(1 + 815 + 815  + 815  + 815  + 815  + 815
                                                 2      3      4      5     13
                                 + (1 + 815 + 815  + 815  + 815  + 815 ) 815  )
(%o7)      42582077 2169776481449 446312359275287 611067813957256091
                          2      3      4      5      6
(%i8) factor(1 + 824 + 824  + 824  + 824  + 824  + 824
                                                 2      3      4      5     13
                                 + (1 + 824 + 824  + 824  + 824  + 824 ) 824  )
(%o8)      12011 76551450342067207147523 33395242143946271575865017
                          2      3      4      5      6
(%i9) factor(1 + 826 + 826  + 826  + 826  + 826  + 826
                                                 2      3      4      5     13
                                 + (1 + 826 + 826  + 826  + 826  + 826 ) 826  )
(%o9)      3698311 141958521615105013547 61094491356300771878655539
                           2      3      4      5      6
(%i10) factor(1 + 829 + 829  + 829  + 829  + 829  + 829
                                                 2      3      4      5     13
                                 + (1 + 829 + 829  + 829  + 829  + 829 ) 829  )
(%o10)     2707 846947771 14933474287546790591595248844617484381893
                           2      3      4      5      6
(%i11) factor(1 + 830 + 830  + 830  + 830  + 830  + 830
                                                 2      3      4      5     13
                                 + (1 + 830 + 830  + 830  + 830  + 830 ) 830  )
(%o11)      142119409 246193074426375612767358942926197409749042459
                           2      3      4      5      6
(%i12) factor(1 + 831 + 831  + 831  + 831  + 831  + 831
                                                 2      3      4      5     13
                                 + (1 + 831 + 831  + 831  + 831  + 831 ) 831  )
(%o12)     4269049 3963885001 480744110713 4395165173433596820011209
                           2      3      4      5      6
(%i13) factor(1 + 834 + 834  + 834  + 834  + 834  + 834
                                                 2      3      4      5     13
                                 + (1 + 834 + 834  + 834  + 834  + 834 ) 834  )
(%o13)      14364223370993 2655998409971497979574108566698529351087
                           2      3      4      5      6
(%i14) factor(1 + 835 + 835  + 835  + 835  + 835  + 835
                                                 2      3      4      5     13
                                 + (1 + 835 + 835  + 835  + 835  + 835 ) 835  )
(%o14)     1049 339799 109365262304255255784649736531384299934505911
                           2      3      4      5      6
(%i15) factor(1 + 836 + 836  + 836  + 836  + 836  + 836
                                                 2      3      4      5     13
                                 + (1 + 836 + 836  + 836  + 836  + 836 ) 836  )
(%o15)      5023 805289 9847315461657108921569796596915333488415699
                           2      3      4      5      6
(%i16) factor(1 + 837 + 837  + 837  + 837  + 837  + 837
                                                 2      3      4      5     13
                                 + (1 + 837 + 837  + 837  + 837  + 837 ) 837  )
(%o16)     14627 44165783 62999373228327782068955854301231651383633
                           2      3      4      5      6
(%i17) factor(1 + 839 + 839  + 839  + 839  + 839  + 839
                                                 2      3      4      5     13
                                 + (1 + 839 + 839  + 839  + 839  + 839 ) 839  )
(%o17)    3643 61051 543841 76048116980981 4618711898418410704596437
                           2      3      4      5      6
(%i18) factor(1 + 841 + 841  + 841  + 841  + 841  + 841
                                                 2      3      4      5     13
                                 + (1 + 841 + 841  + 841  + 841  + 841 ) 841  )
(%o18)      11078257432154474909 4002885625745985689641829516701697
                           2      3      4      5      6
(%i19) factor(1 + 842 + 842  + 842  + 842  + 842  + 842
                                                 2      3      4      5     13
                                 + (1 + 842 + 842  + 842  + 842  + 842 ) 842  )
(%o19)     4999 466369999 325955219134969033 59615894085153530774071
                           2      3      4      5      6
(%i20) factor(1 + 847 + 847  + 847  + 847  + 847  + 847
                                                 2      3      4      5     13
                                 + (1 + 847 + 847  + 847  + 847  + 847 ) 847  )
(%o20)      946493179 53247220763655775617092256248680135028654227
                           2      3      4      5      6
(%i21) factor(1 + 851 + 851  + 851  + 851  + 851  + 851
                                                 2      3      4      5     13
                                 + (1 + 851 + 851  + 851  + 851  + 851 ) 851  )
(%o21)      2058253 26652868636653660402083100889216518812214326221
                           2      3      4      5      6
(%i22) factor(1 + 856 + 856  + 856  + 856  + 856  + 856
                                                 2      3      4      5     13
                                 + (1 + 856 + 856  + 856  + 856  + 856 ) 856  )
(%o22)       60958660338351963035631843222940307518435024073025433
素数ですね。

                           2      3      4      5      6
(%i23) factor(1 + 857 + 857  + 857  + 857  + 857  + 857
                                                 2      3      4      5     13
                                 + (1 + 857 + 857  + 857  + 857  + 857 ) 857  )
(%o23)     266413108903 115796703905951 2017948431610147127683888421
                           2      3      4      5      6
(%i24) factor(1 + 860 + 860  + 860  + 860  + 860  + 860
                                                 2      3      4      5     13
                                 + (1 + 860 + 860  + 860  + 860  + 860 ) 860  )
(%o24)      1119925263259438667 59195455703301257763228139744641383
                           2      3      4      5      6
(%i25) factor(1 + 862 + 862  + 862  + 862  + 862  + 862
                                                 2      3      4      5     13
                                 + (1 + 862 + 862  + 862  + 862  + 862 ) 862  )
(%o25)     30444813488399 104249885733682393 21779404140125614791629
                           2      3      4      5      6
(%i26) factor(1 + 864 + 864  + 864  + 864  + 864  + 864
                                                 2      3      4      5     13
                                 + (1 + 864 + 864  + 864  + 864  + 864 ) 864  )
(%o26)     733 6723217 14624102012375663013633509496185785851648901
                           2      3      4      5      6
(%i27) factor(1 + 866 + 866  + 866  + 866  + 866  + 866
                                                 2      3      4      5     13
                                 + (1 + 866 + 866  + 866  + 866  + 866 ) 866  )
(%o27)     593 74446549 1701862923194292969859640637633915901105139
                           2      3      4      5      6
(%i28) factor(1 + 870 + 870  + 870  + 870  + 870  + 870
                                                 2      3      4      5     13
                                 + (1 + 870 + 870  + 870  + 870  + 870 ) 870  )
(%o28)     23887 56519 60463035185566446089491072515133664045550107
                           2      3      4      5      6
(%i29) factor(1 + 874 + 874  + 874  + 874  + 874  + 874
                                                 2      3      4      5     13
                                 + (1 + 874 + 874  + 874  + 874  + 874 ) 874  )
(%o29)    55897 851261 241585150363 67809008332669 113734994429718149
                           2      3      4      5      6
(%i30) factor(1 + 875 + 875  + 875  + 875  + 875  + 875
                                                 2      3      4      5     13
                                 + (1 + 875 + 875  + 875  + 875  + 875 ) 875  )
(%o30)      89307564059963 1013335671580962349198857032597489420027
                           2      3      4      5      6
(%i31) factor(1 + 877 + 877  + 877  + 877  + 877  + 877
                                                 2      3      4      5     13
                                 + (1 + 877 + 877  + 877  + 877  + 877 ) 877  )
(%o31)     77117207303 1293772240905359 945102790136754348663458749
                           2      3      4      5      6
(%i32) factor(1 + 879 + 879  + 879  + 879  + 879  + 879
                                                 2      3      4      5     13
                                 + (1 + 879 + 879  + 879  + 879  + 879 ) 879  )
(%o32)     20707 158519 29929234086029751445915238112017032965670637
                           2      3      4      5      6
(%i33) factor(1 + 880 + 880  + 880  + 880  + 880  + 880
                                                 2      3      4      5     13
                                 + (1 + 880 + 880  + 880  + 880  + 880 ) 880  )
(%o33)      100272512201610270288674202754041439000612419078407281
素数ですね。

                           2      3      4      5      6
(%i34) factor(1 + 882 + 882  + 882  + 882  + 882  + 882
                                                 2      3      4      5     13
                                 + (1 + 882 + 882  + 882  + 882  + 882 ) 882  )
(%o34)      95137808599731089661941 1097928517144108212621732985043
                           2      3      4      5      6
(%i35) factor(1 + 886 + 886  + 886  + 886  + 886  + 886
                                                 2      3      4      5     13
                                 + (1 + 886 + 886  + 886  + 886  + 886 ) 886  )
(%o35)      21996718223 5151569385196513439337517227893454987545261
                           2      3      4      5      6
(%i36) factor(1 + 889 + 889  + 889  + 889  + 889  + 889
                                                 2      3      4      5     13
                                 + (1 + 889 + 889  + 889  + 889  + 889 ) 889  )
(%o36)     135710344793 2894263298575417777 306598129730555314450901
                           2      3      4      5      6
(%i37) factor(1 + 890 + 890  + 890  + 890  + 890  + 890
                                                 2      3      4      5     13
                                 + (1 + 890 + 890  + 890  + 890  + 890 ) 890  )
(%o37)    1543 2288850887 10015581043836619 3474151789464286351044629
                           2      3      4      5      6
(%i38) factor(1 + 891 + 891  + 891  + 891  + 891  + 891
                                                 2      3      4      5     13
                                 + (1 + 891 + 891  + 891  + 891  + 891 ) 891  )
(%o38)      992592437461 126332592376024159508189786328891244905493
                           2      3      4      5      6
(%i39) factor(1 + 892 + 892  + 892  + 892  + 892  + 892
                                                 2      3      4      5     13
                                 + (1 + 892 + 892  + 892  + 892  + 892 ) 892  )
(%o39)    23892251 62120759 28477737178493201 3027298387591941771377
                           2      3      4      5      6
(%i40) factor(1 + 896 + 896  + 896  + 896  + 896  + 896
                                                 2      3      4      5     13
                                 + (1 + 896 + 896  + 896  + 896  + 896 ) 896  )
(%o40)  2767 5231 417173 427079 9386879 14664589 390678709117740444217
(%o40)                               a.bat
(%i41)

b.txtb.txtに追加されるものは
919,801
953,805
733,864
593,866

生成されたa.batは、
factor((902^5+902^4+902^3+902^2+902+1)*902^13+902^6+902^5+902^4+902^3+902^2+902+1);
factor((915^5+915^4+915^3+915^2+915+1)*915^13+915^6+915^5+915^4+915^3+915^2+915+1);
factor((922^5+922^4+922^3+922^2+922+1)*922^13+922^6+922^5+922^4+922^3+922^2+922+1);
factor((925^5+925^4+925^3+925^2+925+1)*925^13+925^6+925^5+925^4+925^3+925^2+925+1);
factor((926^5+926^4+926^3+926^2+926+1)*926^13+926^6+926^5+926^4+926^3+926^2+926+1);
factor((927^5+927^4+927^3+927^2+927+1)*927^13+927^6+927^5+927^4+927^3+927^2+927+1);
factor((932^5+932^4+932^3+932^2+932+1)*932^13+932^6+932^5+932^4+932^3+932^2+932+1);
factor((939^5+939^4+939^3+939^2+939+1)*939^13+939^6+939^5+939^4+939^3+939^2+939+1);
factor((941^5+941^4+941^3+941^2+941+1)*941^13+941^6+941^5+941^4+941^3+941^2+941+1);
factor((944^5+944^4+944^3+944^2+944+1)*944^13+944^6+944^5+944^4+944^3+944^2+944+1);
factor((951^5+951^4+951^3+951^2+951+1)*951^13+951^6+951^5+951^4+951^3+951^2+951+1);
factor((952^5+952^4+952^3+952^2+952+1)*952^13+952^6+952^5+952^4+952^3+952^2+952+1);
factor((956^5+956^4+956^3+956^2+956+1)*956^13+956^6+956^5+956^4+956^3+956^2+956+1);
factor((957^5+957^4+957^3+957^2+957+1)*957^13+957^6+957^5+957^4+957^3+957^2+957+1);
factor((959^5+959^4+959^3+959^2+959+1)*959^13+959^6+959^5+959^4+959^3+959^2+959+1);
factor((960^5+960^4+960^3+960^2+960+1)*960^13+960^6+960^5+960^4+960^3+960^2+960+1);
factor((962^5+962^4+962^3+962^2+962+1)*962^13+962^6+962^5+962^4+962^3+962^2+962+1);
factor((966^5+966^4+966^3+966^2+966+1)*966^13+966^6+966^5+966^4+966^3+966^2+966+1);
factor((967^5+967^4+967^3+967^2+967+1)*967^13+967^6+967^5+967^4+967^3+967^2+967+1);
factor((969^5+969^4+969^3+969^2+969+1)*969^13+969^6+969^5+969^4+969^3+969^2+969+1);
factor((971^5+971^4+971^3+971^2+971+1)*971^13+971^6+971^5+971^4+971^3+971^2+971+1);
factor((979^5+979^4+979^3+979^2+979+1)*979^13+979^6+979^5+979^4+979^3+979^2+979+1);
factor((981^5+981^4+981^3+981^2+981+1)*981^13+981^6+981^5+981^4+981^3+981^2+981+1);
factor((984^5+984^4+984^3+984^2+984+1)*984^13+984^6+984^5+984^4+984^3+984^2+984+1);
factor((985^5+985^4+985^3+985^2+985+1)*985^13+985^6+985^5+985^4+985^3+985^2+985+1);
factor((987^5+987^4+987^3+987^2+987+1)*987^13+987^6+987^5+987^4+987^3+987^2+987+1);
factor((995^5+995^4+995^3+995^2+995+1)*995^13+995^6+995^5+995^4+995^3+995^2+995+1);
factor((996^5+996^4+996^3+996^2+996+1)*996^13+996^6+996^5+996^4+996^3+996^2+996+1);
factor((999^5+999^4+999^3+999^2+999+1)*999^13+999^6+999^5+999^4+999^3+999^2+999+1);

(%i1) batch("a.bat");

read and interpret file: a.bat
                          2      3      4      5      6
(%i2) factor(1 + 902 + 902  + 902  + 902  + 902  + 902
                                                 2      3      4      5     13
                                 + (1 + 902 + 902  + 902  + 902  + 902 ) 902  )
(%o2)      56437 9407283395203 294558306895974805483822731902990893
                          2      3      4      5      6
(%i3) factor(1 + 915 + 915  + 915  + 915  + 915  + 915
                                                 2      3      4      5     13
                                 + (1 + 915 + 915  + 915  + 915  + 915 ) 915  )
(%o3)     52709 16352363 66344705280070267 3538205279773452357058669
                          2      3      4      5      6
(%i4) factor(1 + 922 + 922  + 922  + 922  + 922  + 922
                                                 2      3      4      5     13
                                 + (1 + 922 + 922  + 922  + 922  + 922 ) 922  )
(%o4)      40059431 168431080273 34395439199972381120898310566240641
                          2      3      4      5      6
(%i5) factor(1 + 925 + 925  + 925  + 925  + 925  + 925
                                                 2      3      4      5     13
                                 + (1 + 925 + 925  + 925  + 925  + 925 ) 925  )
(%o5)      103645957927 57818600718383 41058303819779827095860528861
                          2      3      4      5      6
(%i6) factor(1 + 926 + 926  + 926  + 926  + 926  + 926
                                                 2      3      4      5     13
                                 + (1 + 926 + 926  + 926  + 926  + 926 ) 926  )
(%o6)    62801 132863 496654943 143241731833 422641437959989234908179
                          2      3      4      5      6
(%i7) factor(1 + 927 + 927  + 927  + 927  + 927  + 927
                                                 2      3      4      5     13
                                 + (1 + 927 + 927  + 927  + 927  + 927 ) 927  )
(%o7)     1163 32653 13336937 505062424653304670371190639117065450711
                          2      3      4      5      6
(%i8) factor(1 + 932 + 932  + 932  + 932  + 932  + 932
                                                 2      3      4      5     13
                                 + (1 + 932 + 932  + 932  + 932  + 932 ) 932  )
(%o8)     103813 6704671 33980286787 11915064579381330447790955227813
                          2      3      4      5      6
(%i9) factor(1 + 939 + 939  + 939  + 939  + 939  + 939
                                                 2      3      4      5     13
                                 + (1 + 939 + 939  + 939  + 939  + 939 ) 939  )
(%o9)      3560720492629 74328554210047 1218287660307235597579099147
                           2      3      4      5      6
(%i10) factor(1 + 941 + 941  + 941  + 941  + 941  + 941
                                                 2      3      4      5     13
                                 + (1 + 941 + 941  + 941  + 941  + 941 ) 941  )
(%o10)     991633 4272324935349160537 79078740682798666927526766013
                           2      3      4      5      6
(%i11) factor(1 + 944 + 944  + 944  + 944  + 944  + 944
                                                 2      3      4      5     13
                                 + (1 + 944 + 944  + 944  + 944  + 944 ) 944  )
(%o11)     28787355703290798773 12324077617338928601261521072345997
                           2      3      4      5      6
(%i12) factor(1 + 951 + 951  + 951  + 951  + 951  + 951
                                                 2      3      4      5     13
                                 + (1 + 951 + 951  + 951  + 951  + 951 ) 951  )
(%o12)      405234317313136439808366913773828273907988913018603313
素数ですね。

                           2      3      4      5      6
(%i13) factor(1 + 952 + 952  + 952  + 952  + 952  + 952
                                                 2      3      4      5     13
                                 + (1 + 952 + 952  + 952  + 952  + 952 ) 952  )
(%o13)     509 739 1097891143297375397814058304333531428936261944623
                           2      3      4      5      6
(%i14) factor(1 + 956 + 956  + 956  + 956  + 956  + 956
                                                 2      3      4      5     13
                                 + (1 + 956 + 956  + 956  + 956  + 956 ) 956  )
(%o14)     499 17288868837865921 51621361706888245705988362986475327
                           2      3      4      5      6
(%i15) factor(1 + 957 + 957  + 957  + 957  + 957  + 957
                                                 2      3      4      5     13
                                 + (1 + 957 + 957  + 957  + 957  + 957 ) 957  )
(%o15)    1864853 210921505747 20059138377141197 57516332348576345719
                           2      3      4      5      6
(%i16) factor(1 + 959 + 959  + 959  + 959  + 959  + 959
                                                 2      3      4      5     13
                                 + (1 + 959 + 959  + 959  + 959  + 959 ) 959  )
(%o16)      471181279492580944441128529332409583028288503071328641
素数ですね。

                           2      3      4      5      6
(%i17) factor(1 + 960 + 960  + 960  + 960  + 960  + 960
                                                 2      3      4      5     13
                                 + (1 + 960 + 960  + 960  + 960  + 960 ) 960  )
(%o17)      53633 8951642517216589754216245908005174978549288919617
                           2      3      4      5      6
(%i18) factor(1 + 962 + 962  + 962  + 962  + 962  + 962
                                                 2      3      4      5     13
                                 + (1 + 962 + 962  + 962  + 962  + 962 ) 962  )
(%o18)     1097 454356089942552586640763032747322554523751217148999
                           2      3      4      5      6
(%i19) factor(1 + 966 + 966  + 966  + 966  + 966  + 966
                                                 2      3      4      5     13
                                 + (1 + 966 + 966  + 966  + 966  + 966 ) 966  )
(%o19)     69298620211 1188617858332466942563 6520355127507189315211
                           2      3      4      5      6
(%i20) factor(1 + 967 + 967  + 967  + 967  + 967  + 967
                                                 2      3      4      5     13
                                 + (1 + 967 + 967  + 967  + 967  + 967 ) 967  )
(%o20)    6163 20963 21101 200713803857584996865722998991803573932797
                           2      3      4      5      6
(%i21) factor(1 + 969 + 969  + 969  + 969  + 969  + 969
                                                 2      3      4      5     13
                                 + (1 + 969 + 969  + 969  + 969  + 969 ) 969  )
(%o21)     4668373 121649648401460234508984682240337096932249360297
                           2      3      4      5      6
(%i22) factor(1 + 971 + 971  + 971  + 971  + 971  + 971
                                                 2      3      4      5     13
                                 + (1 + 971 + 971  + 971  + 971  + 971 ) 971  )
(%o22)     874749697 61629108367 10932612340781261491865141634238807
                           2      3      4      5      6
(%i23) factor(1 + 979 + 979  + 979  + 979  + 979  + 979
                                                 2      3      4      5     13
                                 + (1 + 979 + 979  + 979  + 979  + 979 ) 979  )
(%o23)      9903937920589134551 68980189007683553724858004342548671
                           2      3      4      5      6
(%i24) factor(1 + 981 + 981  + 981  + 981  + 981  + 981
                                                 2      3      4      5     13
                                 + (1 + 981 + 981  + 981  + 981  + 981 ) 981  )
(%o24)   811 24007 57143 158843327 4010461079160375827136747865788289
                           2      3      4      5      6
(%i25) factor(1 + 984 + 984  + 984  + 984  + 984  + 984
                                                 2      3      4      5     13
                                 + (1 + 984 + 984  + 984  + 984  + 984 ) 984  )
(%o25)    2383 9440243792055269 10227954771251717 3254297864016016399
                           2      3      4      5      6
(%i26) factor(1 + 985 + 985  + 985  + 985  + 985  + 985
                                                 2      3      4      5     13
                                 + (1 + 985 + 985  + 985  + 985  + 985 ) 985  )
(%o26)   236867 1764313 4527079 748462319903 538548812546803038876943
                           2      3      4      5      6
(%i27) factor(1 + 987 + 987  + 987  + 987  + 987  + 987
                                                 2      3      4      5     13
                                 + (1 + 987 + 987  + 987  + 987  + 987 ) 987  )
(%o27)    20369 30273283 92251123 13904266882959835905813585417398993
                           2      3      4      5      6
(%i28) factor(1 + 995 + 995  + 995  + 995  + 995  + 995
                                                 2      3      4      5     13
                                 + (1 + 995 + 995  + 995  + 995  + 995 ) 995  )
(%o28)      914644126340573723596081191886312792662780873034016521
素数ですね。

                           2      3      4      5      6
(%i29) factor(1 + 996 + 996  + 996  + 996  + 996  + 996
                                                 2      3      4      5     13
                                 + (1 + 996 + 996  + 996  + 996  + 996 ) 996  )
(%o29)     1559 597390392926299259788959469358749240447639220302227
                           2      3      4      5      6
(%i30) factor(1 + 999 + 999  + 999  + 999  + 999  + 999
                                                 2      3      4      5     13
                                 + (1 + 999 + 999  + 999  + 999  + 999 ) 999  )
(%o30)     9289663 9967929663256170509 10617170966023304002958325803
(%o30)                               a.bat
(%i31)


b.txtb.txtに追加されるものは
509,952
499,956
811,981

生成されたa.batは、
factor((1000^5+1000^4+1000^3+1000^2+1000+1)*1000^13+1000^6+1000^5+1000^4+1000^3+1000^2+1000+1);
factor((1001^5+1001^4+1001^3+1001^2+1001+1)*1001^13+1001^6+1001^5+1001^4+1001^3+1001^2+1001+1);
factor((1010^5+1010^4+1010^3+1010^2+1010+1)*1010^13+1010^6+1010^5+1010^4+1010^3+1010^2+1010+1);
factor((1012^5+1012^4+1012^3+1012^2+1012+1)*1012^13+1012^6+1012^5+1012^4+1012^3+1012^2+1012+1);
factor((1021^5+1021^4+1021^3+1021^2+1021+1)*1021^13+1021^6+1021^5+1021^4+1021^3+1021^2+1021+1);
factor((1024^5+1024^4+1024^3+1024^2+1024+1)*1024^13+1024^6+1024^5+1024^4+1024^3+1024^2+1024+1);
factor((1025^5+1025^4+1025^3+1025^2+1025+1)*1025^13+1025^6+1025^5+1025^4+1025^3+1025^2+1025+1);
factor((1026^5+1026^4+1026^3+1026^2+1026+1)*1026^13+1026^6+1026^5+1026^4+1026^3+1026^2+1026+1);
factor((1027^5+1027^4+1027^3+1027^2+1027+1)*1027^13+1027^6+1027^5+1027^4+1027^3+1027^2+1027+1);
factor((1034^5+1034^4+1034^3+1034^2+1034+1)*1034^13+1034^6+1034^5+1034^4+1034^3+1034^2+1034+1);
factor((1037^5+1037^4+1037^3+1037^2+1037+1)*1037^13+1037^6+1037^5+1037^4+1037^3+1037^2+1037+1);
factor((1040^5+1040^4+1040^3+1040^2+1040+1)*1040^13+1040^6+1040^5+1040^4+1040^3+1040^2+1040+1);
factor((1042^5+1042^4+1042^3+1042^2+1042+1)*1042^13+1042^6+1042^5+1042^4+1042^3+1042^2+1042+1);
factor((1044^5+1044^4+1044^3+1044^2+1044+1)*1044^13+1044^6+1044^5+1044^4+1044^3+1044^2+1044+1);
factor((1050^5+1050^4+1050^3+1050^2+1050+1)*1050^13+1050^6+1050^5+1050^4+1050^3+1050^2+1050+1);
factor((1051^5+1051^4+1051^3+1051^2+1051+1)*1051^13+1051^6+1051^5+1051^4+1051^3+1051^2+1051+1);
factor((1056^5+1056^4+1056^3+1056^2+1056+1)*1056^13+1056^6+1056^5+1056^4+1056^3+1056^2+1056+1);
factor((1060^5+1060^4+1060^3+1060^2+1060+1)*1060^13+1060^6+1060^5+1060^4+1060^3+1060^2+1060+1);
factor((1061^5+1061^4+1061^3+1061^2+1061+1)*1061^13+1061^6+1061^5+1061^4+1061^3+1061^2+1061+1);
factor((1064^5+1064^4+1064^3+1064^2+1064+1)*1064^13+1064^6+1064^5+1064^4+1064^3+1064^2+1064+1);
factor((1066^5+1066^4+1066^3+1066^2+1066+1)*1066^13+1066^6+1066^5+1066^4+1066^3+1066^2+1066+1);
factor((1069^5+1069^4+1069^3+1069^2+1069+1)*1069^13+1069^6+1069^5+1069^4+1069^3+1069^2+1069+1);
factor((1070^5+1070^4+1070^3+1070^2+1070+1)*1070^13+1070^6+1070^5+1070^4+1070^3+1070^2+1070+1);
factor((1071^5+1071^4+1071^3+1071^2+1071+1)*1071^13+1071^6+1071^5+1071^4+1071^3+1071^2+1071+1);
factor((1075^5+1075^4+1075^3+1075^2+1075+1)*1075^13+1075^6+1075^5+1075^4+1075^3+1075^2+1075+1);
factor((1077^5+1077^4+1077^3+1077^2+1077+1)*1077^13+1077^6+1077^5+1077^4+1077^3+1077^2+1077+1);
factor((1079^5+1079^4+1079^3+1079^2+1079+1)*1079^13+1079^6+1079^5+1079^4+1079^3+1079^2+1079+1);
factor((1084^5+1084^4+1084^3+1084^2+1084+1)*1084^13+1084^6+1084^5+1084^4+1084^3+1084^2+1084+1);
factor((1089^5+1089^4+1089^3+1089^2+1089+1)*1089^13+1089^6+1089^5+1089^4+1089^3+1089^2+1089+1);
factor((1092^5+1092^4+1092^3+1092^2+1092+1)*1092^13+1092^6+1092^5+1092^4+1092^3+1092^2+1092+1);
factor((1094^5+1094^4+1094^3+1094^2+1094+1)*1094^13+1094^6+1094^5+1094^4+1094^3+1094^2+1094+1);
factor((1095^5+1095^4+1095^3+1095^2+1095+1)*1095^13+1095^6+1095^5+1095^4+1095^3+1095^2+1095+1);
factor((1097^5+1097^4+1097^3+1097^2+1097+1)*1097^13+1097^6+1097^5+1097^4+1097^3+1097^2+1097+1);

(%i1) batch("a.bat");

read and interpret file: a.bat
                            2       3       4       5       6
(%i2) factor(1 + 1000 + 1000  + 1000  + 1000  + 1000  + 1000
                                             2       3       4       5      13
                           + (1 + 1000 + 1000  + 1000  + 1000  + 1000 ) 1000  )
(%o2)      8342262556697314379 119991548359668909942461058812288219
                            2       3       4       5       6
(%i3) factor(1 + 1001 + 1001  + 1001  + 1001  + 1001  + 1001
                                             2       3       4       5      13
                           + (1 + 1001 + 1001  + 1001  + 1001  + 1001 ) 1001  )
(%o3)   13099 33889 2425207 25686457 1670411609 22063482291098058868913
                            2       3       4       5       6
(%i4) factor(1 + 1010 + 1010  + 1010  + 1010  + 1010  + 1010
                                             2       3       4       5      13
                           + (1 + 1010 + 1010  + 1010  + 1010  + 1010 ) 1010  )
(%o4)    18493 1308649 51521537 3353412933460099 286357487220002780321
                            2       3       4       5       6
(%i5) factor(1 + 1012 + 1012  + 1012  + 1012  + 1012  + 1012
                                             2       3       4       5      13
                           + (1 + 1012 + 1012  + 1012  + 1012  + 1012 ) 1012  )
(%o5)      50755827470386316128471 24445147917654133846528742971843
                            2       3       4       5       6
(%i6) factor(1 + 1021 + 1021  + 1021  + 1021  + 1021  + 1021
                                             2       3       4       5      13
                           + (1 + 1021 + 1021  + 1021  + 1021  + 1021 ) 1021  )
(%o6)     1991153 30022997878228494193 24340541735089937839265320517
                            2       3       4       5       6
(%i7) factor(1 + 1024 + 1024  + 1024  + 1024  + 1024  + 1024
                                             2       3       4       5      13
                           + (1 + 1024 + 1024  + 1024  + 1024  + 1024 ) 1024  )
(%o7)  1129 1487 3353617 11328271 202930927387 118520452136983842373643
                            2       3       4       5       6
(%i8) factor(1 + 1025 + 1025  + 1025  + 1025  + 1025  + 1025
                                             2       3       4       5      13
                           + (1 + 1025 + 1025  + 1025  + 1025  + 1025 ) 1025  )
(%o8)   383 14657 10018207 387446767 3866373430671127 18531210269927317
                            2       3       4       5       6
(%i9) factor(1 + 1026 + 1026  + 1026  + 1026  + 1026  + 1026
                                             2       3       4       5      13
                           + (1 + 1026 + 1026  + 1026  + 1026  + 1026 ) 1026  )
(%o9)    5861 5879 204806501 76946206151 2925969926640192172412760727
                             2       3       4       5       6
(%i10) factor(1 + 1027 + 1027  + 1027  + 1027  + 1027  + 1027
                                             2       3       4       5      13
                           + (1 + 1027 + 1027  + 1027  + 1027  + 1027 ) 1027  )
(%o10)    2767 8379364153 8451827386241 8251259107650219607881071903
                             2       3       4       5       6
(%i11) factor(1 + 1034 + 1034  + 1034  + 1034  + 1034  + 1034
                                             2       3       4       5      13
                           + (1 + 1034 + 1034  + 1034  + 1034  + 1034 ) 1034  )
(%o11)     199465355103961949671 9160568791135898516965600439529121
                             2       3       4       5       6
(%i12) factor(1 + 1037 + 1037  + 1037  + 1037  + 1037  + 1037
                                             2       3       4       5      13
                           + (1 + 1037 + 1037  + 1037  + 1037  + 1037 ) 1037  )
(%o12)   1031 11273 23661248643281895851 7000044233795522133452026481
                             2       3       4       5       6
(%i13) factor(1 + 1040 + 1040  + 1040  + 1040  + 1040  + 1040
                                             2       3       4       5      13
                           + (1 + 1040 + 1040  + 1040  + 1040  + 1040 ) 1040  )
(%o13)    204316992037 7595594352193035169 1306627065577851187784797
                             2       3       4       5       6
(%i14) factor(1 + 1042 + 1042  + 1042  + 1042  + 1042  + 1042
                                             2       3       4       5      13
                           + (1 + 1042 + 1042  + 1042  + 1042  + 1042 ) 1042  )
(%o14)     43419529 81863797859844444416281 590553073317618545658607
                             2       3       4       5       6
(%i15) factor(1 + 1044 + 1044  + 1044  + 1044  + 1044  + 1044
                                             2       3       4       5      13
                           + (1 + 1044 + 1044  + 1044  + 1044  + 1044 ) 1044  )
(%o15)     5584464232827509083 389084251288323553244845896508227007
                             2       3       4       5       6
(%i16) factor(1 + 1050 + 1050  + 1050  + 1050  + 1050  + 1050
                                             2       3       4       5      13
                           + (1 + 1050 + 1050  + 1050  + 1050  + 1050 ) 1050  )
(%o16)    3373 1294597 789039157 699152154878834653646489593493817403
                             2       3       4       5       6
(%i17) factor(1 + 1051 + 1051  + 1051  + 1051  + 1051  + 1051
                                             2       3       4       5      13
                           + (1 + 1051 + 1051  + 1051  + 1051  + 1051 ) 1051  )
(%o17)      2450542875461512815269814041462941463153953111636214713
素数ですね。

                             2       3       4       5       6
(%i18) factor(1 + 1056 + 1056  + 1056  + 1056  + 1056  + 1056
                                             2       3       4       5      13
                           + (1 + 1056 + 1056  + 1056  + 1056  + 1056 ) 1056  )
(%o18)   7821287 156359663827 1875096173908963 1163953117741045953359
                             2       3       4       5       6
(%i19) factor(1 + 1060 + 1060  + 1060  + 1060  + 1060  + 1060
                                             2       3       4       5      13
                           + (1 + 1060 + 1060  + 1060  + 1060  + 1060 ) 1060  )
(%o19)      2857034468449092887221915503076527158913618601502700661
素数ですね。

                             2       3       4       5       6
(%i20) factor(1 + 1061 + 1061  + 1061  + 1061  + 1061  + 1061
                                             2       3       4       5      13
                           + (1 + 1061 + 1061  + 1061  + 1061  + 1061 ) 1061  )
(%o20)     373 7790720018856514885821847373842913777733538426719361
                             2       3       4       5       6
(%i21) factor(1 + 1064 + 1064  + 1064  + 1064  + 1064  + 1064
                                             2       3       4       5      13
                           + (1 + 1064 + 1064  + 1064  + 1064  + 1064 ) 1064  )
(%o21)  3011 5749 242867 4192887201889 205840998758921 842637989138213
                             2       3       4       5       6
(%i22) factor(1 + 1066 + 1066  + 1066  + 1066  + 1066  + 1066
                                             2       3       4       5      13
                           + (1 + 1066 + 1066  + 1066  + 1066  + 1066 ) 1066  )
(%o22)    4981579 7756053493 188081279835571 435194995249570389319579
                             2       3       4       5       6
(%i23) factor(1 + 1069 + 1069  + 1069  + 1069  + 1069  + 1069
                                             2       3       4       5      13
                           + (1 + 1069 + 1069  + 1069  + 1069  + 1069 ) 1069  )
(%o23)    3333257 366978538391161094200949 2719541433171793840139017
                             2       3       4       5       6
(%i24) factor(1 + 1070 + 1070  + 1070  + 1070  + 1070  + 1070
                                             2       3       4       5      13
                           + (1 + 1070 + 1070  + 1070  + 1070  + 1070 ) 1070  )
(%o24)     808459 45007675103 92975707310332772923010680841500219823
                             2       3       4       5       6
(%i25) factor(1 + 1071 + 1071  + 1071  + 1071  + 1071  + 1071
                                             2       3       4       5      13
                           + (1 + 1071 + 1071  + 1071  + 1071  + 1071 ) 1071  )
(%o25)      3440457268265918413876762770548096006398878767428308193
素数ですね。

                             2       3       4       5       6
(%i26) factor(1 + 1075 + 1075  + 1075  + 1075  + 1075  + 1075
                                             2       3       4       5      13
                           + (1 + 1075 + 1075  + 1075  + 1075  + 1075 ) 1075  )
(%o26)     1630804729 2256080424512389126824952446120183324014805169
                             2       3       4       5       6
(%i27) factor(1 + 1077 + 1077  + 1077  + 1077  + 1077  + 1077
                                             2       3       4       5      13
                           + (1 + 1077 + 1077  + 1077  + 1077  + 1077 ) 1077  )
(%o27)    42443 34225910776968474293 2618936713878795345583673521027
                             2       3       4       5       6
(%i28) factor(1 + 1079 + 1079  + 1079  + 1079  + 1079  + 1079
                                             2       3       4       5      13
                           + (1 + 1079 + 1079  + 1079  + 1079  + 1079 ) 1079  )
(%o28)     983 87342791863 45815043210607793119262287584387492850049
                             2       3       4       5       6
(%i29) factor(1 + 1084 + 1084  + 1084  + 1084  + 1084  + 1084
                                             2       3       4       5      13
                           + (1 + 1084 + 1084  + 1084  + 1084  + 1084 ) 1084  )
(%o29)     2383 1793923267882893576839791643343125950406312947750627
                             2       3       4       5       6
(%i30) factor(1 + 1089 + 1089  + 1089  + 1089  + 1089  + 1089
                                             2       3       4       5      13
                           + (1 + 1089 + 1089  + 1089  + 1089  + 1089 ) 1089  )
(%o30)   2053 93383 1643164465548999479 14742224289207836853124908841
                             2       3       4       5       6
(%i31) factor(1 + 1092 + 1092  + 1092  + 1092  + 1092  + 1092
                                             2       3       4       5      13
                           + (1 + 1092 + 1092  + 1092  + 1092  + 1092 ) 1092  )
(%o31)     314051592541280453 15538331349315772054754164406381940881
                             2       3       4       5       6
(%i32) factor(1 + 1094 + 1094  + 1094  + 1094  + 1094  + 1094
                                             2       3       4       5      13
                           + (1 + 1094 + 1094  + 1094  + 1094  + 1094 ) 1094  )
(%o32)     40610784991311303419451313 124184551073674896449450121187
                             2       3       4       5       6
(%i33) factor(1 + 1095 + 1095  + 1095  + 1095  + 1095  + 1095
                                             2       3       4       5      13
                           + (1 + 1095 + 1095  + 1095  + 1095  + 1095 ) 1095  )
(%o33)     1146252348859 4472709621799363179041865852224333096437219
                             2       3       4       5       6
(%i34) factor(1 + 1097 + 1097  + 1097  + 1097  + 1097  + 1097
                                             2       3       4       5      13
                           + (1 + 1097 + 1097  + 1097  + 1097  + 1097 ) 1097  )
(%o34)    359675549 4160967373671593 3540056097380081658372371286169
(%o34)                               a.bat
(%i35)


factor((1102^5+1102^4+1102^3+1102^2+1102+1)*1102^13+1102^6+1102^5+1102^4+1102^3+1102^2+1102+1);
factor((1105^5+1105^4+1105^3+1105^2+1105+1)*1105^13+1105^6+1105^5+1105^4+1105^3+1105^2+1105+1);
factor((1109^5+1109^4+1109^3+1109^2+1109+1)*1109^13+1109^6+1109^5+1109^4+1109^3+1109^2+1109+1);
factor((1111^5+1111^4+1111^3+1111^2+1111+1)*1111^13+1111^6+1111^5+1111^4+1111^3+1111^2+1111+1);
factor((1115^5+1115^4+1115^3+1115^2+1115+1)*1115^13+1115^6+1115^5+1115^4+1115^3+1115^2+1115+1);
factor((1117^5+1117^4+1117^3+1117^2+1117+1)*1117^13+1117^6+1117^5+1117^4+1117^3+1117^2+1117+1);
factor((1122^5+1122^4+1122^3+1122^2+1122+1)*1122^13+1122^6+1122^5+1122^4+1122^3+1122^2+1122+1);
factor((1126^5+1126^4+1126^3+1126^2+1126+1)*1126^13+1126^6+1126^5+1126^4+1126^3+1126^2+1126+1);
factor((1127^5+1127^4+1127^3+1127^2+1127+1)*1127^13+1127^6+1127^5+1127^4+1127^3+1127^2+1127+1);
factor((1136^5+1136^4+1136^3+1136^2+1136+1)*1136^13+1136^6+1136^5+1136^4+1136^3+1136^2+1136+1);
factor((1137^5+1137^4+1137^3+1137^2+1137+1)*1137^13+1137^6+1137^5+1137^4+1137^3+1137^2+1137+1);
factor((1142^5+1142^4+1142^3+1142^2+1142+1)*1142^13+1142^6+1142^5+1142^4+1142^3+1142^2+1142+1);
factor((1146^5+1146^4+1146^3+1146^2+1146+1)*1146^13+1146^6+1146^5+1146^4+1146^3+1146^2+1146+1);
factor((1149^5+1149^4+1149^3+1149^2+1149+1)*1149^13+1149^6+1149^5+1149^4+1149^3+1149^2+1149+1);
factor((1152^5+1152^4+1152^3+1152^2+1152+1)*1152^13+1152^6+1152^5+1152^4+1152^3+1152^2+1152+1);
factor((1155^5+1155^4+1155^3+1155^2+1155+1)*1155^13+1155^6+1155^5+1155^4+1155^3+1155^2+1155+1);
factor((1156^5+1156^4+1156^3+1156^2+1156+1)*1156^13+1156^6+1156^5+1156^4+1156^3+1156^2+1156+1);
factor((1159^5+1159^4+1159^3+1159^2+1159+1)*1159^13+1159^6+1159^5+1159^4+1159^3+1159^2+1159+1);
factor((1161^5+1161^4+1161^3+1161^2+1161+1)*1161^13+1161^6+1161^5+1161^4+1161^3+1161^2+1161+1);
factor((1165^5+1165^4+1165^3+1165^2+1165+1)*1165^13+1165^6+1165^5+1165^4+1165^3+1165^2+1165+1);
factor((1166^5+1166^4+1166^3+1166^2+1166+1)*1166^13+1166^6+1166^5+1166^4+1166^3+1166^2+1166+1);
factor((1169^5+1169^4+1169^3+1169^2+1169+1)*1169^13+1169^6+1169^5+1169^4+1169^3+1169^2+1169+1);
factor((1172^5+1172^4+1172^3+1172^2+1172+1)*1172^13+1172^6+1172^5+1172^4+1172^3+1172^2+1172+1);
factor((1175^5+1175^4+1175^3+1175^2+1175+1)*1175^13+1175^6+1175^5+1175^4+1175^3+1175^2+1175+1);
factor((1176^5+1176^4+1176^3+1176^2+1176+1)*1176^13+1176^6+1176^5+1176^4+1176^3+1176^2+1176+1);
factor((1179^5+1179^4+1179^3+1179^2+1179+1)*1179^13+1179^6+1179^5+1179^4+1179^3+1179^2+1179+1);
factor((1180^5+1180^4+1180^3+1180^2+1180+1)*1180^13+1180^6+1180^5+1180^4+1180^3+1180^2+1180+1);
factor((1186^5+1186^4+1186^3+1186^2+1186+1)*1186^13+1186^6+1186^5+1186^4+1186^3+1186^2+1186+1);
factor((1196^5+1196^4+1196^3+1196^2+1196+1)*1196^13+1196^6+1196^5+1196^4+1196^3+1196^2+1196+1);
factor((1199^5+1199^4+1199^3+1199^2+1199+1)*1199^13+1199^6+1199^5+1199^4+1199^3+1199^2+1199+1);

(%i1) batch("a.bat");

read and interpret file: a.bat
                            2       3       4       5       6
(%i2) factor(1 + 1102 + 1102  + 1102  + 1102  + 1102  + 1102
                                             2       3       4       5      13
                           + (1 + 1102 + 1102  + 1102  + 1102  + 1102 ) 1102  )
(%o2)      481067 11952463067579558354487596404864845560185804390769
                            2       3       4       5       6
(%i3) factor(1 + 1105 + 1105  + 1105  + 1105  + 1105  + 1105
                                             2       3       4       5      13
                           + (1 + 1105 + 1105  + 1105  + 1105  + 1105 ) 1105  )
(%o3)     38239 799363055108369 197543894027352585652253754143521091
                            2       3       4       5       6
(%i4) factor(1 + 1109 + 1109  + 1109  + 1109  + 1109  + 1109
                                             2       3       4       5      13
                           + (1 + 1109 + 1109  + 1109  + 1109  + 1109 ) 1109  )
(%o4)     269 6011 3985296231013048189502690386483126685163336776299
                            2       3       4       5       6
(%i5) factor(1 + 1111 + 1111  + 1111  + 1111  + 1111  + 1111
                                             2       3       4       5      13
                           + (1 + 1111 + 1111  + 1111  + 1111  + 1111 ) 1111  )
(%o5)       6656472483938298229233466827719158155044418748632170353
素数ですね。

                            2       3       4       5       6
(%i6) factor(1 + 1115 + 1115  + 1115  + 1115  + 1115  + 1115
                                             2       3       4       5      13
                           + (1 + 1115 + 1115  + 1115  + 1115  + 1115 ) 1115  )
(%o6)    5662051 1480287342803 30267483010470203 27992467299924703699
                            2       3       4       5       6
(%i7) factor(1 + 1117 + 1117  + 1117  + 1117  + 1117  + 1117
                                             2       3       4       5      13
                           + (1 + 1117 + 1117  + 1117  + 1117  + 1117 ) 1117  )
(%o7)     8329 61507 974259444884331077533 14694474614233270782893707
                            2       3       4       5       6
(%i8) factor(1 + 1122 + 1122  + 1122  + 1122  + 1122  + 1122
                                             2       3       4       5      13
                           + (1 + 1122 + 1122  + 1122  + 1122  + 1122 ) 1122  )
(%o8)      120943 65717030601316558008091853133730820091864885198481
                            2       3       4       5       6
(%i9) factor(1 + 1126 + 1126  + 1126  + 1126  + 1126  + 1126
                                             2       3       4       5      13
                           + (1 + 1126 + 1126  + 1126  + 1126  + 1126 ) 1126  )
(%o9)    2591 6319889 837166261 10746315467 57521305069790812105975451
                             2       3       4       5       6
(%i10) factor(1 + 1127 + 1127  + 1127  + 1127  + 1127  + 1127
                                             2       3       4       5      13
                           + (1 + 1127 + 1127  + 1127  + 1127  + 1127 ) 1127  )
(%o10)      8610255014222725014294019788432794352660209183126771473
素数ですね。

                             2       3       4       5       6
(%i11) factor(1 + 1136 + 1136  + 1136  + 1136  + 1136  + 1136
                                             2       3       4       5      13
                           + (1 + 1136 + 1136  + 1136  + 1136  + 1136 ) 1136  )
(%o11)      9935561927003355729800277711447542601791057740171715953
素数ですね。

                             2       3       4       5       6
(%i12) factor(1 + 1137 + 1137  + 1137  + 1137  + 1137  + 1137
                                             2       3       4       5      13
                           + (1 + 1137 + 1137  + 1137  + 1137  + 1137 ) 1137  )
(%o12)     3463 2914862051116257605065592820576262440412095405693931
                             2       3       4       5       6
(%i13) factor(1 + 1142 + 1142  + 1142  + 1142  + 1142  + 1142
                                             2       3       4       5      13
                           + (1 + 1142 + 1142  + 1142  + 1142  + 1142 ) 1142  )
(%o13)    1045758315043991 856050552859693297 12202240805872079183909
                             2       3       4       5       6
(%i14) factor(1 + 1146 + 1146  + 1146  + 1146  + 1146  + 1146
                                             2       3       4       5      13
                           + (1 + 1146 + 1146  + 1146  + 1146  + 1146 ) 1146  )
(%o14)  4373 38651 3572879 8940251 945678971681 2278506562467232210109
                             2       3       4       5       6
(%i15) factor(1 + 1149 + 1149  + 1149  + 1149  + 1149  + 1149
                                             2       3       4       5      13
                           + (1 + 1149 + 1149  + 1149  + 1149  + 1149 ) 1149  )
(%o15)     12193788473525784956706396172035420211940706433028408101
素数ですね。

                             2       3       4       5       6
(%i16) factor(1 + 1152 + 1152  + 1152  + 1152  + 1152  + 1152
                                             2       3       4       5      13
                           + (1 + 1152 + 1152  + 1152  + 1152  + 1152 ) 1152  )
(%o16)    140593 944220595243117 96268590220759842442492062011814133
                             2       3       4       5       6
(%i17) factor(1 + 1155 + 1155  + 1155  + 1155  + 1155  + 1155
                                             2       3       4       5      13
                           + (1 + 1155 + 1155  + 1155  + 1155  + 1155 ) 1155  )
(%o17)  29947 5595949 219402203 1650959838222203 220621243727715930703
                             2       3       4       5       6
(%i18) factor(1 + 1156 + 1156  + 1156  + 1156  + 1156  + 1156
                                             2       3       4       5      13
                           + (1 + 1156 + 1156  + 1156  + 1156  + 1156 ) 1156  )
(%o18)    12810271 1061838691189252116196217939850392711410521686923
                             2       3       4       5       6
(%i19) factor(1 + 1159 + 1159  + 1159  + 1159  + 1159  + 1159
                                             2       3       4       5      13
                           + (1 + 1159 + 1159  + 1159  + 1159  + 1159 ) 1159  )
(%o19)     14252029870802170075063341932746370069219934707178703441
素数ですね。

                             2       3       4       5       6
(%i20) factor(1 + 1161 + 1161  + 1161  + 1161  + 1161  + 1161
                                             2       3       4       5      13
                           + (1 + 1161 + 1161  + 1161  + 1161  + 1161 ) 1161  )
(%o20)     14701247387557997813632454371034630829281629410971009053
素数ですね。

                             2       3       4       5       6
(%i21) factor(1 + 1165 + 1165  + 1165  + 1165  + 1165  + 1165
                                             2       3       4       5      13
                           + (1 + 1165 + 1165  + 1165  + 1165  + 1165 ) 1165  )
(%o21)    421 18169 2044685328796362765438727951942272357716157071209
                             2       3       4       5       6
(%i22) factor(1 + 1166 + 1166  + 1166  + 1166  + 1166  + 1166
                                             2       3       4       5      13
                           + (1 + 1166 + 1166  + 1166  + 1166  + 1166 ) 1166  )
(%o22)    10337 28973555126617995098879 53033492569652263866982563301
                             2       3       4       5       6
(%i23) factor(1 + 1169 + 1169  + 1169  + 1169  + 1169  + 1169
                                             2       3       4       5      13
                           + (1 + 1169 + 1169  + 1169  + 1169  + 1169 ) 1169  )
(%o23)    78839 322039 655214187735263381625017812400792761270309661
                             2       3       4       5       6
(%i24) factor(1 + 1172 + 1172  + 1172  + 1172  + 1172  + 1172
                                             2       3       4       5      13
                           + (1 + 1172 + 1172  + 1172  + 1172  + 1172 ) 1172  )
(%o24)   8933 609233 26115071 775484959 158060147784794167469332299473
                             2       3       4       5       6
(%i25) factor(1 + 1175 + 1175  + 1175  + 1175  + 1175  + 1175
                                             2       3       4       5      13
                           + (1 + 1175 + 1175  + 1175  + 1175  + 1175 ) 1175  )
(%o25)   1867 208609 504211749329133689 92888307106223294277526077803
                             2       3       4       5       6
(%i26) factor(1 + 1176 + 1176  + 1176  + 1176  + 1176  + 1176
                                             2       3       4       5      13
                           + (1 + 1176 + 1176  + 1176  + 1176  + 1176 ) 1176  )
(%o26)    174128347 83808503268943 1269239807359647372666572782880053
                             2       3       4       5       6
(%i27) factor(1 + 1179 + 1179  + 1179  + 1179  + 1179  + 1179
                                             2       3       4       5      13
                           + (1 + 1179 + 1179  + 1179  + 1179  + 1179 ) 1179  )
(%o27)    164267 12189984951139 9684194674461520484973416981140408217
                             2       3       4       5       6
(%i28) factor(1 + 1180 + 1180  + 1180  + 1180  + 1180  + 1180
                                             2       3       4       5      13
                           + (1 + 1180 + 1180  + 1180  + 1180  + 1180 ) 1180  )
(%o28)    251 85083709483151 921985723373840358158953021765966702681
                             2       3       4       5       6
(%i29) factor(1 + 1186 + 1186  + 1186  + 1186  + 1186  + 1186
                                             2       3       4       5      13
                           + (1 + 1186 + 1186  + 1186  + 1186  + 1186 ) 1186  )
(%o29)     21572016370415978315025097916112808927154805794825455903
素数ですね。

                             2       3       4       5       6
(%i30) factor(1 + 1196 + 1196  + 1196  + 1196  + 1196  + 1196
                                             2       3       4       5      13
                           + (1 + 1196 + 1196  + 1196  + 1196  + 1196 ) 1196  )
(%o30)    5160719 5562563 874056190253124900437576628550473843273169
                             2       3       4       5       6
(%i31) factor(1 + 1199 + 1199  + 1199  + 1199  + 1199  + 1199
                                             2       3       4       5      13
                           + (1 + 1199 + 1199  + 1199  + 1199  + 1199 ) 1199  )
(%o31)  3691 6781 282287 14710067 252559868140537492441616544348808939
(%o31)                               a.bat
(%i32)
factor((1202^5+1202^4+1202^3+1202^2+1202+1)*1202^13+1202^6+1202^5+1202^4+1202^3+1202^2+1202+1);
factor((1204^5+1204^4+1204^3+1204^2+1204+1)*1204^13+1204^6+1204^5+1204^4+1204^3+1204^2+1204+1);
factor((1205^5+1205^4+1205^3+1205^2+1205+1)*1205^13+1205^6+1205^5+1205^4+1205^3+1205^2+1205+1);
factor((1209^5+1209^4+1209^3+1209^2+1209+1)*1209^13+1209^6+1209^5+1209^4+1209^3+1209^2+1209+1);
factor((1212^5+1212^4+1212^3+1212^2+1212+1)*1212^13+1212^6+1212^5+1212^4+1212^3+1212^2+1212+1);
factor((1215^5+1215^4+1215^3+1215^2+1215+1)*1215^13+1215^6+1215^5+1215^4+1215^3+1215^2+1215+1);
factor((1219^5+1219^4+1219^3+1219^2+1219+1)*1219^13+1219^6+1219^5+1219^4+1219^3+1219^2+1219+1);
factor((1221^5+1221^4+1221^3+1221^2+1221+1)*1221^13+1221^6+1221^5+1221^4+1221^3+1221^2+1221+1);
factor((1224^5+1224^4+1224^3+1224^2+1224+1)*1224^13+1224^6+1224^5+1224^4+1224^3+1224^2+1224+1);
factor((1225^5+1225^4+1225^3+1225^2+1225+1)*1225^13+1225^6+1225^5+1225^4+1225^3+1225^2+1225+1);
factor((1227^5+1227^4+1227^3+1227^2+1227+1)*1227^13+1227^6+1227^5+1227^4+1227^3+1227^2+1227+1);
factor((1229^5+1229^4+1229^3+1229^2+1229+1)*1229^13+1229^6+1229^5+1229^4+1229^3+1229^2+1229+1);
factor((1230^5+1230^4+1230^3+1230^2+1230+1)*1230^13+1230^6+1230^5+1230^4+1230^3+1230^2+1230+1);
factor((1231^5+1231^4+1231^3+1231^2+1231+1)*1231^13+1231^6+1231^5+1231^4+1231^3+1231^2+1231+1);
factor((1232^5+1232^4+1232^3+1232^2+1232+1)*1232^13+1232^6+1232^5+1232^4+1232^3+1232^2+1232+1);
factor((1241^5+1241^4+1241^3+1241^2+1241+1)*1241^13+1241^6+1241^5+1241^4+1241^3+1241^2+1241+1);
factor((1242^5+1242^4+1242^3+1242^2+1242+1)*1242^13+1242^6+1242^5+1242^4+1242^3+1242^2+1242+1);
factor((1244^5+1244^4+1244^3+1244^2+1244+1)*1244^13+1244^6+1244^5+1244^4+1244^3+1244^2+1244+1);
factor((1245^5+1245^4+1245^3+1245^2+1245+1)*1245^13+1245^6+1245^5+1245^4+1245^3+1245^2+1245+1);
factor((1251^5+1251^4+1251^3+1251^2+1251+1)*1251^13+1251^6+1251^5+1251^4+1251^3+1251^2+1251+1);
factor((1254^5+1254^4+1254^3+1254^2+1254+1)*1254^13+1254^6+1254^5+1254^4+1254^3+1254^2+1254+1);
factor((1256^5+1256^4+1256^3+1256^2+1256+1)*1256^13+1256^6+1256^5+1256^4+1256^3+1256^2+1256+1);
factor((1257^5+1257^4+1257^3+1257^2+1257+1)*1257^13+1257^6+1257^5+1257^4+1257^3+1257^2+1257+1);
factor((1259^5+1259^4+1259^3+1259^2+1259+1)*1259^13+1259^6+1259^5+1259^4+1259^3+1259^2+1259+1);
factor((1266^5+1266^4+1266^3+1266^2+1266+1)*1266^13+1266^6+1266^5+1266^4+1266^3+1266^2+1266+1);
factor((1267^5+1267^4+1267^3+1267^2+1267+1)*1267^13+1267^6+1267^5+1267^4+1267^3+1267^2+1267+1);
factor((1270^5+1270^4+1270^3+1270^2+1270+1)*1270^13+1270^6+1270^5+1270^4+1270^3+1270^2+1270+1);
factor((1271^5+1271^4+1271^3+1271^2+1271+1)*1271^13+1271^6+1271^5+1271^4+1271^3+1271^2+1271+1);
factor((1276^5+1276^4+1276^3+1276^2+1276+1)*1276^13+1276^6+1276^5+1276^4+1276^3+1276^2+1276+1);
factor((1279^5+1279^4+1279^3+1279^2+1279+1)*1279^13+1279^6+1279^5+1279^4+1279^3+1279^2+1279+1);
factor((1280^5+1280^4+1280^3+1280^2+1280+1)*1280^13+1280^6+1280^5+1280^4+1280^3+1280^2+1280+1);
factor((1282^5+1282^4+1282^3+1282^2+1282+1)*1282^13+1282^6+1282^5+1282^4+1282^3+1282^2+1282+1);
factor((1287^5+1287^4+1287^3+1287^2+1287+1)*1287^13+1287^6+1287^5+1287^4+1287^3+1287^2+1287+1);
factor((1289^5+1289^4+1289^3+1289^2+1289+1)*1289^13+1289^6+1289^5+1289^4+1289^3+1289^2+1289+1);
factor((1290^5+1290^4+1290^3+1290^2+1290+1)*1290^13+1290^6+1290^5+1290^4+1290^3+1290^2+1290+1);
factor((1291^5+1291^4+1291^3+1291^2+1291+1)*1291^13+1291^6+1291^5+1291^4+1291^3+1291^2+1291+1);
factor((1295^5+1295^4+1295^3+1295^2+1295+1)*1295^13+1295^6+1295^5+1295^4+1295^3+1295^2+1295+1);
factor((1297^5+1297^4+1297^3+1297^2+1297+1)*1297^13+1297^6+1297^5+1297^4+1297^3+1297^2+1297+1);

(%i1) batch("a.bat");

read and interpret file: a.bat
                            2       3       4       5       6
(%i2) factor(1 + 1202 + 1202  + 1202  + 1202  + 1202  + 1202
                                             2       3       4       5      13
                           + (1 + 1202 + 1202  + 1202  + 1202  + 1202 ) 1202  )
(%o2)   317 8689 35428069 48863429 5175267457 1112624445493867685288803
                            2       3       4       5       6
(%i3) factor(1 + 1204 + 1204  + 1204  + 1204  + 1204  + 1204
                                             2       3       4       5      13
                           + (1 + 1204 + 1204  + 1204  + 1204  + 1204 ) 1204  )
(%o3)     2081 62597888345276747447 217173015082678261745303706952003
                            2       3       4       5       6
(%i4) factor(1 + 1205 + 1205  + 1205  + 1205  + 1205  + 1205
                                             2       3       4       5      13
                           + (1 + 1205 + 1205  + 1205  + 1205  + 1205 ) 1205  )
(%o4)  787 1543 17029 6513121 1784985401 119446598144234697755218501349
                            2       3       4       5       6
(%i5) factor(1 + 1209 + 1209  + 1209  + 1209  + 1209  + 1209
                                             2       3       4       5      13
                           + (1 + 1209 + 1209  + 1209  + 1209  + 1209 ) 1209  )
(%o5)   331 130051 230341 6266719343 490545842450572815681516989495447
                            2       3       4       5       6
(%i6) factor(1 + 1212 + 1212  + 1212  + 1212  + 1212  + 1212
                                             2       3       4       5      13
                           + (1 + 1212 + 1212  + 1212  + 1212  + 1212 ) 1212  )
(%o6)    9839 1736353951 41948858551 5742722114747 7744233940782672241
                            2       3       4       5       6
(%i7) factor(1 + 1215 + 1215  + 1215  + 1215  + 1215  + 1215
                                             2       3       4       5      13
                           + (1 + 1215 + 1215  + 1215  + 1215  + 1215 ) 1215  )
(%o7)     1493 6206177 3596223120195697751858372538218157234011860381
                            2       3       4       5       6
(%i8) factor(1 + 1219 + 1219  + 1219  + 1219  + 1219  + 1219
                                             2       3       4       5      13
                           + (1 + 1219 + 1219  + 1219  + 1219  + 1219 ) 1219  )
(%o8)     14929 422141 5609638380508109081360447676963945941439872429
                            2       3       4       5       6
(%i9) factor(1 + 1221 + 1221  + 1221  + 1221  + 1221  + 1221
                                             2       3       4       5      13
                           + (1 + 1221 + 1221  + 1221  + 1221  + 1221 ) 1221  )
(%o9)   137077 24652879 147639539 10965851080318007 6655191013348804627
                             2       3       4       5       6
(%i10) factor(1 + 1224 + 1224  + 1224  + 1224  + 1224  + 1224
                                             2       3       4       5      13
                           + (1 + 1224 + 1224  + 1224  + 1224  + 1224 ) 1224  )
(%o10)  449 1868549 81244801397 328082803591 1701729785349592660350263
                             2       3       4       5       6
(%i11) factor(1 + 1225 + 1225  + 1225  + 1225  + 1225  + 1225
                                             2       3       4       5      13
                           + (1 + 1225 + 1225  + 1225  + 1225  + 1225 ) 1225  )
(%o11)    20045832419 65826937357 29266886437576807467219893185173947
                             2       3       4       5       6
(%i12) factor(1 + 1227 + 1227  + 1227  + 1227  + 1227  + 1227
                                             2       3       4       5      13
                           + (1 + 1227 + 1227  + 1227  + 1227  + 1227 ) 1227  )
(%o12)    112438903655249 353703713374148536644103749140223016203977
                             2       3       4       5       6
(%i13) factor(1 + 1229 + 1229  + 1229  + 1229  + 1229  + 1229
                                             2       3       4       5      13
                           + (1 + 1229 + 1229  + 1229  + 1229  + 1229 ) 1229  )
(%o13)     40953159048662295927229320417711349905712937178914465221
素数ですね。

                             2       3       4       5       6
(%i14) factor(1 + 1230 + 1230  + 1230  + 1230  + 1230  + 1230
                                             2       3       4       5      13
                           + (1 + 1230 + 1230  + 1230  + 1230  + 1230 ) 1230  )
(%o14)     41557100106187339802977556717335217782530373588102091131
素数ですね。

                             2       3       4       5       6
(%i15) factor(1 + 1231 + 1231  + 1231  + 1231  + 1231  + 1231
                                             2       3       4       5      13
                           + (1 + 1231 + 1231  + 1231  + 1231  + 1231 ) 1231  )
(%o15) 5011 61339 104149 515693 175258853962411 14575064718580589722451
                             2       3       4       5       6
(%i16) factor(1 + 1232 + 1232  + 1232  + 1232  + 1232  + 1232
                                             2       3       4       5      13
                           + (1 + 1232 + 1232  + 1232  + 1232  + 1232 ) 1232  )
(%o16)    10938298823 49923354080924071247 78359536159621930126956073
                             2       3       4       5       6
(%i17) factor(1 + 1241 + 1241  + 1241  + 1241  + 1241  + 1241
                                             2       3       4       5      13
                           + (1 + 1241 + 1241  + 1241  + 1241  + 1241 ) 1241  )
(%o17)   647 1009 16376125439 4562843361814596310757601801309832355509
                             2       3       4       5       6
(%i18) factor(1 + 1242 + 1242  + 1242  + 1242  + 1242  + 1242
                                             2       3       4       5      13
                           + (1 + 1242 + 1242  + 1242  + 1242  + 1242 ) 1242  )
(%o18)    146419367 338018145328146172161390474072371650242383027729
                             2       3       4       5       6
(%i19) factor(1 + 1244 + 1244  + 1244  + 1244  + 1244  + 1244
                                             2       3       4       5      13
                           + (1 + 1244 + 1244  + 1244  + 1244  + 1244 ) 1244  )
(%o19)   971 1014521 9341771041 5536134187246050008916329816491348351
                             2       3       4       5       6
(%i20) factor(1 + 1245 + 1245  + 1245  + 1245  + 1245  + 1245
                                             2       3       4       5      13
                           + (1 + 1245 + 1245  + 1245  + 1245  + 1245 ) 1245  )
(%o20)    1153 44829922652424043093290688873812628874388443333709157
                             2       3       4       5       6
(%i21) factor(1 + 1251 + 1251  + 1251  + 1251  + 1251  + 1251
                                             2       3       4       5      13
                           + (1 + 1251 + 1251  + 1251  + 1251  + 1251 ) 1251  )
(%o21)    32727209 1722145738102570157900575065875194365145879087457
                             2       3       4       5       6
(%i22) factor(1 + 1254 + 1254  + 1254  + 1254  + 1254  + 1254
                                             2       3       4       5      13
                           + (1 + 1254 + 1254  + 1254  + 1254  + 1254 ) 1254  )
(%o22)    2074643 8338417317237610997 3401536383837288040465053889501
                             2       3       4       5       6
(%i23) factor(1 + 1256 + 1256  + 1256  + 1256  + 1256  + 1256
                                             2       3       4       5      13
                           + (1 + 1256 + 1256  + 1256  + 1256  + 1256 ) 1256  )
(%o23)   112771 199081 2697318168265560790548815269115100745038656683
                             2       3       4       5       6
(%i24) factor(1 + 1257 + 1257  + 1257  + 1257  + 1257  + 1257
                                             2       3       4       5      13
                           + (1 + 1257 + 1257  + 1257  + 1257  + 1257 ) 1257  )
(%o24)   162641 1205791568828093860446349 313240824100968308848776257
                             2       3       4       5       6
(%i25) factor(1 + 1259 + 1259  + 1259  + 1259  + 1259  + 1259
                                             2       3       4       5      13
                           + (1 + 1259 + 1259  + 1259  + 1259  + 1259 ) 1259  )
(%o25)   12741023 391422953 12675282346894920791892119990845674925039
                             2       3       4       5       6
(%i26) factor(1 + 1266 + 1266  + 1266  + 1266  + 1266  + 1266
                                             2       3       4       5      13
                           + (1 + 1266 + 1266  + 1266  + 1266  + 1266 ) 1266  )
(%o26) 1823 2389 64171 71993 231317 15007571958812309138289120380238659
                             2       3       4       5       6
(%i27) factor(1 + 1267 + 1267  + 1267  + 1267  + 1267  + 1267
                                             2       3       4       5      13
                           + (1 + 1267 + 1267  + 1267  + 1267  + 1267 ) 1267  )
(%o27)    1999 71003416267678976318795353 499148692763078942828609119
                             2       3       4       5       6
(%i28) factor(1 + 1270 + 1270  + 1270  + 1270  + 1270  + 1270
                                             2       3       4       5      13
                           + (1 + 1270 + 1270  + 1270  + 1270  + 1270 ) 1270  )
(%o28)  9001 92899 37535909 67511489 149231064791 233788644670162512419
                             2       3       4       5       6
(%i29) factor(1 + 1271 + 1271  + 1271  + 1271  + 1271  + 1271
                                             2       3       4       5      13
                           + (1 + 1271 + 1271  + 1271  + 1271  + 1271 ) 1271  )
(%o29)   12071 19087477 4486788003186301363 72532794983316273832608233
                             2       3       4       5       6
(%i30) factor(1 + 1276 + 1276  + 1276  + 1276  + 1276  + 1276
                                             2       3       4       5      13
                           + (1 + 1276 + 1276  + 1276  + 1276  + 1276 ) 1276  )
(%o30)   15173 734647 12285167795508892447 587653556219943695801660609
                             2       3       4       5       6
(%i31) factor(1 + 1279 + 1279  + 1279  + 1279  + 1279  + 1279
                                             2       3       4       5      13
                           + (1 + 1279 + 1279  + 1279  + 1279  + 1279 ) 1279  )
(%o31)    14477884497822841 5798349425926706821770638584204707239881
                             2       3       4       5       6
(%i32) factor(1 + 1280 + 1280  + 1280  + 1280  + 1280  + 1280
                                             2       3       4       5      13
                           + (1 + 1280 + 1280  + 1280  + 1280  + 1280 ) 1280  )
(%o32)    44334781 1920323122687557253048683375845631907662121194901
                             2       3       4       5       6
(%i33) factor(1 + 1282 + 1282  + 1282  + 1282  + 1282  + 1282
                                             2       3       4       5      13
                           + (1 + 1282 + 1282  + 1282  + 1282  + 1282 ) 1282  )
(%o33)  521 588131 1304591 16188631 13530911451405594867052711965837653
                             2       3       4       5       6
(%i34) factor(1 + 1287 + 1287  + 1287  + 1287  + 1287  + 1287
                                             2       3       4       5      13
                           + (1 + 1287 + 1287  + 1287  + 1287  + 1287 ) 1287  )
(%o34)    1651903399 56854752827190894763732157832746412200130815047
                             2       3       4       5       6
(%i35) factor(1 + 1289 + 1289  + 1289  + 1289  + 1289  + 1289
                                             2       3       4       5      13
                           + (1 + 1289 + 1289  + 1289  + 1289  + 1289 ) 1289  )
(%o35)   5393 12441195255647 34907019769906487591 41236734668529104501
                             2       3       4       5       6
(%i36) factor(1 + 1290 + 1290  + 1290  + 1290  + 1290  + 1290
                                             2       3       4       5      13
                           + (1 + 1290 + 1290  + 1290  + 1290  + 1290 ) 1290  )
(%o36)  2237 123323 2124664397 1965041765992133 85031411289269281868041
                             2       3       4       5       6
(%i37) factor(1 + 1291 + 1291  + 1291  + 1291  + 1291  + 1291
                                             2       3       4       5      13
                           + (1 + 1291 + 1291  + 1291  + 1291  + 1291 ) 1291  )
(%o37)   100827018961 119858504719 8217942727992597235450048928814247
                             2       3       4       5       6
(%i38) factor(1 + 1295 + 1295  + 1295  + 1295  + 1295  + 1295
                                             2       3       4       5      13
                           + (1 + 1295 + 1295  + 1295  + 1295  + 1295 ) 1295  )
(%o38)    976605353 914770080391 117533121791826098926172914656068927
                             2       3       4       5       6
(%i39) factor(1 + 1297 + 1297  + 1297  + 1297  + 1297  + 1297
                                             2       3       4       5      13
                           + (1 + 1297 + 1297  + 1297  + 1297  + 1297 ) 1297  )
(%o39)  27581 7980443 1056165839 3129004441 148415493271398190686818549
(%o39)                               a.bat
(%i40)
factor((1300^5+1300^4+1300^3+1300^2+1300+1)*1300^13+1300^6+1300^5+1300^4+1300^3+1300^2+1300+1);
factor((1302^5+1302^4+1302^3+1302^2+1302+1)*1302^13+1302^6+1302^5+1302^4+1302^3+1302^2+1302+1);
factor((1304^5+1304^4+1304^3+1304^2+1304+1)*1304^13+1304^6+1304^5+1304^4+1304^3+1304^2+1304+1);
factor((1306^5+1306^4+1306^3+1306^2+1306+1)*1306^13+1306^6+1306^5+1306^4+1306^3+1306^2+1306+1);
factor((1309^5+1309^4+1309^3+1309^2+1309+1)*1309^13+1309^6+1309^5+1309^4+1309^3+1309^2+1309+1);
factor((1317^5+1317^4+1317^3+1317^2+1317+1)*1317^13+1317^6+1317^5+1317^4+1317^3+1317^2+1317+1);
factor((1321^5+1321^4+1321^3+1321^2+1321+1)*1321^13+1321^6+1321^5+1321^4+1321^3+1321^2+1321+1);
factor((1322^5+1322^4+1322^3+1322^2+1322+1)*1322^13+1322^6+1322^5+1322^4+1322^3+1322^2+1322+1);
factor((1325^5+1325^4+1325^3+1325^2+1325+1)*1325^13+1325^6+1325^5+1325^4+1325^3+1325^2+1325+1);
factor((1326^5+1326^4+1326^3+1326^2+1326+1)*1326^13+1326^6+1326^5+1326^4+1326^3+1326^2+1326+1);
factor((1330^5+1330^4+1330^3+1330^2+1330+1)*1330^13+1330^6+1330^5+1330^4+1330^3+1330^2+1330+1);
factor((1332^5+1332^4+1332^3+1332^2+1332+1)*1332^13+1332^6+1332^5+1332^4+1332^3+1332^2+1332+1);
factor((1335^5+1335^4+1335^3+1335^2+1335+1)*1335^13+1335^6+1335^5+1335^4+1335^3+1335^2+1335+1);
factor((1339^5+1339^4+1339^3+1339^2+1339+1)*1339^13+1339^6+1339^5+1339^4+1339^3+1339^2+1339+1);
factor((1344^5+1344^4+1344^3+1344^2+1344+1)*1344^13+1344^6+1344^5+1344^4+1344^3+1344^2+1344+1);
factor((1345^5+1345^4+1345^3+1345^2+1345+1)*1345^13+1345^6+1345^5+1345^4+1345^3+1345^2+1345+1);
factor((1347^5+1347^4+1347^3+1347^2+1347+1)*1347^13+1347^6+1347^5+1347^4+1347^3+1347^2+1347+1);
factor((1350^5+1350^4+1350^3+1350^2+1350+1)*1350^13+1350^6+1350^5+1350^4+1350^3+1350^2+1350+1);
factor((1351^5+1351^4+1351^3+1351^2+1351+1)*1351^13+1351^6+1351^5+1351^4+1351^3+1351^2+1351+1);
factor((1352^5+1352^4+1352^3+1352^2+1352+1)*1352^13+1352^6+1352^5+1352^4+1352^3+1352^2+1352+1);
factor((1355^5+1355^4+1355^3+1355^2+1355+1)*1355^13+1355^6+1355^5+1355^4+1355^3+1355^2+1355+1);
factor((1364^5+1364^4+1364^3+1364^2+1364+1)*1364^13+1364^6+1364^5+1364^4+1364^3+1364^2+1364+1);
factor((1365^5+1365^4+1365^3+1365^2+1365+1)*1365^13+1365^6+1365^5+1365^4+1365^3+1365^2+1365+1);
factor((1369^5+1369^4+1369^3+1369^2+1369+1)*1369^13+1369^6+1369^5+1369^4+1369^3+1369^2+1369+1);
factor((1370^5+1370^4+1370^3+1370^2+1370+1)*1370^13+1370^6+1370^5+1370^4+1370^3+1370^2+1370+1);
factor((1375^5+1375^4+1375^3+1375^2+1375+1)*1375^13+1375^6+1375^5+1375^4+1375^3+1375^2+1375+1);
factor((1376^5+1376^4+1376^3+1376^2+1376+1)*1376^13+1376^6+1376^5+1376^4+1376^3+1376^2+1376+1);
factor((1380^5+1380^4+1380^3+1380^2+1380+1)*1380^13+1380^6+1380^5+1380^4+1380^3+1380^2+1380+1);
factor((1381^5+1381^4+1381^3+1381^2+1381+1)*1381^13+1381^6+1381^5+1381^4+1381^3+1381^2+1381+1);
factor((1385^5+1385^4+1385^3+1385^2+1385+1)*1385^13+1385^6+1385^5+1385^4+1385^3+1385^2+1385+1);
factor((1386^5+1386^4+1386^3+1386^2+1386+1)*1386^13+1386^6+1386^5+1386^4+1386^3+1386^2+1386+1);
factor((1390^5+1390^4+1390^3+1390^2+1390+1)*1390^13+1390^6+1390^5+1390^4+1390^3+1390^2+1390+1);
factor((1396^5+1396^4+1396^3+1396^2+1396+1)*1396^13+1396^6+1396^5+1396^4+1396^3+1396^2+1396+1);
factor((1397^5+1397^4+1397^3+1397^2+1397+1)*1397^13+1397^6+1397^5+1397^4+1397^3+1397^2+1397+1);

(%i1) batch("a.bat");

read and interpret file: a.bat
                            2       3       4       5       6
(%i2) factor(1 + 1300 + 1300  + 1300  + 1300  + 1300  + 1300
                                             2       3       4       5      13
                           + (1 + 1300 + 1300  + 1300  + 1300  + 1300 ) 1300  )
(%o2)    122321 11918646026313195205044409 77194542576805911634925309
                            2       3       4       5       6
(%i3) factor(1 + 1302 + 1302  + 1302  + 1302  + 1302  + 1302
                                             2       3       4       5      13
                           + (1 + 1302 + 1302  + 1302  + 1302  + 1302 ) 1302  )
(%o3)     12181709 9497803563047282829656148983809650029828217799247
                            2       3       4       5       6
(%i4) factor(1 + 1304 + 1304  + 1304  + 1304  + 1304  + 1304
                                             2       3       4       5      13
                           + (1 + 1304 + 1304  + 1304  + 1304  + 1304 ) 1304  )
(%o4)   1091 16795159 1483096414647784474541 4376748237685635804448249
                            2       3       4       5       6
(%i5) factor(1 + 1306 + 1306  + 1306  + 1306  + 1306  + 1306
                                             2       3       4       5      13
                           + (1 + 1306 + 1306  + 1306  + 1306  + 1306 ) 1306  )
(%o5)      122267167195841843496492835337223089375683643431646768983
素数ですね。

                            2       3       4       5       6
(%i6) factor(1 + 1309 + 1309  + 1309  + 1309  + 1309  + 1309
                                             2       3       4       5      13
                           + (1 + 1309 + 1309  + 1309  + 1309  + 1309 ) 1309  )
(%o6)     328829 387503320879606198215526738959486002244215170411529
                            2       3       4       5       6
(%i7) factor(1 + 1317 + 1317  + 1317  + 1317  + 1317  + 1317
                                             2       3       4       5      13
                           + (1 + 1317 + 1317  + 1317  + 1317  + 1317 ) 1317  )
(%o7)    3037 45763 1023091687580625413463977499773443876667690957203
                            2       3       4       5       6
(%i8) factor(1 + 1321 + 1321  + 1321  + 1321  + 1321  + 1321
                                             2       3       4       5      13
                           + (1 + 1321 + 1321  + 1321  + 1321  + 1321 ) 1321  )
(%o8)    43551817 1063384746377397480809 3242521754282098490446113581
                            2       3       4       5       6
(%i9) factor(1 + 1322 + 1322  + 1322  + 1322  + 1322  + 1322
                                             2       3       4       5      13
                           + (1 + 1322 + 1322  + 1322  + 1322  + 1322 ) 1322  )
(%o9)     94201 1858433 869545693463735579418046567227640174414467551
                             2       3       4       5       6
(%i10) factor(1 + 1325 + 1325  + 1325  + 1325  + 1325  + 1325
                                             2       3       4       5      13
                           + (1 + 1325 + 1325  + 1325  + 1325  + 1325 ) 1325  )
(%o10)   821 121837913 546780103 2899181410174202996529207450912754879
                             2       3       4       5       6
(%i11) factor(1 + 1326 + 1326  + 1326  + 1326  + 1326  + 1326
                                             2       3       4       5      13
                           + (1 + 1326 + 1326  + 1326  + 1326  + 1326 ) 1326  )
(%o11)    415012026655516590075896597 387302585944655372455143839279
                             2       3       4       5       6
(%i12) factor(1 + 1330 + 1330  + 1330  + 1330  + 1330  + 1330
                                             2       3       4       5      13
                           + (1 + 1330 + 1330  + 1330  + 1330  + 1330 ) 1330  )
(%o12)  1621 7927 14561 2456726351 369161445956011967964181479090256363
                             2       3       4       5       6
(%i13) factor(1 + 1332 + 1332  + 1332  + 1332  + 1332  + 1332
                                             2       3       4       5      13
                           + (1 + 1332 + 1332  + 1332  + 1332  + 1332 ) 1332  )
(%o13)   2161 2316842707 34821774552966012489197437171407972734043319
                             2       3       4       5       6
(%i14) factor(1 + 1335 + 1335  + 1335  + 1335  + 1335  + 1335
                                             2       3       4       5      13
                           + (1 + 1335 + 1335  + 1335  + 1335  + 1335 ) 1335  )
(%o14)    12663399481401157 14336327428771764608789234517111167589373
                             2       3       4       5       6
(%i15) factor(1 + 1339 + 1339  + 1339  + 1339  + 1339  + 1339
                                             2       3       4       5      13
                           + (1 + 1339 + 1339  + 1339  + 1339  + 1339 ) 1339  )
(%o15)    522703 4309981727 85044146749320615264428570139598930827881
                             2       3       4       5       6
(%i16) factor(1 + 1344 + 1344  + 1344  + 1344  + 1344  + 1344
                                             2       3       4       5      13
                           + (1 + 1344 + 1344  + 1344  + 1344  + 1344 ) 1344  )
(%o16)     204884966450930767117914789032871277734212446668857513281
素数ですね。

                             2       3       4       5       6
(%i17) factor(1 + 1345 + 1345  + 1345  + 1345  + 1345  + 1345
                                             2       3       4       5      13
                           + (1 + 1345 + 1345  + 1345  + 1345  + 1345 ) 1345  )
(%o17)  22549 348014041 1866499791415847422111 14176601609467901470879
                             2       3       4       5       6
(%i18) factor(1 + 1347 + 1347  + 1347  + 1347  + 1347  + 1347
                                             2       3       4       5      13
                           + (1 + 1347 + 1347  + 1347  + 1347  + 1347 ) 1347  )
(%o18)    121090497795151819539491 1761283206873710461966789596745763
                             2       3       4       5       6
(%i19) factor(1 + 1350 + 1350  + 1350  + 1350  + 1350  + 1350
                                             2       3       4       5      13
                           + (1 + 1350 + 1350  + 1350  + 1350  + 1350 ) 1350  )
(%o19)  4828303817 10083584208547 37293270596706827 122261483172832987
                             2       3       4       5       6
(%i20) factor(1 + 1351 + 1351  + 1351  + 1351  + 1351  + 1351
                                             2       3       4       5      13
                           + (1 + 1351 + 1351  + 1351  + 1351  + 1351 ) 1351  )
(%o20)    474499 474113761730082513798081452988045718905924700322587
                             2       3       4       5       6
(%i21) factor(1 + 1352 + 1352  + 1352  + 1352  + 1352  + 1352
                                             2       3       4       5      13
                           + (1 + 1352 + 1352  + 1352  + 1352  + 1352 ) 1352  )
(%o21)  2053 2837 9865381 200503099 19788758774839710136967114079825047
                             2       3       4       5       6
(%i22) factor(1 + 1355 + 1355  + 1355  + 1355  + 1355  + 1355
                                             2       3       4       5      13
                           + (1 + 1355 + 1355  + 1355  + 1355  + 1355 ) 1355  )
(%o22)    44301776685286411 5355583576332825244578425232077924689771
                             2       3       4       5       6
(%i23) factor(1 + 1364 + 1364  + 1364  + 1364  + 1364  + 1364
                                             2       3       4       5      13
                           + (1 + 1364 + 1364  + 1364  + 1364  + 1364 ) 1364  )
(%o23)   1543 6144878219 9824619619 2869341430184684160448756163814707
                             2       3       4       5       6
(%i24) factor(1 + 1365 + 1365  + 1365  + 1365  + 1365  + 1365
                                             2       3       4       5      13
                           + (1 + 1365 + 1365  + 1365  + 1365  + 1365 ) 1365  )
(%o24)   5166373 2100883877993 24952737591575560099337571665029530569
                             2       3       4       5       6
(%i25) factor(1 + 1369 + 1369  + 1369  + 1369  + 1369  + 1369
                                             2       3       4       5      13
                           + (1 + 1369 + 1369  + 1369  + 1369  + 1369 ) 1369  )
(%o25)   997 464071683601 164470451327074734503 3751554888319069614191
                             2       3       4       5       6
(%i26) factor(1 + 1370 + 1370  + 1370  + 1370  + 1370  + 1370
                                             2       3       4       5      13
                           + (1 + 1370 + 1370  + 1370  + 1370  + 1370 ) 1370  )
(%o26)     289259297969359942876785710566202278289375555948381541271
素数ですね。

                             2       3       4       5       6
(%i27) factor(1 + 1375 + 1375  + 1375  + 1375  + 1375  + 1375
                                             2       3       4       5      13
                           + (1 + 1375 + 1375  + 1375  + 1375  + 1375 ) 1375  )
(%o27)   1949 241183 657061469156623331858813967495081784731467585003
                             2       3       4       5       6
(%i28) factor(1 + 1376 + 1376  + 1376  + 1376  + 1376  + 1376
                                             2       3       4       5      13
                           + (1 + 1376 + 1376  + 1376  + 1376  + 1376 ) 1376  )
(%o28)    22028430366961 14205744301963548260735570191262259435902833
                             2       3       4       5       6
(%i29) factor(1 + 1380 + 1380  + 1380  + 1380  + 1380  + 1380
                                             2       3       4       5      13
                           + (1 + 1380 + 1380  + 1380  + 1380  + 1380 ) 1380  )
(%o29)  4003 6269 398503909 125512216776313 262685396450624371557257999
                             2       3       4       5       6
(%i30) factor(1 + 1381 + 1381  + 1381  + 1381  + 1381  + 1381
                                             2       3       4       5      13
                           + (1 + 1381 + 1381  + 1381  + 1381  + 1381 ) 1381  )
(%o30) 35437 173923 1669127 16384371816392074501 1981835769803449440929
                             2       3       4       5       6
(%i31) factor(1 + 1385 + 1385  + 1385  + 1385  + 1385  + 1385
                                             2       3       4       5      13
                           + (1 + 1385 + 1385  + 1385  + 1385  + 1385 ) 1385  )
(%o31)    168805012331 2084607358657537856774271622259463464619676631
                             2       3       4       5       6
(%i32) factor(1 + 1386 + 1386  + 1386  + 1386  + 1386  + 1386
                                             2       3       4       5      13
                           + (1 + 1386 + 1386  + 1386  + 1386  + 1386 ) 1386  )
(%o32)    1296843368992508563 274893250136309310822432317536414506781
                             2       3       4       5       6
(%i33) factor(1 + 1390 + 1390  + 1390  + 1390  + 1390  + 1390
                                             2       3       4       5      13
                           + (1 + 1390 + 1390  + 1390  + 1390  + 1390 ) 1390  )
(%o33)    1405709 267105932352099466649768063691386310094735846489799
                             2       3       4       5       6
(%i34) factor(1 + 1396 + 1396  + 1396  + 1396  + 1396  + 1396
                                             2       3       4       5      13
                           + (1 + 1396 + 1396  + 1396  + 1396  + 1396 ) 1396  )
(%o34)   115013 6119644922596345097 576468503986454925325910365613113
                             2       3       4       5       6
(%i35) factor(1 + 1397 + 1397  + 1397  + 1397  + 1397  + 1397
                                             2       3       4       5      13
                           + (1 + 1397 + 1397  + 1397  + 1397  + 1397 ) 1397  )
(%o35)   87815381 183929051 25446343059037443258992282022894743985043
(%o35)                               a.bat
(%i36)

factor((1401^5+1401^4+1401^3+1401^2+1401+1)*1401^13+1401^6+1401^5+1401^4+1401^3+1401^2+1401+1);
factor((1402^5+1402^4+1402^3+1402^2+1402+1)*1402^13+1402^6+1402^5+1402^4+1402^3+1402^2+1402+1);
factor((1406^5+1406^4+1406^3+1406^2+1406+1)*1406^13+1406^6+1406^5+1406^4+1406^3+1406^2+1406+1);
factor((1409^5+1409^4+1409^3+1409^2+1409+1)*1409^13+1409^6+1409^5+1409^4+1409^3+1409^2+1409+1);
factor((1414^5+1414^4+1414^3+1414^2+1414+1)*1414^13+1414^6+1414^5+1414^4+1414^3+1414^2+1414+1);
factor((1416^5+1416^4+1416^3+1416^2+1416+1)*1416^13+1416^6+1416^5+1416^4+1416^3+1416^2+1416+1);
factor((1417^5+1417^4+1417^3+1417^2+1417+1)*1417^13+1417^6+1417^5+1417^4+1417^3+1417^2+1417+1);
factor((1419^5+1419^4+1419^3+1419^2+1419+1)*1419^13+1419^6+1419^5+1419^4+1419^3+1419^2+1419+1);
factor((1420^5+1420^4+1420^3+1420^2+1420+1)*1420^13+1420^6+1420^5+1420^4+1420^3+1420^2+1420+1);
factor((1424^5+1424^4+1424^3+1424^2+1424+1)*1424^13+1424^6+1424^5+1424^4+1424^3+1424^2+1424+1);
factor((1425^5+1425^4+1425^3+1425^2+1425+1)*1425^13+1425^6+1425^5+1425^4+1425^3+1425^2+1425+1);
factor((1427^5+1427^4+1427^3+1427^2+1427+1)*1427^13+1427^6+1427^5+1427^4+1427^3+1427^2+1427+1);
factor((1434^5+1434^4+1434^3+1434^2+1434+1)*1434^13+1434^6+1434^5+1434^4+1434^3+1434^2+1434+1);
factor((1435^5+1435^4+1435^3+1435^2+1435+1)*1435^13+1435^6+1435^5+1435^4+1435^3+1435^2+1435+1);
factor((1436^5+1436^4+1436^3+1436^2+1436+1)*1436^13+1436^6+1436^5+1436^4+1436^3+1436^2+1436+1);
factor((1440^5+1440^4+1440^3+1440^2+1440+1)*1440^13+1440^6+1440^5+1440^4+1440^3+1440^2+1440+1);
factor((1450^5+1450^4+1450^3+1450^2+1450+1)*1450^13+1450^6+1450^5+1450^4+1450^3+1450^2+1450+1);
factor((1454^5+1454^4+1454^3+1454^2+1454+1)*1454^13+1454^6+1454^5+1454^4+1454^3+1454^2+1454+1);
factor((1462^5+1462^4+1462^3+1462^2+1462+1)*1462^13+1462^6+1462^5+1462^4+1462^3+1462^2+1462+1);
factor((1466^5+1466^4+1466^3+1466^2+1466+1)*1466^13+1466^6+1466^5+1466^4+1466^3+1466^2+1466+1);
factor((1474^5+1474^4+1474^3+1474^2+1474+1)*1474^13+1474^6+1474^5+1474^4+1474^3+1474^2+1474+1);
factor((1477^5+1477^4+1477^3+1477^2+1477+1)*1477^13+1477^6+1477^5+1477^4+1477^3+1477^2+1477+1);
factor((1480^5+1480^4+1480^3+1480^2+1480+1)*1480^13+1480^6+1480^5+1480^4+1480^3+1480^2+1480+1);
factor((1482^5+1482^4+1482^3+1482^2+1482+1)*1482^13+1482^6+1482^5+1482^4+1482^3+1482^2+1482+1);
factor((1491^5+1491^4+1491^3+1491^2+1491+1)*1491^13+1491^6+1491^5+1491^4+1491^3+1491^2+1491+1);
factor((1495^5+1495^4+1495^3+1495^2+1495+1)*1495^13+1495^6+1495^5+1495^4+1495^3+1495^2+1495+1);
factor((1497^5+1497^4+1497^3+1497^2+1497+1)*1497^13+1497^6+1497^5+1497^4+1497^3+1497^2+1497+1);

(%i1) batch("a.bat");

read and interpret file: a.bat
                            2       3       4       5       6
(%i2) factor(1 + 1401 + 1401  + 1401  + 1401  + 1401  + 1401
                                             2       3       4       5      13
                           + (1 + 1401 + 1401  + 1401  + 1401  + 1401 ) 1401  )
(%o2)     5503 78631583548681930210047297037034941155574148455466371
                            2       3       4       5       6
(%i3) factor(1 + 1402 + 1402  + 1402  + 1402  + 1402  + 1402
                                             2       3       4       5      13
                           + (1 + 1402 + 1402  + 1402  + 1402  + 1402 ) 1402  )
(%o3)    70381 2357538067377235373 2641556939570054399568664246843871
                            2       3       4       5       6
(%i4) factor(1 + 1406 + 1406  + 1406  + 1406  + 1406  + 1406
                                             2       3       4       5      13
                           + (1 + 1406 + 1406  + 1406  + 1406  + 1406 ) 1406  )
(%o4)      461365131407385240011209303673490890076740948734464915883
素数ですね。

                            2       3       4       5       6
(%i5) factor(1 + 1409 + 1409  + 1409  + 1409  + 1409  + 1409
                                             2       3       4       5      13
                           + (1 + 1409 + 1409  + 1409  + 1409  + 1409 ) 1409  )
(%o5)  2741 1023289 1643171 27023720167439 3849204425611555594576409861
                            2       3       4       5       6
(%i6) factor(1 + 1414 + 1414  + 1414  + 1414  + 1414  + 1414
                                             2       3       4       5      13
                           + (1 + 1414 + 1414  + 1414  + 1414  + 1414 ) 1414  )
(%o6)     576529791793 886287989094805080822815345345941567798693027
                            2       3       4       5       6
(%i7) factor(1 + 1416 + 1416  + 1416  + 1416  + 1416  + 1416
                                             2       3       4       5      13
                           + (1 + 1416 + 1416  + 1416  + 1416  + 1416 ) 1416  )
(%o7)   1553 152623 17228513 128353033507852026728659915981463527379959
                            2       3       4       5       6
(%i8) factor(1 + 1417 + 1417  + 1417  + 1417  + 1417  + 1417
                                             2       3       4       5      13
                           + (1 + 1417 + 1417  + 1417  + 1417  + 1417 ) 1417  )
(%o8)     11393 46593550323369116283038501951785067105985712484403101
                            2       3       4       5       6
(%i9) factor(1 + 1419 + 1419  + 1419  + 1419  + 1419  + 1419
                                             2       3       4       5      13
                           + (1 + 1419 + 1419  + 1419  + 1419  + 1419 ) 1419  )
(%o9)    797273291 2835420671431 240859935841330269911856975428238461
                             2       3       4       5       6
(%i10) factor(1 + 1420 + 1420  + 1420  + 1420  + 1420  + 1420
                                             2       3       4       5      13
                           + (1 + 1420 + 1420  + 1420  + 1420  + 1420 ) 1420  )
(%o10)  1282991251 12581475943 362518150958759 94234754889878109974783
                             2       3       4       5       6
(%i11) factor(1 + 1424 + 1424  + 1424  + 1424  + 1424  + 1424
                                             2       3       4       5      13
                           + (1 + 1424 + 1424  + 1424  + 1424  + 1424 ) 1424  )
(%o11)   680701641041 66834812552401429961 12750445658841888844495801
                             2       3       4       5       6
(%i12) factor(1 + 1425 + 1425  + 1425  + 1425  + 1425  + 1425
                                             2       3       4       5      13
                           + (1 + 1425 + 1425  + 1425  + 1425  + 1425 ) 1425  )
(%o12)    494538192100466935742303729 1187880071405223041098828739069
                             2       3       4       5       6
(%i13) factor(1 + 1427 + 1427  + 1427  + 1427  + 1427  + 1427
                                             2       3       4       5      13
                           + (1 + 1427 + 1427  + 1427  + 1427  + 1427 ) 1427  )
(%o13)   301901 17498553994414970777 114043161991858810791833967699349
                             2       3       4       5       6
(%i14) factor(1 + 1434 + 1434  + 1434  + 1434  + 1434  + 1434
                                             2       3       4       5      13
                           + (1 + 1434 + 1434  + 1434  + 1434  + 1434 ) 1434  )
(%o14)  373 41929061 1263784382071 33288232229510324418701491098012857
                             2       3       4       5       6
(%i15) factor(1 + 1435 + 1435  + 1435  + 1435  + 1435  + 1435
                                             2       3       4       5      13
                           + (1 + 1435 + 1435  + 1435  + 1435  + 1435 ) 1435  )
(%o15)  19631749 57355694723 120694610681 4902454295077137900096947503
                             2       3       4       5       6
(%i16) factor(1 + 1436 + 1436  + 1436  + 1436  + 1436  + 1436
                                             2       3       4       5      13
                           + (1 + 1436 + 1436  + 1436  + 1436  + 1436 ) 1436  )
(%o16)   773 67508382405516853367911 12928414314718282913164641235151
                             2       3       4       5       6
(%i17) factor(1 + 1440 + 1440  + 1440  + 1440  + 1440  + 1440
                                             2       3       4       5      13
                           + (1 + 1440 + 1440  + 1440  + 1440  + 1440 ) 1440  )
(%o17)  3529 1410049 174053986247 818948738971076298874378748352013343
                             2       3       4       5       6
(%i18) factor(1 + 1450 + 1450  + 1450  + 1450  + 1450  + 1450
                                             2       3       4       5      13
                           + (1 + 1450 + 1450  + 1450  + 1450  + 1450 ) 1450  )
(%o18)    320244904391 2508657826323100501521331945628893963549992161
                             2       3       4       5       6
(%i19) factor(1 + 1454 + 1454  + 1454  + 1454  + 1454  + 1454
                                             2       3       4       5      13
                           + (1 + 1454 + 1454  + 1454  + 1454  + 1454 ) 1454  )
(%o19)   1901 8219 808209253 66854892383078970848477034853100715202753
                             2       3       4       5       6
(%i20) factor(1 + 1462 + 1462  + 1462  + 1462  + 1462  + 1462
                                             2       3       4       5      13
                           + (1 + 1462 + 1462  + 1462  + 1462  + 1462 ) 1462  )
(%o20)  461233 2390521967 4044180067 71232197408657 2933796096901087567
                             2       3       4       5       6
(%i21) factor(1 + 1466 + 1466  + 1466  + 1466  + 1466  + 1466
                                             2       3       4       5      13
                           + (1 + 1466 + 1466  + 1466  + 1466  + 1466 ) 1466  )
(%o21)    15269564386440360845648882083 64103414570770992344827770781
                             2       3       4       5       6
(%i22) factor(1 + 1474 + 1474  + 1474  + 1474  + 1474  + 1474
                                             2       3       4       5      13
                           + (1 + 1474 + 1474  + 1474  + 1474  + 1474 ) 1474  )
(%o22) 1039 89119 150721 1303509217101863733077 59343849497277207297683
                             2       3       4       5       6
(%i23) factor(1 + 1477 + 1477  + 1477  + 1477  + 1477  + 1477
                                             2       3       4       5      13
                           + (1 + 1477 + 1477  + 1477  + 1477  + 1477 ) 1477  )
(%o23)    1119806678890692257014074390634689998717595797296049534773
素数ですね。

                             2       3       4       5       6
(%i24) factor(1 + 1480 + 1480  + 1480  + 1480  + 1480  + 1480
                                             2       3       4       5      13
                           + (1 + 1480 + 1480  + 1480  + 1480  + 1480 ) 1480  )
(%o24)  1031 193381 6902689099 843944016793335017193645935665566295529
                             2       3       4       5       6
(%i25) factor(1 + 1482 + 1482  + 1482  + 1482  + 1482  + 1482
                                             2       3       4       5      13
                           + (1 + 1482 + 1482  + 1482  + 1482  + 1482 ) 1482  )
(%o25)   1303 139869641228989481661769 6529695572823550919030012857609
                             2       3       4       5       6
(%i26) factor(1 + 1491 + 1491  + 1491  + 1491  + 1491  + 1491
                                             2       3       4       5      13
                           + (1 + 1491 + 1491  + 1491  + 1491  + 1491 ) 1491  )
(%o26)   126137241825554921129179367 10520723985893779113059034243119
                             2       3       4       5       6
(%i27) factor(1 + 1495 + 1495  + 1495  + 1495  + 1495  + 1495
                                             2       3       4       5      13
                           + (1 + 1495 + 1495  + 1495  + 1495  + 1495 ) 1495  )
(%o27)    342260952053 4068878381314895110835907158649750931151052557
                             2       3       4       5       6
(%i28) factor(1 + 1497 + 1497  + 1497  + 1497  + 1497  + 1497
                                             2       3       4       5      13
                           + (1 + 1497 + 1497  + 1497  + 1497  + 1497 ) 1497  )
(%o28)   7621 13687 13676103665428639179742249937536084185056926106479
(%o28)                               a.bat