多項式(x^5+x^4+x^3+x^2+ x+1)*x^25+x^6+x^5+x^4+x^3+x^2+x+1
Ver.1.000 2012.10.07

更新履歴
2012.10.07 Ver.1.000 新規作成

多項式を変える。

(%i1) factor((x^5+x^4+x^3+x^2+x+1)*x^25+x^6+x^5+x^4+x^3+x^2+x+1);
       30    29    28    27    26    25    6    5    4    3    2
(%o1) x   + x   + x   + x   + x   + x   + x  + x  + x  + x  + x  + x + 1

より、

e15.batを作った。以下に示す。
for x:2 while x<20 do(
y:factor((x^5+x^4+x^3+x^2+x+1)*x^25+x^6+x^5+x^4+x^3+x^2+x+1),
print("        x=",x),
print("factor(x)=",y)
);

e15.batをmaximaで実行した。

(%i2) batch("e15.bat");

read and interpret file: e15.bat
(%i3) for x from 2 while x < 20 do (y :
                2    3    4    5    6             2    3    4    5   25
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)= 107 19756349
        x= 3
factor(x)= 5 53 67 2897 5996027
        x= 4
factor(x)= 23010997 66787778593
        x= 5
factor(x)= 27299 42641807848762919
        x= 6
factor(x)= 151 16700311 105198111352963
        x= 7
素数ですね。
factor(x)= 26295673494371023775160913
        x= 8
            3
factor(x)= 5  53 1907 2889499 38755270803017
        x= 9
factor(x)= 11 1253093 537847951 6432673087717
        x= 10
factor(x)= 107 109 95267941352996656091914697
        x= 11
factor(x)= 94121 203932508803233121854235313
        x= 12
factor(x)= 39775154329 6510493707324734130277
        x= 13
factor(x)= 5 179 29767097 146681372129 726320168083
        x= 14
factor(x)= 13 2477 79531 3048869 3337960010443191349
        x= 15
factor(x)= 17 139 2558671 1385189489 24530906718493453
        x= 16
factor(x)= 23 1447 1933 529634324423 41612502401024707
        x= 17
factor(x)= 2281 1353903791437 2818924682842910382649
        x= 18
factor(x)= 5 61 103 181 10633487 533267924347 1494727134961
        x= 19
factor(x)= 31 1453 2969 80883554493571 22490099718339833
(%o3)                                done
(%o3)                               e15.bat
(%i4)

これより、b.txtは、以下のようになった。
107,2
5,3
53,3
67,3
151,6
125,8
53,8
11,9
107,10
109,10
5,13
179,13
13,14
17,15
139,15
23,16
5,18
61,18
103,18
181,18
31,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^25+%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
107n+2
5n+3
53n+3
67n+3
151n+6
125n+8
53n+8
11n+9
107n+10
109n+10
5n+13
179n+13
13n+14
17n+15
139n+15
23n+16
5n+18
61n+18
103n+18
181n+18
31n+19
b.txt read!  21 個 
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 1 !!!
2=107x0+2
3=5x0+3
3=53x0+3
3=67x0+3
!!! 4 !!!
!!! 5 !!!
6=151x0+6
!!! 7 !!!
8=5x1+3
8=125x0+8
8=53x0+8
9=11x0+9
10=107x0+10
10=109x0+10
!!! 11 !!!
!!! 12 !!!
13=5x2+3
13=5x0+13
13=179x0+13
14=13x0+14
15=17x0+15
15=139x0+15
16=23x0+16
!!! 17 !!!
18=5x3+3
18=5x1+13
18=5x0+18
18=61x0+18
18=103x0+18
18=181x0+18
19=31x0+19
20=11x1+9
!!! 21 !!!
!!! 22 !!!
23=5x4+3
23=5x2+13
23=5x1+18
!!! 24 !!!
!!! 25 !!!
!!! 26 !!!
27=13x1+14
28=5x5+3
28=5x3+13
28=5x2+18
!!! 29 !!!
!!! 30 !!!
31=11x2+9
32=17x1+15
33=5x6+3
33=5x4+13
33=5x3+18
!!! 34 !!!
!!! 35 !!!
!!! 36 !!!
!!! 37 !!!
38=5x7+3
38=5x5+13
38=5x4+18
39=23x1+16
40=13x2+14
!!! 41 !!!
42=11x3+9
43=5x8+3
43=5x6+13
43=5x5+18
!!! 44 !!!
!!! 45 !!!
!!! 46 !!!
!!! 47 !!!
48=5x9+3
48=5x7+13
48=5x6+18
49=17x2+15
50=31x1+19
!!! 51 !!!
!!! 52 !!!
53=5x10+3
53=11x4+9
53=5x8+13
53=13x3+14
53=5x7+18
!!! 54 !!!
!!! 55 !!!
56=53x1+3
!!! 57 !!!
58=5x11+3
58=5x9+13
58=5x8+18
!!! 59 !!!
!!! 60 !!!
61=53x1+8
62=23x2+16
63=5x12+3
63=5x10+13
63=5x9+18
64=11x5+9
!!! 65 !!!
66=13x4+14
66=17x3+15
!!! 67 !!!
68=5x13+3
68=5x11+13
68=5x10+18
!!! 69 !!!
70=67x1+3
!!! 71 !!!
!!! 72 !!!
73=5x14+3
73=5x12+13
73=5x11+18
!!! 74 !!!
75=11x6+9
!!! 76 !!!
!!! 77 !!!
78=5x15+3
78=5x13+13
78=5x12+18
79=13x5+14
79=61x1+18
!!! 80 !!!
81=31x2+19
!!! 82 !!!
83=5x16+3
83=5x14+13
83=17x4+15
83=5x13+18
!!! 84 !!!
85=23x3+16
86=11x7+9
!!! 87 !!!
88=5x17+3
88=5x15+13
88=5x14+18
!!! 89 !!!
!!! 90 !!!
!!! 91 !!!
92=13x6+14
93=5x18+3
93=5x16+13
93=5x15+18
!!! 94 !!!
!!! 95 !!!
!!! 96 !!!
97=11x8+9
98=5x19+3
98=5x17+13
98=5x16+18
!!! 99 !!!
100=17x5+15

生成されたa.batは、
factor((1^5+1^4+1^3+1^2+1+1)*1^25+1^6+1^5+1^4+1^3+1^2+1+1);
factor((4^5+4^4+4^3+4^2+4+1)*4^25+4^6+4^5+4^4+4^3+4^2+4+1);
factor((5^5+5^4+5^3+5^2+5+1)*5^25+5^6+5^5+5^4+5^3+5^2+5+1);
factor((7^5+7^4+7^3+7^2+7+1)*7^25+7^6+7^5+7^4+7^3+7^2+7+1);
factor((11^5+11^4+11^3+11^2+11+1)*11^25+11^6+11^5+11^4+11^3+11^2+11+1);
factor((12^5+12^4+12^3+12^2+12+1)*12^25+12^6+12^5+12^4+12^3+12^2+12+1);
factor((17^5+17^4+17^3+17^2+17+1)*17^25+17^6+17^5+17^4+17^3+17^2+17+1);
factor((21^5+21^4+21^3+21^2+21+1)*21^25+21^6+21^5+21^4+21^3+21^2+21+1);
factor((22^5+22^4+22^3+22^2+22+1)*22^25+22^6+22^5+22^4+22^3+22^2+22+1);
factor((24^5+24^4+24^3+24^2+24+1)*24^25+24^6+24^5+24^4+24^3+24^2+24+1);
factor((25^5+25^4+25^3+25^2+25+1)*25^25+25^6+25^5+25^4+25^3+25^2+25+1);
factor((26^5+26^4+26^3+26^2+26+1)*26^25+26^6+26^5+26^4+26^3+26^2+26+1);
factor((29^5+29^4+29^3+29^2+29+1)*29^25+29^6+29^5+29^4+29^3+29^2+29+1);
factor((30^5+30^4+30^3+30^2+30+1)*30^25+30^6+30^5+30^4+30^3+30^2+30+1);
factor((34^5+34^4+34^3+34^2+34+1)*34^25+34^6+34^5+34^4+34^3+34^2+34+1);
factor((35^5+35^4+35^3+35^2+35+1)*35^25+35^6+35^5+35^4+35^3+35^2+35+1);
factor((36^5+36^4+36^3+36^2+36+1)*36^25+36^6+36^5+36^4+36^3+36^2+36+1);
factor((37^5+37^4+37^3+37^2+37+1)*37^25+37^6+37^5+37^4+37^3+37^2+37+1);
factor((41^5+41^4+41^3+41^2+41+1)*41^25+41^6+41^5+41^4+41^3+41^2+41+1);
factor((44^5+44^4+44^3+44^2+44+1)*44^25+44^6+44^5+44^4+44^3+44^2+44+1);
factor((45^5+45^4+45^3+45^2+45+1)*45^25+45^6+45^5+45^4+45^3+45^2+45+1);
factor((46^5+46^4+46^3+46^2+46+1)*46^25+46^6+46^5+46^4+46^3+46^2+46+1);
factor((47^5+47^4+47^3+47^2+47+1)*47^25+47^6+47^5+47^4+47^3+47^2+47+1);
factor((51^5+51^4+51^3+51^2+51+1)*51^25+51^6+51^5+51^4+51^3+51^2+51+1);
factor((52^5+52^4+52^3+52^2+52+1)*52^25+52^6+52^5+52^4+52^3+52^2+52+1);
factor((54^5+54^4+54^3+54^2+54+1)*54^25+54^6+54^5+54^4+54^3+54^2+54+1);
factor((55^5+55^4+55^3+55^2+55+1)*55^25+55^6+55^5+55^4+55^3+55^2+55+1);
factor((57^5+57^4+57^3+57^2+57+1)*57^25+57^6+57^5+57^4+57^3+57^2+57+1);
factor((59^5+59^4+59^3+59^2+59+1)*59^25+59^6+59^5+59^4+59^3+59^2+59+1);
factor((60^5+60^4+60^3+60^2+60+1)*60^25+60^6+60^5+60^4+60^3+60^2+60+1);
factor((65^5+65^4+65^3+65^2+65+1)*65^25+65^6+65^5+65^4+65^3+65^2+65+1);
factor((67^5+67^4+67^3+67^2+67+1)*67^25+67^6+67^5+67^4+67^3+67^2+67+1);
factor((69^5+69^4+69^3+69^2+69+1)*69^25+69^6+69^5+69^4+69^3+69^2+69+1);
factor((71^5+71^4+71^3+71^2+71+1)*71^25+71^6+71^5+71^4+71^3+71^2+71+1);
factor((72^5+72^4+72^3+72^2+72+1)*72^25+72^6+72^5+72^4+72^3+72^2+72+1);
factor((74^5+74^4+74^3+74^2+74+1)*74^25+74^6+74^5+74^4+74^3+74^2+74+1);
factor((76^5+76^4+76^3+76^2+76+1)*76^25+76^6+76^5+76^4+76^3+76^2+76+1);
factor((77^5+77^4+77^3+77^2+77+1)*77^25+77^6+77^5+77^4+77^3+77^2+77+1);
factor((80^5+80^4+80^3+80^2+80+1)*80^25+80^6+80^5+80^4+80^3+80^2+80+1);
factor((82^5+82^4+82^3+82^2+82+1)*82^25+82^6+82^5+82^4+82^3+82^2+82+1);
factor((84^5+84^4+84^3+84^2+84+1)*84^25+84^6+84^5+84^4+84^3+84^2+84+1);
factor((87^5+87^4+87^3+87^2+87+1)*87^25+87^6+87^5+87^4+87^3+87^2+87+1);
factor((89^5+89^4+89^3+89^2+89+1)*89^25+89^6+89^5+89^4+89^3+89^2+89+1);
factor((90^5+90^4+90^3+90^2+90+1)*90^25+90^6+90^5+90^4+90^3+90^2+90+1);
factor((91^5+91^4+91^3+91^2+91+1)*91^25+91^6+91^5+91^4+91^3+91^2+91+1);
factor((94^5+94^4+94^3+94^2+94+1)*94^25+94^6+94^5+94^4+94^3+94^2+94+1);
factor((95^5+95^4+95^3+95^2+95+1)*95^25+95^6+95^5+95^4+95^3+95^2+95+1);
factor((96^5+96^4+96^3+96^2+96+1)*96^25+96^6+96^5+96^4+96^3+96^2+96+1);
factor((99^5+99^4+99^3+99^2+99+1)*99^25+99^6+99^5+99^4+99^3+99^2+99+1);

実行結果を示す。

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

read and interpret file: a.bat
                      2    3    4    5    6             2    3    4    5   25
(%i5) factor(1 + 1 + 1  + 1  + 1  + 1  + 1  + (1 + 1 + 1  + 1  + 1  + 1 ) 1  )
(%o5)                                 13
                      2    3    4    5    6             2    3    4    5   25
(%i6) factor(1 + 4 + 4  + 4  + 4  + 4  + 4  + (1 + 4 + 4  + 4  + 4  + 4 ) 4  )
(%o6)                        23010997 66787778593
                      2    3    4    5    6             2    3    4    5   25
(%i7) factor(1 + 5 + 5  + 5  + 5  + 5  + 5  + (1 + 5 + 5  + 5  + 5  + 5 ) 5  )
(%o7)                       27299 42641807848762919
                      2    3    4    5    6             2    3    4    5   25
(%i8) factor(1 + 7 + 7  + 7  + 7  + 7  + 7  + (1 + 7 + 7  + 7  + 7  + 7 ) 7  )
素数ですね。
(%o8)                     26295673494371023775160913
                        2     3     4     5     6
(%i9) factor(1 + 11 + 11  + 11  + 11  + 11  + 11
                                                     2     3     4     5    25
                                       + (1 + 11 + 11  + 11  + 11  + 11 ) 11  )
(%o9)                  94121 203932508803233121854235313
                         2     3     4     5     6
(%i10) factor(1 + 12 + 12  + 12  + 12  + 12  + 12
                                                     2     3     4     5    25
                                       + (1 + 12 + 12  + 12  + 12  + 12 ) 12  )
(%o10)                39775154329 6510493707324734130277
                         2     3     4     5     6
(%i11) factor(1 + 17 + 17  + 17  + 17  + 17  + 17
                                                     2     3     4     5    25
                                       + (1 + 17 + 17  + 17  + 17  + 17 ) 17  )
(%o11)             2281 1353903791437 2818924682842910382649
                         2     3     4     5     6
(%i12) factor(1 + 21 + 21  + 21  + 21  + 21  + 21
                                                     2     3     4     5    25
                                       + (1 + 21 + 21  + 21  + 21  + 21 ) 21  )
(%o12)            410747 11862978297490703546002382398917839
                         2     3     4     5     6
(%i13) factor(1 + 22 + 22  + 22  + 22  + 22  + 22
                                                     2     3     4     5    25
                                       + (1 + 22 + 22  + 22  + 22  + 22 ) 22  )
(%o13)           919 202799 2096361278131261 50238464507232503
                         2     3     4     5     6
(%i14) factor(1 + 24 + 24  + 24  + 24  + 24  + 24
                                                     2     3     4     5    25
                                       + (1 + 24 + 24  + 24  + 24  + 24 ) 24  )
(%o14)          73 41051 22615787 3924301337938006707669702601
                         2     3     4     5     6
(%i15) factor(1 + 25 + 25  + 25  + 25  + 25  + 25
                                                     2     3     4     5    25
                                       + (1 + 25 + 25  + 25  + 25  + 25 ) 25  )
(%o15)          919 19429 48240165979 1048948756078980753105469
                         2     3     4     5     6
(%i16) factor(1 + 26 + 26  + 26  + 26  + 26  + 26
                                                     2     3     4     5    25
                                       + (1 + 26 + 26  + 26  + 26  + 26 ) 26  )
(%o16)           611457269 4784842696612349138186894815913627
                         2     3     4     5     6
(%i17) factor(1 + 29 + 29  + 29  + 29  + 29  + 29
                                                     2     3     4     5    25
                                       + (1 + 29 + 29  + 29  + 29  + 29 ) 29  )
(%o17)        41 8447 17494849 2913375371887649 4369048933893923
                         2     3     4     5     6
(%i18) factor(1 + 30 + 30  + 30  + 30  + 30  + 30
                                                     2     3     4     5    25
                                       + (1 + 30 + 30  + 30  + 30  + 30 ) 30  )
(%o18)         43 242627749223 20415121680897325876297346866679
                         2     3     4     5     6
(%i19) factor(1 + 34 + 34  + 34  + 34  + 34  + 34
                                                     2     3     4     5    25
                                       + (1 + 34 + 34  + 34  + 34  + 34 ) 34  )
(%o19)       641 911 2099 202276289 36559366837839890457558753931
                         2     3     4     5     6
(%i20) factor(1 + 35 + 35  + 35  + 35  + 35  + 35
                                                     2     3     4     5    25
                                       + (1 + 35 + 35  + 35  + 35  + 35 ) 35  )
(%o20)         31393 8911847846141 77237796332253936191462515997
                         2     3     4     5     6
(%i21) factor(1 + 36 + 36  + 36  + 36  + 36  + 36
                                                     2     3     4     5    25
                                       + (1 + 36 + 36  + 36  + 36  + 36 ) 36  )
(%o21)        47 26547365073340017877193 40289344273757869111363
                         2     3     4     5     6
(%i22) factor(1 + 37 + 37  + 37  + 37  + 37  + 37
                                                     2     3     4     5    25
                                       + (1 + 37 + 37  + 37  + 37  + 37 ) 37  )
(%o22)         340442321 335666037994286469017424318128456698373
                         2     3     4     5     6
(%i23) factor(1 + 41 + 41  + 41  + 41  + 41  + 41
                                                     2     3     4     5    25
                                       + (1 + 41 + 41  + 41  + 41  + 41 ) 41  )
(%o23)        752564232569 3293790656962491302473129262135821637
                         2     3     4     5     6
(%i24) factor(1 + 44 + 44  + 44  + 44  + 44  + 44
                                                     2     3     4     5    25
                                       + (1 + 44 + 44  + 44  + 44  + 44 ) 44  )
(%o24)        6822727 3017216828828245436614625415538685472069403
                         2     3     4     5     6
(%i25) factor(1 + 45 + 45  + 45  + 45  + 45  + 45
                                                     2     3     4     5    25
                                       + (1 + 45 + 45  + 45  + 45  + 45 ) 45  )
(%o25)        431005598060156243429153 93681177214789198472050757
                         2     3     4     5     6
(%i26) factor(1 + 46 + 46  + 46  + 46  + 46  + 46
                                                     2     3     4     5    25
                                       + (1 + 46 + 46  + 46  + 46  + 46 ) 46  )
(%o26)       1484531 69831763043228627339 752727860103670926382987
                         2     3     4     5     6
(%i27) factor(1 + 47 + 47  + 47  + 47  + 47  + 47
                                                     2     3     4     5    25
                                       + (1 + 47 + 47  + 47  + 47  + 47 ) 47  )
(%o27)       83 1791421045240382859946691297941208797554926091131
                         2     3     4     5     6
(%i28) factor(1 + 51 + 51  + 51  + 51  + 51  + 51
                                                     2     3     4     5    25
                                       + (1 + 51 + 51  + 51  + 51  + 51 ) 51  )
(%o28)     5892739 67154497 10112685643 429978401780272820892770377
                         2     3     4     5     6
(%i29) factor(1 + 52 + 52  + 52  + 52  + 52  + 52
                                                     2     3     4     5    25
                                       + (1 + 52 + 52  + 52  + 52  + 52 ) 52  )
(%o29)    197 86069 395793017 13615165996702841 33707723669674372333
                         2     3     4     5     6
(%i30) factor(1 + 54 + 54  + 54  + 54  + 54  + 54
                                                     2     3     4     5    25
                                       + (1 + 54 + 54  + 54  + 54  + 54 ) 54  )
(%o30)     110131584713 39331501194785842729 2204338437898388499923
                         2     3     4     5     6
(%i31) factor(1 + 55 + 55  + 55  + 55  + 55  + 55
                                                     2     3     4     5    25
                                       + (1 + 55 + 55  + 55  + 55  + 55 ) 55  )
(%o31)      4875581359666621 3394870453666691384841957262740592261
                         2     3     4     5     6
(%i32) factor(1 + 57 + 57  + 57  + 57  + 57  + 57
                                                     2     3     4     5    25
                                       + (1 + 57 + 57  + 57  + 57  + 57 ) 57  )
素数ですね。
(%o32)       48298372740128698845992965109087345669603628794583613
                         2     3     4     5     6
(%i33) factor(1 + 59 + 59  + 59  + 59  + 59  + 59
                                                     2     3     4     5    25
                                       + (1 + 59 + 59  + 59  + 59  + 59 ) 59  )
(%o33)      16201699249 8383469742024381209530913776756952474089609
                         2     3     4     5     6
(%i34) factor(1 + 60 + 60  + 60  + 60  + 60  + 60
                                                     2     3     4     5    25
                                       + (1 + 60 + 60  + 60  + 60  + 60 ) 60  )
(%o34)     612481 15864539639677177938953 23137511905508683556587877
                         2     3     4     5     6
(%i35) factor(1 + 65 + 65  + 65  + 65  + 65  + 65
                                                     2     3     4     5    25
                                       + (1 + 65 + 65  + 65  + 65  + 65 ) 65  )
(%o35)     334528799932031 7407993103437264248691745744767106516211
                         2     3     4     5     6
(%i36) factor(1 + 67 + 67  + 67  + 67  + 67  + 67
                                                     2     3     4     5    25
                                       + (1 + 67 + 67  + 67  + 67  + 67 ) 67  )
(%o36)    2767 129674543 17136063503388565916956601379417491776632713
                         2     3     4     5     6
(%i37) factor(1 + 69 + 69  + 69  + 69  + 69  + 69
                                                     2     3     4     5    25
                                       + (1 + 69 + 69  + 69  + 69  + 69 ) 69  )
(%o37)    872962785391 69503103702311 244800878173492118448457763981
                         2     3     4     5     6
(%i38) factor(1 + 71 + 71  + 71  + 71  + 71  + 71
                                                     2     3     4     5    25
                                       + (1 + 71 + 71  + 71  + 71  + 71 ) 71  )
(%o38)     827016264025893456318079501 42305489049709412845639736533
                         2     3     4     5     6
(%i39) factor(1 + 72 + 72  + 72  + 72  + 72  + 72
                                                     2     3     4     5    25
                                       + (1 + 72 + 72  + 72  + 72  + 72 ) 72  )
(%o39)    50034178724515483946249 1063609640510043781493916860603777
                         2     3     4     5     6
(%i40) factor(1 + 74 + 74  + 74  + 74  + 74  + 74
                                                     2     3     4     5    25
                                       + (1 + 74 + 74  + 74  + 74  + 74 ) 74  )
(%o40)   383 26627 24166421 491051568157537302435560800907045877486791
                         2     3     4     5     6
(%i41) factor(1 + 76 + 76  + 76  + 76  + 76  + 76
                                                     2     3     4     5    25
                                       + (1 + 76 + 76  + 76  + 76  + 76 ) 76  )
(%o41) 149 317 1399 57831354187 153422774281582051 459244177266306167947
                         2     3     4     5     6
(%i42) factor(1 + 77 + 77  + 77  + 77  + 77  + 77
                                                     2     3     4     5    25
                                       + (1 + 77 + 77  + 77  + 77  + 77 ) 77  )
(%o42)    971921 53489745635069 7664739329720246976299949861221190457
                         2     3     4     5     6
(%i43) factor(1 + 80 + 80  + 80  + 80  + 80  + 80
                                                     2     3     4     5    25
                                       + (1 + 80 + 80  + 80  + 80  + 80 ) 80  )
(%o43)  35267 413027 76519433 1124718403553836355239629532018262272673
                         2     3     4     5     6
(%i44) factor(1 + 82 + 82  + 82  + 82  + 82  + 82
                                                     2     3     4     5    25
                                       + (1 + 82 + 82  + 82  + 82  + 82 ) 82  )
(%o44)    398933 6589378311150683846113814626964551059907932221867411
                         2     3     4     5     6
(%i45) factor(1 + 84 + 84  + 84  + 84  + 84  + 84
                                                     2     3     4     5    25
                                       + (1 + 84 + 84  + 84  + 84  + 84 ) 84  )
(%o45) 89 1499 318026573 49853938970233 2559913254283977800670184410059
                         2     3     4     5     6
(%i46) factor(1 + 87 + 87  + 87  + 87  + 87  + 87
                                                     2     3     4     5    25
                                       + (1 + 87 + 87  + 87  + 87  + 87 ) 87  )
(%o46) 4073 553991 3842941 31162969 937939789 8660231963 7066009736548877
                         2     3     4     5     6
(%i47) factor(1 + 89 + 89  + 89  + 89  + 89  + 89
                                                     2     3     4     5    25
                                       + (1 + 89 + 89  + 89  + 89  + 89 ) 89  )
(%o47) 3439934453 1254234402133 204014349373772491 34835170708658044079
                         2     3     4     5     6
(%i48) factor(1 + 90 + 90  + 90  + 90  + 90  + 90
                                                     2     3     4     5    25
                                       + (1 + 90 + 90  + 90  + 90  + 90 ) 90  )
(%o48)  8924029 43740131 2086205650688592637 52641664898236925397067157
                         2     3     4     5     6
(%i49) factor(1 + 91 + 91  + 91  + 91  + 91  + 91
                                                     2     3     4     5    25
                                       + (1 + 91 + 91  + 91  + 91  + 91 ) 91  )
(%o49)  193 41073647 7532169371545142115279981922734324169256635552343
                         2     3     4     5     6
(%i50) factor(1 + 94 + 94  + 94  + 94  + 94  + 94
                                                     2     3     4     5    25
                                       + (1 + 94 + 94  + 94  + 94  + 94 ) 94  )
(%o50) 491 599 1138807864297 471543476361160526871266580247250479140847
                         2     3     4     5     6
(%i51) factor(1 + 95 + 95  + 95  + 95  + 95  + 95
                                                     2     3     4     5    25
                                       + (1 + 95 + 95  + 95  + 95  + 95 ) 95  )
(%o51)   6551 33112830872907709237337165897281430019161170210738452071
                         2     3     4     5     6
(%i52) factor(1 + 96 + 96  + 96  + 96  + 96  + 96
                                                     2     3     4     5    25
                                       + (1 + 96 + 96  + 96  + 96  + 96 ) 96  )
(%o52) 1709 21727 188281 186003027979174882764187 228358026618715150000073
                         2     3     4     5     6
(%i53) factor(1 + 99 + 99  + 99  + 99  + 99  + 99
                                                     2     3     4     5    25
                                       + (1 + 99 + 99  + 99  + 99  + 99 ) 99  )
(%o53) 11159452831 14018365873 4776663692864813103925405118829123952327
(%o53)                               a.bat
(%i54)

b.txtに追加されるものは、
919,22
73,24
919,25
41,29
43,30
641,34
911,34
47,36
83,47
197,52
383,74
149,76
317,76
89,84
193,91
491,94
599.94

これより、Autohajiku.cの
#define max 1 /* この数から+100まで生成する */

#define max 100 /* この数から+100まで生成する */
になおして、
Autohajiku.cをコンパイル実行する。
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
107n+2
5n+3
53n+3
67n+3
151n+6
125n+8
53n+8
11n+9
107n+10
109n+10
5n+13
179n+13
13n+14
17n+15
139n+15
23n+16
5n+18
61n+18
103n+18
181n+18
31n+19
919n+22
73n+24
919n+25
41n+29
43n+30
641n+34
911n+34
47n+36
83n+47
197n+52
383n+74
149n+76
317n+76
89n+84
193n+91
491n+94
599n+94
b.txt read!  38 個 
$gcc -Wall hajiku-6.c -o hajiku-6

$./hajiku-6
100=17x5+15
!!! 101 !!!
!!! 102 !!!
103=5x20+3
103=5x18+13
103=5x17+18
!!! 104 !!!
105=13x7+14
!!! 106 !!!
!!! 107 !!!
108=5x21+3
108=11x9+9
108=5x19+13
108=23x4+16
108=5x18+18
109=107x1+2
109=53x2+3
!!! 110 !!!
111=41x2+29
112=31x3+19
113=5x22+3
113=5x20+13
113=5x19+18
114=53x2+8
!!! 115 !!!
116=43x2+30
117=107x1+10
117=17x6+15
118=5x23+3
118=5x21+13
118=13x8+14
118=5x20+18
119=11x10+9
119=109x1+10
!!! 120 !!!
121=103x1+18
!!! 122 !!!
123=5x24+3
123=5x22+13
123=5x21+18
!!! 124 !!!
!!! 125 !!!
!!! 126 !!!
!!! 127 !!!
128=5x25+3
128=5x23+13
128=5x22+18
!!! 129 !!!
130=11x11+9
130=47x2+36
130=83x1+47
131=13x9+14
131=23x5+16
!!! 132 !!!
133=5x26+3
133=125x1+8
133=5x24+13
133=5x23+18
134=17x7+15
!!! 135 !!!
!!! 136 !!!
137=67x2+3
138=5x27+3
138=5x25+13
138=5x24+18
!!! 139 !!!
140=61x2+18
141=11x12+9
!!! 142 !!!
143=5x28+3
143=5x26+13
143=5x25+18
143=31x4+19
144=13x10+14
!!! 145 !!!
!!! 146 !!!
!!! 147 !!!
148=5x29+3
148=5x27+13
148=5x26+18
!!! 149 !!!
!!! 150 !!!
151=17x8+15
152=11x13+9
152=41x3+29
153=5x30+3
153=5x28+13
153=5x27+18
154=139x1+15
154=23x6+16
!!! 155 !!!
!!! 156 !!!
157=151x1+6
157=13x11+14
158=5x31+3
158=5x29+13
158=5x28+18
159=43x3+30
!!! 160 !!!
!!! 161 !!!
162=53x3+3
163=5x32+3
163=11x14+9
163=5x30+13
163=5x29+18
!!! 164 !!!
!!! 165 !!!
!!! 166 !!!
167=53x3+8
168=5x33+3
168=5x31+13
168=17x9+15
168=5x30+18
!!! 169 !!!
170=13x12+14
170=73x2+24
!!! 171 !!!
!!! 172 !!!
173=5x34+3
173=5x32+13
173=5x31+18
173=89x1+84
174=11x15+9
174=31x5+19
!!! 175 !!!
!!! 176 !!!
177=23x7+16
177=47x3+36
178=5x35+3
178=5x33+13
178=5x32+18
!!! 179 !!!
!!! 180 !!!
!!! 181 !!!
!!! 182 !!!
183=5x36+3
183=5x34+13
183=13x13+14
183=5x33+18
!!! 184 !!!
185=11x16+9
185=17x10+15
!!! 186 !!!
!!! 187 !!!
188=5x37+3
188=5x35+13
188=5x34+18
!!! 189 !!!
!!! 190 !!!
!!! 191 !!!
192=179x1+13
193=5x38+3
193=5x36+13
193=5x35+18
193=41x4+29
!!! 194 !!!
!!! 195 !!!
196=11x17+9
196=13x14+14
!!! 197 !!!
198=5x39+3
198=5x37+13
198=5x36+18
199=181x1+18

生成されたa.batは、
factor((101^5+101^4+101^3+101^2+101+1)*101^25+101^6+101^5+101^4+101^3+101^2+101+1);
factor((102^5+102^4+102^3+102^2+102+1)*102^25+102^6+102^5+102^4+102^3+102^2+102+1);
factor((104^5+104^4+104^3+104^2+104+1)*104^25+104^6+104^5+104^4+104^3+104^2+104+1);
factor((106^5+106^4+106^3+106^2+106+1)*106^25+106^6+106^5+106^4+106^3+106^2+106+1);
factor((107^5+107^4+107^3+107^2+107+1)*107^25+107^6+107^5+107^4+107^3+107^2+107+1);
factor((110^5+110^4+110^3+110^2+110+1)*110^25+110^6+110^5+110^4+110^3+110^2+110+1);
factor((115^5+115^4+115^3+115^2+115+1)*115^25+115^6+115^5+115^4+115^3+115^2+115+1);
factor((120^5+120^4+120^3+120^2+120+1)*120^25+120^6+120^5+120^4+120^3+120^2+120+1);
factor((122^5+122^4+122^3+122^2+122+1)*122^25+122^6+122^5+122^4+122^3+122^2+122+1);
factor((124^5+124^4+124^3+124^2+124+1)*124^25+124^6+124^5+124^4+124^3+124^2+124+1);
factor((125^5+125^4+125^3+125^2+125+1)*125^25+125^6+125^5+125^4+125^3+125^2+125+1);
factor((126^5+126^4+126^3+126^2+126+1)*126^25+126^6+126^5+126^4+126^3+126^2+126+1);
factor((127^5+127^4+127^3+127^2+127+1)*127^25+127^6+127^5+127^4+127^3+127^2+127+1);
factor((129^5+129^4+129^3+129^2+129+1)*129^25+129^6+129^5+129^4+129^3+129^2+129+1);
factor((132^5+132^4+132^3+132^2+132+1)*132^25+132^6+132^5+132^4+132^3+132^2+132+1);
factor((135^5+135^4+135^3+135^2+135+1)*135^25+135^6+135^5+135^4+135^3+135^2+135+1);
factor((136^5+136^4+136^3+136^2+136+1)*136^25+136^6+136^5+136^4+136^3+136^2+136+1);
factor((139^5+139^4+139^3+139^2+139+1)*139^25+139^6+139^5+139^4+139^3+139^2+139+1);
factor((142^5+142^4+142^3+142^2+142+1)*142^25+142^6+142^5+142^4+142^3+142^2+142+1);
factor((145^5+145^4+145^3+145^2+145+1)*145^25+145^6+145^5+145^4+145^3+145^2+145+1);
factor((146^5+146^4+146^3+146^2+146+1)*146^25+146^6+146^5+146^4+146^3+146^2+146+1);
factor((147^5+147^4+147^3+147^2+147+1)*147^25+147^6+147^5+147^4+147^3+147^2+147+1);
factor((149^5+149^4+149^3+149^2+149+1)*149^25+149^6+149^5+149^4+149^3+149^2+149+1);
factor((150^5+150^4+150^3+150^2+150+1)*150^25+150^6+150^5+150^4+150^3+150^2+150+1);
factor((155^5+155^4+155^3+155^2+155+1)*155^25+155^6+155^5+155^4+155^3+155^2+155+1);
factor((156^5+156^4+156^3+156^2+156+1)*156^25+156^6+156^5+156^4+156^3+156^2+156+1);
factor((160^5+160^4+160^3+160^2+160+1)*160^25+160^6+160^5+160^4+160^3+160^2+160+1);
factor((161^5+161^4+161^3+161^2+161+1)*161^25+161^6+161^5+161^4+161^3+161^2+161+1);
factor((164^5+164^4+164^3+164^2+164+1)*164^25+164^6+164^5+164^4+164^3+164^2+164+1);
factor((165^5+165^4+165^3+165^2+165+1)*165^25+165^6+165^5+165^4+165^3+165^2+165+1);
factor((166^5+166^4+166^3+166^2+166+1)*166^25+166^6+166^5+166^4+166^3+166^2+166+1);
factor((169^5+169^4+169^3+169^2+169+1)*169^25+169^6+169^5+169^4+169^3+169^2+169+1);
factor((171^5+171^4+171^3+171^2+171+1)*171^25+171^6+171^5+171^4+171^3+171^2+171+1);
factor((172^5+172^4+172^3+172^2+172+1)*172^25+172^6+172^5+172^4+172^3+172^2+172+1);
factor((175^5+175^4+175^3+175^2+175+1)*175^25+175^6+175^5+175^4+175^3+175^2+175+1);
factor((176^5+176^4+176^3+176^2+176+1)*176^25+176^6+176^5+176^4+176^3+176^2+176+1);
factor((179^5+179^4+179^3+179^2+179+1)*179^25+179^6+179^5+179^4+179^3+179^2+179+1);
factor((180^5+180^4+180^3+180^2+180+1)*180^25+180^6+180^5+180^4+180^3+180^2+180+1);
factor((181^5+181^4+181^3+181^2+181+1)*181^25+181^6+181^5+181^4+181^3+181^2+181+1);
factor((182^5+182^4+182^3+182^2+182+1)*182^25+182^6+182^5+182^4+182^3+182^2+182+1);
factor((184^5+184^4+184^3+184^2+184+1)*184^25+184^6+184^5+184^4+184^3+184^2+184+1);
factor((186^5+186^4+186^3+186^2+186+1)*186^25+186^6+186^5+186^4+186^3+186^2+186+1);
factor((187^5+187^4+187^3+187^2+187+1)*187^25+187^6+187^5+187^4+187^3+187^2+187+1);
factor((189^5+189^4+189^3+189^2+189+1)*189^25+189^6+189^5+189^4+189^3+189^2+189+1);
factor((190^5+190^4+190^3+190^2+190+1)*190^25+190^6+190^5+190^4+190^3+190^2+190+1);
factor((191^5+191^4+191^3+191^2+191+1)*191^25+191^6+191^5+191^4+191^3+191^2+191+1);
factor((194^5+194^4+194^3+194^2+194+1)*194^25+194^6+194^5+194^4+194^3+194^2+194+1);
factor((195^5+195^4+195^3+195^2+195+1)*195^25+195^6+195^5+195^4+195^3+195^2+195+1);
factor((197^5+197^4+197^3+197^2+197+1)*197^25+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 + 101 + 101  + 101  + 101  + 101  + 101
                                                 2      3      4      5     25
                                 + (1 + 101 + 101  + 101  + 101  + 101 ) 101  )
(%o2) 84443 1227463 15641370336479 1502405841103891 558892730949838731613
                          2      3      4      5      6
(%i3) factor(1 + 102 + 102  + 102  + 102  + 102  + 102
                                                 2      3      4      5     25
                                 + (1 + 102 + 102  + 102  + 102  + 102 ) 102  )
(%o3)   226460651 8077764720422284700933210807653156387706091020188793
                          2      3      4      5      6
(%i4) factor(1 + 104 + 104  + 104  + 104  + 104  + 104
                                                 2      3      4      5     25
                                 + (1 + 104 + 104  + 104  + 104  + 104 ) 104  )
(%o4)   13444243451931826350977 243590263591086291703339066323333426473
                          2      3      4      5      6
(%i5) factor(1 + 106 + 106  + 106  + 106  + 106  + 106
                                                 2      3      4      5     25
                                 + (1 + 106 + 106  + 106  + 106  + 106 ) 106  )
(%o5)   200521487 28915560001017096807709994544460619416120989013971689
                          2      3      4      5      6
(%i6) factor(1 + 107 + 107  + 107  + 107  + 107  + 107
                                                 2      3      4      5     25
                                 + (1 + 107 + 107  + 107  + 107  + 107 ) 107  )
素数ですね。
(%o6)    7684068769474475300446580304664594595663938191358980332796313
                          2      3      4      5      6
(%i7) factor(1 + 110 + 110  + 110  + 110  + 110  + 110
                                                 2      3      4      5     25
                                 + (1 + 110 + 110  + 110  + 110  + 110 ) 110  )
(%o7)  79 5699599 39108877322559960730352874886845214256145726050316091
                          2      3      4      5      6
(%i8) factor(1 + 115 + 115  + 115  + 115  + 115  + 115
                                                 2      3      4      5     25
                                 + (1 + 115 + 115  + 115  + 115  + 115 ) 115  )
(%o8) 11923 883517 490311737 55081464886537 56456089621163 4158523694137133
                          2      3      4      5      6
(%i9) factor(1 + 120 + 120  + 120  + 120  + 120  + 120
                                                 2      3      4      5     25
                                 + (1 + 120 + 120  + 120  + 120  + 120 ) 120  )
(%o9) 1873 29599 33941 127213211423113708432396600803142459669464816099803
                           2      3      4      5      6
(%i10) factor(1 + 122 + 122  + 122  + 122  + 122  + 122
                                                 2      3      4      5     25
                                 + (1 + 122 + 122  + 122  + 122  + 122 ) 122  )
(%o10) 1416769 11567411 2201636627 4902735193 2221519296380577477753932871127
                           2      3      4      5      6
(%i11) factor(1 + 124 + 124  + 124  + 124  + 124  + 124
                                                 2      3      4      5     25
                                 + (1 + 124 + 124  + 124  + 124  + 124 ) 124  )
素数ですね。
(%o11)  639981070607619153280549737794442986667148437565555268907655501
                           2      3      4      5      6
(%i12) factor(1 + 125 + 125  + 125  + 125  + 125  + 125
                                                 2      3      4      5     25
                                 + (1 + 125 + 125  + 125  + 125  + 125 ) 125  )
素数ですね。
(%o12)  814308031195669688008867415085489938064711168408397705324234501
                           2      3      4      5      6
(%i13) factor(1 + 126 + 126  + 126  + 126  + 126  + 126
                                                 2      3      4      5     25
                                 + (1 + 126 + 126  + 126  + 126  + 126 ) 126  )
素数ですね。
(%o13) 1034134163463773835091053549950327873981786173284938770249710763
                           2      3      4      5      6
(%i14) factor(1 + 127 + 127  + 127  + 127  + 127  + 127
                                                 2      3      4      5     25
                                 + (1 + 127 + 127  + 127  + 127  + 127 ) 127  )
(%o14) 941 3571524165005899 2807201229435360042269 138940239373389757493083
                           2      3      4      5      6
(%i15) factor(1 + 129 + 129  + 129  + 129  + 129  + 129
                                                 2      3      4      5     25
                                 + (1 + 129 + 129  + 129  + 129  + 129 ) 129  )
(%o15) 223 736111 793963061 310349637688380300809 51781107964699217726659393
                           2      3      4      5      6
(%i16) factor(1 + 132 + 132  + 132  + 132  + 132  + 132
                                                 2      3      4      5     25
                                 + (1 + 132 + 132  + 132  + 132  + 132 ) 132  )
(%o16) 167 33161 2865509 548111522099 308440896038456579 1555728534249915995591
                           2      3      4      5      6
(%i17) factor(1 + 135 + 135  + 135  + 135  + 135  + 135
                                                 2      3      4      5     25
                                 + (1 + 135 + 135  + 135  + 135  + 135 ) 135  )
(%o17) 547 1730167 17173159 156710759 3215271636156710345260925159809293741869
                           2      3      4      5      6
(%i18) factor(1 + 136 + 136  + 136  + 136  + 136  + 136
                                                 2      3      4      5     25
                                 + (1 + 136 + 136  + 136  + 136  + 136 ) 136  )
(%o18) 639703 787099 20293859201875967385862189899243092815639456175162509
                           2      3      4      5      6
(%i19) factor(1 + 139 + 139  + 139  + 139  + 139  + 139
                                                 2      3      4      5     25
                                 + (1 + 139 + 139  + 139  + 139  + 139 ) 139  )
(%o19) 457 1033 7747013639143 4786928045520990433 1122979891936114701869572399
                           2      3      4      5      6
(%i20) factor(1 + 142 + 142  + 142  + 142  + 142  + 142
                                                 2      3      4      5     25
                                 + (1 + 142 + 142  + 142  + 142  + 142 ) 142  )
(%o20) 1865150831400806173837245907 19998876801752334619723359685447387129
                           2      3      4      5      6
(%i21) factor(1 + 145 + 145  + 145  + 145  + 145  + 145
                                                 2      3      4      5     25
                                 + (1 + 145 + 145  + 145  + 145  + 145 ) 145  )
(%o21) 2689 32803 791664573589366221833925127600473389338388469976518122863
                           2      3      4      5      6
(%i22) factor(1 + 146 + 146  + 146  + 146  + 146  + 146
                                                 2      3      4      5     25
                                 + (1 + 146 + 146  + 146  + 146  + 146 ) 146  )
(%o22) 2753 312170198551 1212178899761077 82377034757132656927103783612450693
                           2      3      4      5      6
(%i23) factor(1 + 147 + 147  + 147  + 147  + 147  + 147
                                                 2      3      4      5     25
                                 + (1 + 147 + 147  + 147  + 147  + 147 ) 147  )
(%o23) 99693415211787759013 1056374836429351774842100200490005840668068021
                           2      3      4      5      6
(%i24) factor(1 + 149 + 149  + 149  + 149  + 149  + 149
                                                 2      3      4      5     25
                                 + (1 + 149 + 149  + 149  + 149  + 149 ) 149  )
(%o24) 11113 4984033423 24620236518075487384397 115826550955582731374975159567
                           2      3      4      5      6
(%i25) factor(1 + 150 + 150  + 150  + 150  + 150  + 150
                                                 2      3      4      5     25
                                 + (1 + 150 + 150  + 150  + 150  + 150 ) 150  )
(%o25) 2099 65931821 2840617333 2847058374107163907 172474997937260088587746699
                           2      3      4      5      6
(%i26) factor(1 + 155 + 155  + 155  + 155  + 155  + 155
                                                 2      3      4      5     25
                                 + (1 + 155 + 155  + 155  + 155  + 155 ) 155  )
(%o26) 763258751952357226508513 676223298145831566387137542416464388694937
                           2      3      4      5      6
(%i27) factor(1 + 156 + 156  + 156  + 156  + 156  + 156
                                                 2      3      4      5     25
                                 + (1 + 156 + 156  + 156  + 156  + 156 ) 156  )
(%o27) 929 4476276394039 19161062233784905063859 7855587322194029827484004217
                           2      3      4      5      6
(%i28) factor(1 + 160 + 160  + 160  + 160  + 160  + 160
                                                 2      3      4      5     25
                                 + (1 + 160 + 160  + 160  + 160  + 160 ) 160  )
(%o28) 929 6173 264034081 26317969270613288311 33565875793819163955414091873363
                           2      3      4      5      6
(%i29) factor(1 + 161 + 161  + 161  + 161  + 161  + 161
                                                 2      3      4      5     25
                                 + (1 + 161 + 161  + 161  + 161  + 161 ) 161  )
(%o29) 223 3361 39827 629897 2152121077 296263289429 406448797147
                                                             330911058512182739
                           2      3      4      5      6
(%i30) factor(1 + 164 + 164  + 164  + 164  + 164  + 164
                                                 2      3      4      5     25
                                 + (1 + 164 + 164  + 164  + 164  + 164 ) 164  )
(%o30) 7589053 3345729019331 110482460084978250541779522626311097281014810227
                           2      3      4      5      6
(%i31) factor(1 + 165 + 165  + 165  + 165  + 165  + 165
                                                 2      3      4      5     25
                                 + (1 + 165 + 165  + 165  + 165  + 165 ) 165  )
素数ですね。
(%o31) 3366343449551929589742276412452581908553576305609345456398422245141
                           2      3      4      5      6
(%i32) factor(1 + 166 + 166  + 166  + 166  + 166  + 166
                                                 2      3      4      5     25
                                 + (1 + 166 + 166  + 166  + 166  + 166 ) 166  )
(%o32) 2087 38923 1688780505732270219976412107 29414727040572772818847043097629
                           2      3      4      5      6
(%i33) factor(1 + 169 + 169  + 169  + 169  + 169  + 169
                                                 2      3      4      5     25
                                 + (1 + 169 + 169  + 169  + 169  + 169 ) 169  )
(%o33) 277 184985597 181935398319953 404354827327429369
                                                      1831812585692703064887157
                           2      3      4      5      6
(%i34) factor(1 + 171 + 171  + 171  + 171  + 171  + 171
                                                 2      3      4      5     25
                                 + (1 + 171 + 171  + 171  + 171  + 171 ) 171  )
(%o34) 131 38431 1951989691787566642354120567129345005542255671975239061030253
                           2      3      4      5      6
(%i35) factor(1 + 172 + 172  + 172  + 172  + 172  + 172
                                                 2      3      4      5     25
                                 + (1 + 172 + 172  + 172  + 172  + 172 ) 172  )
(%o35) 113501 624783516944591 165065568657943410828727270741030728128084601103
                           2      3      4      5      6
(%i36) factor(1 + 175 + 175  + 175  + 175  + 175  + 175
                                                 2      3      4      5     25
                                 + (1 + 175 + 175  + 175  + 175  + 175 ) 175  )
(%o36) 1903483 450901273 3460119329244733 29783372636835677
                                                          222297636512802813779
                           2      3      4      5      6
(%i37) factor(1 + 176 + 176  + 176  + 176  + 176  + 176
                                                 2      3      4      5     25
                                 + (1 + 176 + 176  + 176  + 176  + 176 ) 176  )
(%o37) 757 1129 60831037 61404659 8443053001 682164380372471
                                                         1268673106970204372797
                           2      3      4      5      6
(%i38) factor(1 + 179 + 179  + 179  + 179  + 179  + 179
                                                 2      3      4      5     25
                                 + (1 + 179 + 179  + 179  + 179  + 179 ) 179  )
(%o38) 85009 440372356064436480313 1034520263869652730615949250028335262234913
                           2      3      4      5      6
(%i39) factor(1 + 180 + 180  + 180  + 180  + 180  + 180
                                                 2      3      4      5     25
                                 + (1 + 180 + 180  + 180  + 180  + 180 ) 180  )
(%o39) 18211 6630952394327480369 379039894818560008985455787039562549107933159
                           2      3      4      5      6
(%i40) factor(1 + 181 + 181  + 181  + 181  + 181  + 181
                                                 2      3      4      5     25
                                 + (1 + 181 + 181  + 181  + 181  + 181 ) 181  )
(%o40) 3821 9433 126241 14318497667
                                  829542353652733212361849243660840601429945083
                           2      3      4      5      6
(%i41) factor(1 + 182 + 182  + 182  + 182  + 182  + 182
                                                 2      3      4      5     25
                                 + (1 + 182 + 182  + 182  + 182  + 182 ) 182  )
素数ですね。
(%o41) 63757965835055929888448256196812923262870434617967855893566808315363
                           2      3      4      5      6
(%i42) factor(1 + 184 + 184  + 184  + 184  + 184  + 184
                                                 2      3      4      5     25
                                 + (1 + 184 + 184  + 184  + 184  + 184 ) 184  )
(%o42) 853 121645681149959 852816703234612119948138121916414824376229708097283
                           2      3      4      5      6
(%i43) factor(1 + 186 + 186  + 186  + 186  + 186  + 186
                                                 2      3      4      5     25
                                 + (1 + 186 + 186  + 186  + 186  + 186 ) 186  )
(%o43) 208244818373 587699523265191391260503332421383916232234302703302739851
                           2      3      4      5      6
(%i44) factor(1 + 187 + 187  + 187  + 187  + 187  + 187
                                                 2      3      4      5     25
                                 + (1 + 187 + 187  + 187  + 187  + 187 ) 187  )
(%o44) 47353 280537 7231141 40263074136476686589
                                               37164256671065334017165752396697
                           2      3      4      5      6
(%i45) factor(1 + 189 + 189  + 189  + 189  + 189  + 189
                                                 2      3      4      5     25
                                 + (1 + 189 + 189  + 189  + 189  + 189 ) 189  )
(%o45) 79 11643901 1534389575258283851531
                                        140118940679681721320604190346274409589
                           2      3      4      5      6
(%i46) factor(1 + 190 + 190  + 190  + 190  + 190  + 190
                                                 2      3      4      5     25
                                 + (1 + 190 + 190  + 190  + 190  + 190 ) 190  )
(%o46) 188701 7096828755859289 173006052831269004293676685893855357554351473919
                           2      3      4      5      6
(%i47) factor(1 + 191 + 191  + 191  + 191  + 191  + 191
                                                 2      3      4      5     25
                                 + (1 + 191 + 191  + 191  + 191  + 191 ) 191  )
(%o2) 9533 37691 86192085703407884665610072231 8756814311323578486575886486521
                          2      3      4      5      6
(%i2) factor(1 + 194 + 194  + 194  + 194  + 194  + 194
                                                 2      3      4      5     25
                                 + (1 + 194 + 194  + 194  + 194  + 194 ) 194  )
(%o2) 227 3264436041791279 691054801546130353 845181162022754289014363692308619
                          2      3      4      5      6
(%i3) factor(1 + 195 + 195  + 195  + 195  + 195  + 195
                                                 2      3      4      5     25
                                 + (1 + 195 + 195  + 195  + 195  + 195 ) 195  )
(%o3) 1721 5179 9932213 5704248230789906089219645633891749600770781719243563063
                          2      3      4      5      6
(%i4) factor(1 + 197 + 197  + 197  + 197  + 197  + 197
                                                 2      3      4      5     25
                                 + (1 + 197 + 197  + 197  + 197  + 197 ) 197  )
(%o4) 366181 885756475073 470819858200423706466391 4490885943694974671108493431
(%o4)                               a.bat


b.txtに追加されるものは、

79,110
941,127
223,129
167,132
547,135
457,139
929,156
223,161
277,169
131,171
757,176
853,184
79,189
227,194