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

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

多項式を変える。

(x^5+x^4+x^3+x^2+x+1)*x^19+x^6+x^5+x^4+x^3+x^2+x+1

(%i2) factor((x^5+x^4+x^3+x^2+x+1)*x^19+x^6+x^5+x^4+x^3+x^2+x+1);
       24    23    22    21    20    19    6    5    4    3    2
(%o2) x   + x   + x   + x   + x   + x   + x  + x  + x  + x  + x  + x + 1


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

e10.batをmaximaで実行した。

read and interpret file: e10.bat
(%i4) for x from 2 while x < 20 do (y :
                2    3    4    5    6             2    3    4    5   19
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)= 33030271
素数ですね。

        x= 3
factor(x)= 19 127 313 560149
        x= 4
factor(x)= 61 487 12630300703
        x= 5
factor(x)= 79 241 399181 9802759
        x= 6
factor(x)= 1279 89273 49797927989
        x= 7
factor(x)= 107 113 10093 141223 12969049
        x= 8
factor(x)= 5396969678252726850121
素数ですね。
        x= 9
factor(x)= 43 97 229 10372433 9057651803
        x= 10
factor(x)= 19 44053 300425707 4418662939
        x= 11
factor(x)= 155203 779346661 89574850711
        x= 12
factor(x)= 17 131 8147 4779917349922922549
        x= 13
factor(x)= 2243 59951 4372972703148775177
        x= 14
factor(x)= 13 43 6192209966911299596216629
        x= 15
factor(x)= 103 175112108718478008381489847
        x= 16
factor(x)= 84510034978024378372176548113
素数ですね。
          x= 17
factor(x)= 95731 1286102299 2929374681838669
        x= 18
factor(x)= 987902043643 1434332402733688957
        x= 19
factor(x)= 43 83 1448841781230914882417996249
(%o4)                                done
(%o4)                               e10.bat
(%i5)

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

生成されたa.batは、
factor((1^5+1^4+1^3+1^2+1+1)*1^19+1^6+1^5+1^4+1^3+1^2+1+1);
factor((2^5+2^4+2^3+2^2+2+1)*2^19+2^6+2^5+2^4+2^3+2^2+2+1);
factor((6^5+6^4+6^3+6^2+6+1)*6^19+6^6+6^5+6^4+6^3+6^2+6+1);
factor((8^5+8^4+8^3+8^2+8+1)*8^19+8^6+8^5+8^4+8^3+8^2+8+1);
factor((11^5+11^4+11^3+11^2+11+1)*11^19+11^6+11^5+11^4+11^3+11^2+11+1);
factor((13^5+13^4+13^3+13^2+13+1)*13^19+13^6+13^5+13^4+13^3+13^2+13+1);
factor((16^5+16^4+16^3+16^2+16+1)*16^19+16^6+16^5+16^4+16^3+16^2+16+1);
factor((17^5+17^4+17^3+17^2+17+1)*17^19+17^6+17^5+17^4+17^3+17^2+17+1);
factor((18^5+18^4+18^3+18^2+18+1)*18^19+18^6+18^5+18^4+18^3+18^2+18+1);
factor((20^5+20^4+20^3+20^2+20+1)*20^19+20^6+20^5+20^4+20^3+20^2+20+1);
factor((21^5+21^4+21^3+21^2+21+1)*21^19+21^6+21^5+21^4+21^3+21^2+21+1);
factor((23^5+23^4+23^3+23^2+23+1)*23^19+23^6+23^5+23^4+23^3+23^2+23+1);
factor((24^5+24^4+24^3+24^2+24+1)*24^19+24^6+24^5+24^4+24^3+24^2+24+1);
factor((25^5+25^4+25^3+25^2+25+1)*25^19+25^6+25^5+25^4+25^3+25^2+25+1);
factor((26^5+26^4+26^3+26^2+26+1)*26^19+26^6+26^5+26^4+26^3+26^2+26+1);
factor((28^5+28^4+28^3+28^2+28+1)*28^19+28^6+28^5+28^4+28^3+28^2+28+1);
factor((30^5+30^4+30^3+30^2+30+1)*30^19+30^6+30^5+30^4+30^3+30^2+30+1);
factor((31^5+31^4+31^3+31^2+31+1)*31^19+31^6+31^5+31^4+31^3+31^2+31+1);
factor((32^5+32^4+32^3+32^2+32+1)*32^19+32^6+32^5+32^4+32^3+32^2+32+1);
factor((33^5+33^4+33^3+33^2+33+1)*33^19+33^6+33^5+33^4+33^3+33^2+33+1);
factor((34^5+34^4+34^3+34^2+34+1)*34^19+34^6+34^5+34^4+34^3+34^2+34+1);
factor((35^5+35^4+35^3+35^2+35+1)*35^19+35^6+35^5+35^4+35^3+35^2+35+1);
factor((36^5+36^4+36^3+36^2+36+1)*36^19+36^6+36^5+36^4+36^3+36^2+36+1);
factor((37^5+37^4+37^3+37^2+37+1)*37^19+37^6+37^5+37^4+37^3+37^2+37+1);
factor((38^5+38^4+38^3+38^2+38+1)*38^19+38^6+38^5+38^4+38^3+38^2+38+1);
factor((39^5+39^4+39^3+39^2+39+1)*39^19+39^6+39^5+39^4+39^3+39^2+39+1);
factor((42^5+42^4+42^3+42^2+42+1)*42^19+42^6+42^5+42^4+42^3+42^2+42+1);
factor((43^5+43^4+43^3+43^2+43+1)*43^19+43^6+43^5+43^4+43^3+43^2+43+1);
factor((44^5+44^4+44^3+44^2+44+1)*44^19+44^6+44^5+44^4+44^3+44^2+44+1);
factor((45^5+45^4+45^3+45^2+45+1)*45^19+45^6+45^5+45^4+45^3+45^2+45+1);
factor((47^5+47^4+47^3+47^2+47+1)*47^19+47^6+47^5+47^4+47^3+47^2+47+1);
factor((49^5+49^4+49^3+49^2+49+1)*49^19+49^6+49^5+49^4+49^3+49^2+49+1);
factor((50^5+50^4+50^3+50^2+50+1)*50^19+50^6+50^5+50^4+50^3+50^2+50+1);
factor((51^5+51^4+51^3+51^2+51+1)*51^19+51^6+51^5+51^4+51^3+51^2+51+1);
factor((54^5+54^4+54^3+54^2+54+1)*54^19+54^6+54^5+54^4+54^3+54^2+54+1);
factor((55^5+55^4+55^3+55^2+55+1)*55^19+55^6+55^5+55^4+55^3+55^2+55+1);
factor((56^5+56^4+56^3+56^2+56+1)*56^19+56^6+56^5+56^4+56^3+56^2+56+1);
factor((58^5+58^4+58^3+58^2+58+1)*58^19+58^6+58^5+58^4+58^3+58^2+58+1);
factor((59^5+59^4+59^3+59^2+59+1)*59^19+59^6+59^5+59^4+59^3+59^2+59+1);
factor((61^5+61^4+61^3+61^2+61+1)*61^19+61^6+61^5+61^4+61^3+61^2+61+1);
factor((64^5+64^4+64^3+64^2+64+1)*64^19+64^6+64^5+64^4+64^3+64^2+64+1);
factor((68^5+68^4+68^3+68^2+68+1)*68^19+68^6+68^5+68^4+68^3+68^2+68+1);
factor((69^5+69^4+69^3+69^2+69+1)*69^19+69^6+69^5+69^4+69^3+69^2+69+1);
factor((70^5+70^4+70^3+70^2+70+1)*70^19+70^6+70^5+70^4+70^3+70^2+70+1);
factor((71^5+71^4+71^3+71^2+71+1)*71^19+71^6+71^5+71^4+71^3+71^2+71+1);
factor((72^5+72^4+72^3+72^2+72+1)*72^19+72^6+72^5+72^4+72^3+72^2+72+1);
factor((73^5+73^4+73^3+73^2+73+1)*73^19+73^6+73^5+73^4+73^3+73^2+73+1);
factor((74^5+74^4+74^3+74^2+74+1)*74^19+74^6+74^5+74^4+74^3+74^2+74+1);
factor((75^5+75^4+75^3+75^2+75+1)*75^19+75^6+75^5+75^4+75^3+75^2+75+1);
factor((76^5+76^4+76^3+76^2+76+1)*76^19+76^6+76^5+76^4+76^3+76^2+76+1);
factor((77^5+77^4+77^3+77^2+77+1)*77^19+77^6+77^5+77^4+77^3+77^2+77+1);
factor((78^5+78^4+78^3+78^2+78+1)*78^19+78^6+78^5+78^4+78^3+78^2+78+1);
factor((81^5+81^4+81^3+81^2+81+1)*81^19+81^6+81^5+81^4+81^3+81^2+81+1);
factor((82^5+82^4+82^3+82^2+82+1)*82^19+82^6+82^5+82^4+82^3+82^2+82+1);
factor((83^5+83^4+83^3+83^2+83+1)*83^19+83^6+83^5+83^4+83^3+83^2+83+1);
factor((85^5+85^4+85^3+85^2+85+1)*85^19+85^6+85^5+85^4+85^3+85^2+85+1);
factor((87^5+87^4+87^3+87^2+87+1)*87^19+87^6+87^5+87^4+87^3+87^2+87+1);
factor((88^5+88^4+88^3+88^2+88+1)*88^19+88^6+88^5+88^4+88^3+88^2+88+1);
factor((89^5+89^4+89^3+89^2+89+1)*89^19+89^6+89^5+89^4+89^3+89^2+89+1);
factor((90^5+90^4+90^3+90^2+90+1)*90^19+90^6+90^5+90^4+90^3+90^2+90+1);
factor((91^5+91^4+91^3+91^2+91+1)*91^19+91^6+91^5+91^4+91^3+91^2+91+1);
factor((93^5+93^4+93^3+93^2+93+1)*93^19+93^6+93^5+93^4+93^3+93^2+93+1);
factor((94^5+94^4+94^3+94^2+94+1)*94^19+94^6+94^5+94^4+94^3+94^2+94+1);
factor((96^5+96^4+96^3+96^2+96+1)*96^19+96^6+96^5+96^4+96^3+96^2+96+1);
factor((99^5+99^4+99^3+99^2+99+1)*99^19+99^6+99^5+99^4+99^3+99^2+99+1);

実行結果を示す。

read and interpret file: a.bat
                      2    3    4    5    6             2    3    4    5   19
(%i6) factor(1 + 1 + 1  + 1  + 1  + 1  + 1  + (1 + 1 + 1  + 1  + 1  + 1 ) 1  )
(%o6)                                 13
素数ですね。
                      2    3    4    5    6             2    3    4    5   19
(%i7) factor(1 + 2 + 2  + 2  + 2  + 2  + 2  + (1 + 2 + 2  + 2  + 2  + 2 ) 2  )
(%o7)                              33030271
素数ですね。
                      2    3    4    5    6             2    3    4    5   19
(%i8) factor(1 + 6 + 6  + 6  + 6  + 6  + 6  + (1 + 6 + 6  + 6  + 6  + 6 ) 6  )
(%o8)                       1279 89273 49797927989
                      2    3    4    5    6             2    3    4    5   19
(%i9) factor(1 + 8 + 8  + 8  + 8  + 8  + 8  + (1 + 8 + 8  + 8  + 8  + 8 ) 8  )
(%o9)                       5396969678252726850121
素数ですね。
                         2     3     4     5     6
(%i10) factor(1 + 11 + 11  + 11  + 11  + 11  + 11
                                                     2     3     4     5    19
                                       + (1 + 11 + 11  + 11  + 11  + 11 ) 11  )
(%o10)                   155203 779346661 89574850711
                         2     3     4     5     6
(%i11) factor(1 + 13 + 13  + 13  + 13  + 13  + 13
                                                     2     3     4     5    19
                                       + (1 + 13 + 13  + 13  + 13  + 13 ) 13  )
(%o11)                  2243 59951 4372972703148775177
                         2     3     4     5     6
(%i12) factor(1 + 16 + 16  + 16  + 16  + 16  + 16
                                                     2     3     4     5    19
                                       + (1 + 16 + 16  + 16  + 16  + 16 ) 16  )
(%o12)                   84510034978024378372176548113
素数ですね。
                         2     3     4     5     6
(%i13) factor(1 + 17 + 17  + 17  + 17  + 17  + 17
                                                     2     3     4     5    19
                                       + (1 + 17 + 17  + 17  + 17  + 17 ) 17  )
(%o13)                 95731 1286102299 2929374681838669
                         2     3     4     5     6
(%i14) factor(1 + 18 + 18  + 18  + 18  + 18  + 18
                                                     2     3     4     5    19
                                       + (1 + 18 + 18  + 18  + 18  + 18 ) 18  )
(%o14)                 987902043643 1434332402733688957
                         2     3     4     5     6
(%i15) factor(1 + 20 + 20  + 20  + 20  + 20  + 20
                                                     2     3     4     5    19
                                       + (1 + 20 + 20  + 20  + 20  + 20 ) 20  )
(%o15)                41 199 2164508774663561710994002619
                         2     3     4     5     6
(%i16) factor(1 + 21 + 21  + 21  + 21  + 21  + 21
                                                     2     3     4     5    19
                                       + (1 + 21 + 21  + 21  + 21  + 21 ) 21  )
(%o16)               211 241 191189509769 5843712080648927
                         2     3     4     5     6
(%i17) factor(1 + 23 + 23  + 23  + 23  + 23  + 23
                                                     2     3     4     5    19
                                       + (1 + 23 + 23  + 23  + 23  + 23 ) 23  )
(%o17)              31 4493 151643 69274423 343146694310743
                         2     3     4     5     6
(%i18) factor(1 + 24 + 24  + 24  + 24  + 24  + 24
                                                     2     3     4     5    19
                                       + (1 + 24 + 24  + 24  + 24  + 24 ) 24  )
(%o18)              467 4909 29405347 20645099634211018661
                         2     3     4     5     6
(%i19) factor(1 + 25 + 25  + 25  + 25  + 25  + 25
                                                     2     3     4     5    19
                                       + (1 + 25 + 25  + 25  + 25  + 25 ) 25  )
(%o19)              19861 1714483 79567303 1365903573227509
                         2     3     4     5     6
(%i20) factor(1 + 26 + 26  + 26  + 26  + 26  + 26
                                                     2     3     4     5    19
                                       + (1 + 26 + 26  + 26  + 26  + 26 ) 26  )
(%o20)               199176614434597 47550527939965362379
                         2     3     4     5     6
(%i21) factor(1 + 28 + 28  + 28  + 28  + 28  + 28
                                                     2     3     4     5    19
                                       + (1 + 28 + 28  + 28  + 28  + 28 ) 28  )
(%o21)               8177753 6838376837364239966615754677
                         2     3     4     5     6
(%i22) factor(1 + 30 + 30  + 30  + 30  + 30  + 30
                                                     2     3     4     5    19
                                       + (1 + 30 + 30  + 30  + 30  + 30 ) 30  )
(%o22)              1554779 432994765633 433992332853369233
                         2     3     4     5     6
(%i23) factor(1 + 31 + 31  + 31  + 31  + 31  + 31
                                                     2     3     4     5    19
                                       + (1 + 31 + 31  + 31  + 31  + 31 ) 31  )
(%o23)              5384357551 119065845126925252577621263
                         2     3     4     5     6
(%i24) factor(1 + 32 + 32  + 32  + 32  + 32  + 32
                                                     2     3     4     5    19
                                       + (1 + 32 + 32  + 32  + 32  + 32 ) 32  )
(%o24)              320524697 899580233 4758678467873347201
                         2     3     4     5     6
(%i25) factor(1 + 33 + 33  + 33  + 33  + 33  + 33
                                                     2     3     4     5    19
                                       + (1 + 33 + 33  + 33  + 33  + 33 ) 33  )
(%o25)             1926413 65461207859 22749146292067733563
                         2     3     4     5     6
(%i26) factor(1 + 34 + 34  + 34  + 34  + 34  + 34
                                                     2     3     4     5    19
                                       + (1 + 34 + 34  + 34  + 34  + 34 ) 34  )
(%o26)               5867579544837503599159679261370360991
素数ですね。
                         2     3     4     5     6
(%i27) factor(1 + 35 + 35  + 35  + 35  + 35  + 35
                                                     2     3     4     5    19
                                       + (1 + 35 + 35  + 35  + 35  + 35 ) 35  )
(%o27)              641 18338514878179941363548838221129321
                         2     3     4     5     6
(%i28) factor(1 + 36 + 36  + 36  + 36  + 36  + 36
                                                     2     3     4     5    19
                                       + (1 + 36 + 36  + 36  + 36  + 36 ) 36  )
(%o28)            1093 11136911 1897184481828148708392786431
                         2     3     4     5     6
(%i29) factor(1 + 37 + 37  + 37  + 37  + 37  + 37
                                                     2     3     4     5    19
                                       + (1 + 37 + 37  + 37  + 37  + 37 ) 37  )
(%o29)              829 53726193288072032345619360924462889
                         2     3     4     5     6
(%i30) factor(1 + 38 + 38  + 38  + 38  + 38  + 38
                                                     2     3     4     5    19
                                       + (1 + 38 + 38  + 38  + 38  + 38 ) 38  )
(%o30)              953 88571763260617125734245886044164587
                         2     3     4     5     6
(%i31) factor(1 + 39 + 39  + 39  + 39  + 39  + 39
                                                     2     3     4     5    19
                                       + (1 + 39 + 39  + 39  + 39  + 39 ) 39  )
(%o31)             15641 10059283844849451725183089638798521
                         2     3     4     5     6
(%i32) factor(1 + 42 + 42  + 42  + 42  + 42  + 42
                                                     2     3     4     5    19
                                       + (1 + 42 + 42  + 42  + 42  + 42 ) 42  )
                   2
(%o32)           67  109 17366563802737 109435544622418161403
                         2     3     4     5     6
(%i33) factor(1 + 43 + 43  + 43  + 43  + 43  + 43
                                                     2     3     4     5    19
                                       + (1 + 43 + 43  + 43  + 43  + 43 ) 43  )
(%o33)             35419 46155749071752090719244406040112379
                         2     3     4     5     6
(%i34) factor(1 + 44 + 44  + 44  + 44  + 44  + 44
                                                     2     3     4     5    19
                                       + (1 + 44 + 44  + 44  + 44  + 44 ) 44  )
(%o34)            3898511 4587406658842141 158628950861177231
                         2     3     4     5     6
(%i35) factor(1 + 45 + 45  + 45  + 45  + 45  + 45
                                                     2     3     4     5    19
                                       + (1 + 45 + 45  + 45  + 45  + 45 ) 45  )
(%o35)             6283117971513027917 773900190851120592713
                         2     3     4     5     6
(%i36) factor(1 + 47 + 47  + 47  + 47  + 47  + 47
                                                     2     3     4     5    19
                                       + (1 + 47 + 47  + 47  + 47  + 47 ) 47  )
(%o36)          6203 6451 30491 1833323423 6166646288373478829
                         2     3     4     5     6
(%i37) factor(1 + 49 + 49  + 49  + 49  + 49  + 49
                                                     2     3     4     5    19
                                       + (1 + 49 + 49  + 49  + 49  + 49 ) 49  )
(%o37)           239 479 327285940191945485708901717398002621
                         2     3     4     5     6
(%i38) factor(1 + 50 + 50  + 50  + 50  + 50  + 50
                                                     2     3     4     5    19
                                       + (1 + 50 + 50  + 50  + 50  + 50 ) 50  )
(%o38)          129439 6978161 158131064569 425824553106176201
                         2     3     4     5     6
(%i39) factor(1 + 51 + 51  + 51  + 51  + 51  + 51
                                                     2     3     4     5    19
                                       + (1 + 51 + 51  + 51  + 51  + 51 ) 51  )
(%o39)             97787737510889410777513085554362185797513
素数ですね。
                         2     3     4     5     6
(%i40) factor(1 + 54 + 54  + 54  + 54  + 54  + 54
                                                     2     3     4     5    19
                                       + (1 + 54 + 54  + 54  + 54  + 54 ) 54  )
(%o40)        31 229 271 55333 1212917 2982540562272176005956959
                         2     3     4     5     6
(%i41) factor(1 + 55 + 55  + 55  + 55  + 55  + 55
                                                     2     3     4     5    19
                                       + (1 + 55 + 55  + 55  + 55  + 55 ) 55  )
(%o41)           2811649 78855025645001399 2697012733005244631
                         2     3     4     5     6
(%i42) factor(1 + 56 + 56  + 56  + 56  + 56  + 56
                                                     2     3     4     5    19
                                       + (1 + 56 + 56  + 56  + 56  + 56 ) 56  )
(%o42)           1223 81677 9221716163860329630337348134763003
                         2     3     4     5     6
(%i43) factor(1 + 58 + 58  + 58  + 58  + 58  + 58
                                                     2     3     4     5    19
                                       + (1 + 58 + 58  + 58  + 58  + 58 ) 58  )
(%o43)            2137100684375904868913494664562951279153271
素数ですね。
                         2     3     4     5     6
(%i44) factor(1 + 59 + 59  + 59  + 59  + 59  + 59
                                                     2     3     4     5    19
                                       + (1 + 59 + 59  + 59  + 59  + 59 ) 59  )
(%o44)           9227 7439874119 46907921471252705395516245757
                         2     3     4     5     6
(%i45) factor(1 + 61 + 61  + 61  + 61  + 61  + 61
                                                     2     3     4     5    19
                                       + (1 + 61 + 61  + 61  + 61  + 61 ) 61  )
(%o45)        41 107 3181 1387987 369809380233851670308673236017
                         2     3     4     5     6
(%i46) factor(1 + 64 + 64  + 64  + 64  + 64  + 64
                                                     2     3     4     5    19
                                       + (1 + 64 + 64  + 64  + 64  + 64 ) 64  )
(%o46)         71 89 3445104432169451 1040658062975605261423469
                         2     3     4     5     6
(%i47) factor(1 + 68 + 68  + 68  + 68  + 68  + 68
                                                     2     3     4     5    19
                                       + (1 + 68 + 68  + 68  + 68  + 68 ) 68  )
(%o47)           96972371133146908950324775940435612692804501
素数ですね。
                         2     3     4     5     6
(%i48) factor(1 + 69 + 69  + 69  + 69  + 69  + 69
                                                     2     3     4     5    19
                                       + (1 + 69 + 69  + 69  + 69  + 69 ) 69  )
(%o48)         3607 82913 1239223 371364271754032884289101296117
                         2     3     4     5     6
(%i49) factor(1 + 70 + 70  + 70  + 70  + 70  + 70
                                                     2     3     4     5    19
                                       + (1 + 70 + 70  + 70  + 70  + 70 ) 70  )
(%o49)        173 449 10723 24379 9571439799144078527870463356719
                         2     3     4     5     6
(%i50) factor(1 + 71 + 71  + 71  + 71  + 71  + 71
                                                     2     3     4     5    19
                                       + (1 + 71 + 71  + 71  + 71  + 71 ) 71  )
(%o50)           273124511755616877934883878127223802804920913
素数ですね。
                         2     3     4     5     6
(%i51) factor(1 + 72 + 72  + 72  + 72  + 72  + 72
                                                     2     3     4     5    19
                                       + (1 + 72 + 72  + 72  + 72  + 72 ) 72  )
(%o51)         293 3209 41083878170153743 9888838674519038827651
                         2     3     4     5     6
(%i52) factor(1 + 73 + 73  + 73  + 73  + 73  + 73
                                                     2     3     4     5    19
                                       + (1 + 73 + 73  + 73  + 73  + 73 ) 73  )
(%o52)         9887 2507143193063507 21453360637525726024900849
                         2     3     4     5     6
(%i53) factor(1 + 74 + 74  + 74  + 74  + 74  + 74
                                                     2     3     4     5    19
                                       + (1 + 74 + 74  + 74  + 74  + 74 ) 74  )
(%o53)          187171 3937599783558433456266728502874368744781
                         2     3     4     5     6
(%i54) factor(1 + 75 + 75  + 75  + 75  + 75  + 75
                                                     2     3     4     5    19
                                       + (1 + 75 + 75  + 75  + 75  + 75 ) 75  )
(%o54)         109 2521 3700841806390279315914151875819670315909
                         2     3     4     5     6
(%i55) factor(1 + 76 + 76  + 76  + 76  + 76  + 76
                                                     2     3     4     5    19
                                       + (1 + 76 + 76  + 76  + 76  + 76 ) 76  )
(%o55)         139 10052260702551712399233828945955062722421367
                         2     3     4     5     6
(%i56) factor(1 + 77 + 77  + 77  + 77  + 77  + 77
                                                     2     3     4     5    19
                                       + (1 + 77 + 77  + 77  + 77  + 77 ) 77  )
(%o56)          35043457890411463 54556636014832861504588994467
                         2     3     4     5     6
(%i57) factor(1 + 78 + 78  + 78  + 78  + 78  + 78
                                                     2     3     4     5    19
                                       + (1 + 78 + 78  + 78  + 78  + 78 ) 78  )
(%o57)          291176684187155680691 8947830445288426629663641
                         2     3     4     5     6
(%i58) factor(1 + 81 + 81  + 81  + 81  + 81  + 81
                                                     2     3     4     5    19
                                       + (1 + 81 + 81  + 81  + 81  + 81 ) 81  )
(%o58)         77747 49898426111418463 1660599862212070342748033
                         2     3     4     5     6
(%i59) factor(1 + 82 + 82  + 82  + 82  + 82  + 82
                                                     2     3     4     5    19
                                       + (1 + 82 + 82  + 82  + 82  + 82 ) 82  )
(%o59)         7387188811 1170528766710410820875494117183292941
                         2     3     4     5     6
(%i60) factor(1 + 83 + 83  + 83  + 83  + 83  + 83
                                                     2     3     4     5    19
                                       + (1 + 83 + 83  + 83  + 83  + 83 ) 83  )
(%o60)        971 21491 3354130733307041 165227608497237665622521
                         2     3     4     5     6
(%i61) factor(1 + 85 + 85  + 85  + 85  + 85  + 85
                                                     2     3     4     5    19
                                       + (1 + 85 + 85  + 85  + 85  + 85 ) 85  )
(%o61)         31 660438166365679982146144680789490988952203131
                         2     3     4     5     6
(%i62) factor(1 + 87 + 87  + 87  + 87  + 87  + 87
                                                     2     3     4     5    19
                                       + (1 + 87 + 87  + 87  + 87  + 87 ) 87  )
(%o62)       47 9203 139511 6544649 90565079555091995332266207019
                         2     3     4     5     6
(%i63) factor(1 + 88 + 88  + 88  + 88  + 88  + 88
                                                     2     3     4     5    19
                                       + (1 + 88 + 88  + 88  + 88  + 88 ) 88  )
(%o63)          47048691676961484274265895048014816613655057561
素数ですね。
                         2     3     4     5     6
(%i64) factor(1 + 89 + 89  + 89  + 89  + 89  + 89
                                                     2     3     4     5    19
                                       + (1 + 89 + 89  + 89  + 89  + 89 ) 89  )
(%o64)        3907 2221904232763 7107203429781308442064068851821
                         2     3     4     5     6
(%i65) factor(1 + 90 + 90  + 90  + 90  + 90  + 90
                                                     2     3     4     5    19
                                       + (1 + 90 + 90  + 90  + 90  + 90 ) 90  )
(%o65)      151 307 11528479363 4204604796451 35897168919883843651
                         2     3     4     5     6
(%i66) factor(1 + 91 + 91  + 91  + 91  + 91  + 91
                                                     2     3     4     5    19
                                       + (1 + 91 + 91  + 91  + 91  + 91 ) 91  )
(%o66)     1987 2351 40129 530197 553727 11218631 170298426359906129
                         2     3     4     5     6
(%i67) factor(1 + 93 + 93  + 93  + 93  + 93  + 93
                                                     2     3     4     5    19
                                       + (1 + 93 + 93  + 93  + 93  + 93 ) 93  )
(%o67)       3061 44674559 535481971 2418897298733405428703655269
                         2     3     4     5     6
(%i68) factor(1 + 94 + 94  + 94  + 94  + 94  + 94
                                                     2     3     4     5    19
                                       + (1 + 94 + 94  + 94  + 94  + 94 ) 94  )
(%o68)         53077 4313273762533587046791037419303072108209503
                         2     3     4     5     6
(%i69) factor(1 + 96 + 96  + 96  + 96  + 96  + 96
                                                     2     3     4     5    19
                                       + (1 + 96 + 96  + 96  + 96  + 96 ) 96  )
(%o69)      7297 8539 14453147 55508107 455481253 16661592847531103
                         2     3     4     5     6
(%i70) factor(1 + 99 + 99  + 99  + 99  + 99  + 99
                                                     2     3     4     5    19
                                       + (1 + 99 + 99  + 99  + 99  + 99 ) 99  )
(%o70)       59 3253276759 958622602099 4313532777821403226130879
(%o70)                               a.bat
(%i71)


b.txtに追加されるものは、
211,21
241,21
31,23
467,24
641,35
829,37
953,38
67,42
109,42
239,49
479,49
31,54
229,54
271,54
41,61
107,61
71,64
89,64
173,70
449,70
293,72
109,75
139,76
971,83
31,85
47,87
151,90
307,90
59,99

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

#define max 100 /* この数から+100まで生成する */
になおして、
Autohajiku.cをコンパイル実行する。
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
19n+3
127n+3
313n+3
61n+4
487n+4
79n+5
241n+5
107n+7
113n+7
43n+9
97n+9
229n+9
19n+10
17n+12
131n+12
13n+14
43n+14
103n+15
43n+19
83n+19
211n+21
241n+21
31n+23
467n+24
641n+35
829n+37
953n+38
67n+42
109n+42
239n+49
479n+49
31n+54
229n+54
271n+54
41n+61
107n+61
71n+64
89n+64
173n+70
449n+70
293n+72
109n+75
139n+76
971n+83
31n+85
47n+87
151n+90
307n+90
59n+99
b.txt read!  49 個 
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
100=43x2+14
!!! 101 !!!
102=83x1+19
102=41x1+61
!!! 103 !!!
!!! 104 !!!
105=19x5+10
105=13x7+14
105=43x2+19
106=97x1+9
!!! 107 !!!
!!! 108 !!!
109=67x1+42
!!! 110 !!!
!!! 111 !!!
!!! 112 !!!
!!! 113 !!!
114=107x1+7
114=17x6+12
!!! 115 !!!
116=31x3+23
116=31x2+54
116=31x1+85
117=19x6+3
118=13x8+14
118=103x1+15
!!! 119 !!!
120=113x1+7
!!! 121 !!!
!!! 122 !!!
!!! 123 !!!
124=19x6+10
!!! 125 !!!
126=61x2+4
!!! 127 !!!
!!! 128 !!!
!!! 129 !!!
130=127x1+3
131=17x7+12
131=13x9+14
!!! 132 !!!
!!! 133 !!!
134=47x1+87
135=71x1+64
136=19x7+3
!!! 137 !!!
138=43x3+9
!!! 139 !!!
!!! 140 !!!
!!! 141 !!!
!!! 142 !!!
143=19x7+10
143=131x1+12
143=43x3+14
143=41x2+61
144=13x10+14
!!! 145 !!!
!!! 146 !!!
147=31x4+23
147=31x3+54
147=31x2+85
148=17x8+12
148=43x3+19
!!! 149 !!!
!!! 150 !!!
151=109x1+42
!!! 152 !!!
153=89x1+64
!!! 154 !!!
155=19x8+3
!!! 156 !!!
157=13x11+14
158=59x1+99
!!! 159 !!!
!!! 160 !!!
!!! 161 !!!
162=19x8+10
163=79x2+5
!!! 164 !!!
165=17x9+12
!!! 166 !!!
!!! 167 !!!
168=107x1+61
!!! 169 !!!
170=13x12+14
!!! 171 !!!
!!! 172 !!!
!!! 173 !!!
174=19x9+3
!!! 175 !!!
176=67x2+42
!!! 177 !!!
178=31x5+23
178=31x4+54
178=31x3+85
!!! 179 !!!
!!! 180 !!!
181=43x4+9
181=19x9+10
181=47x2+87
182=17x10+12
183=13x13+14
184=41x3+61
184=109x1+75
185=83x2+19
186=43x4+14
187=61x3+4
!!! 188 !!!
!!! 189 !!!
!!! 190 !!!
191=43x4+19
!!! 192 !!!
193=19x10+3
!!! 194 !!!
!!! 195 !!!
196=13x14+14
!!! 197 !!!
!!! 198 !!!
199=17x11+12

生成されたa.batは、
factor((101^5+101^4+101^3+101^2+101+1)*101^19+101^6+101^5+101^4+101^3+101^2+101+1);
factor((103^5+103^4+103^3+103^2+103+1)*103^19+103^6+103^5+103^4+103^3+103^2+103+1);
factor((104^5+104^4+104^3+104^2+104+1)*104^19+104^6+104^5+104^4+104^3+104^2+104+1);
factor((107^5+107^4+107^3+107^2+107+1)*107^19+107^6+107^5+107^4+107^3+107^2+107+1);
factor((108^5+108^4+108^3+108^2+108+1)*108^19+108^6+108^5+108^4+108^3+108^2+108+1);
factor((110^5+110^4+110^3+110^2+110+1)*110^19+110^6+110^5+110^4+110^3+110^2+110+1);
factor((111^5+111^4+111^3+111^2+111+1)*111^19+111^6+111^5+111^4+111^3+111^2+111+1);
factor((112^5+112^4+112^3+112^2+112+1)*112^19+112^6+112^5+112^4+112^3+112^2+112+1);
factor((113^5+113^4+113^3+113^2+113+1)*113^19+113^6+113^5+113^4+113^3+113^2+113+1);
factor((115^5+115^4+115^3+115^2+115+1)*115^19+115^6+115^5+115^4+115^3+115^2+115+1);
factor((119^5+119^4+119^3+119^2+119+1)*119^19+119^6+119^5+119^4+119^3+119^2+119+1);
factor((121^5+121^4+121^3+121^2+121+1)*121^19+121^6+121^5+121^4+121^3+121^2+121+1);
factor((122^5+122^4+122^3+122^2+122+1)*122^19+122^6+122^5+122^4+122^3+122^2+122+1);
factor((123^5+123^4+123^3+123^2+123+1)*123^19+123^6+123^5+123^4+123^3+123^2+123+1);
factor((125^5+125^4+125^3+125^2+125+1)*125^19+125^6+125^5+125^4+125^3+125^2+125+1);
factor((127^5+127^4+127^3+127^2+127+1)*127^19+127^6+127^5+127^4+127^3+127^2+127+1);
factor((128^5+128^4+128^3+128^2+128+1)*128^19+128^6+128^5+128^4+128^3+128^2+128+1);
factor((129^5+129^4+129^3+129^2+129+1)*129^19+129^6+129^5+129^4+129^3+129^2+129+1);
factor((132^5+132^4+132^3+132^2+132+1)*132^19+132^6+132^5+132^4+132^3+132^2+132+1);
factor((133^5+133^4+133^3+133^2+133+1)*133^19+133^6+133^5+133^4+133^3+133^2+133+1);
factor((137^5+137^4+137^3+137^2+137+1)*137^19+137^6+137^5+137^4+137^3+137^2+137+1);
factor((139^5+139^4+139^3+139^2+139+1)*139^19+139^6+139^5+139^4+139^3+139^2+139+1);
factor((140^5+140^4+140^3+140^2+140+1)*140^19+140^6+140^5+140^4+140^3+140^2+140+1);
factor((141^5+141^4+141^3+141^2+141+1)*141^19+141^6+141^5+141^4+141^3+141^2+141+1);
factor((142^5+142^4+142^3+142^2+142+1)*142^19+142^6+142^5+142^4+142^3+142^2+142+1);
factor((145^5+145^4+145^3+145^2+145+1)*145^19+145^6+145^5+145^4+145^3+145^2+145+1);
factor((146^5+146^4+146^3+146^2+146+1)*146^19+146^6+146^5+146^4+146^3+146^2+146+1);
factor((149^5+149^4+149^3+149^2+149+1)*149^19+149^6+149^5+149^4+149^3+149^2+149+1);
factor((150^5+150^4+150^3+150^2+150+1)*150^19+150^6+150^5+150^4+150^3+150^2+150+1);
factor((152^5+152^4+152^3+152^2+152+1)*152^19+152^6+152^5+152^4+152^3+152^2+152+1);
factor((154^5+154^4+154^3+154^2+154+1)*154^19+154^6+154^5+154^4+154^3+154^2+154+1);
factor((156^5+156^4+156^3+156^2+156+1)*156^19+156^6+156^5+156^4+156^3+156^2+156+1);
factor((159^5+159^4+159^3+159^2+159+1)*159^19+159^6+159^5+159^4+159^3+159^2+159+1);
factor((160^5+160^4+160^3+160^2+160+1)*160^19+160^6+160^5+160^4+160^3+160^2+160+1);
factor((161^5+161^4+161^3+161^2+161+1)*161^19+161^6+161^5+161^4+161^3+161^2+161+1);
factor((164^5+164^4+164^3+164^2+164+1)*164^19+164^6+164^5+164^4+164^3+164^2+164+1);
factor((166^5+166^4+166^3+166^2+166+1)*166^19+166^6+166^5+166^4+166^3+166^2+166+1);
factor((167^5+167^4+167^3+167^2+167+1)*167^19+167^6+167^5+167^4+167^3+167^2+167+1);
factor((169^5+169^4+169^3+169^2+169+1)*169^19+169^6+169^5+169^4+169^3+169^2+169+1);
factor((171^5+171^4+171^3+171^2+171+1)*171^19+171^6+171^5+171^4+171^3+171^2+171+1);
factor((172^5+172^4+172^3+172^2+172+1)*172^19+172^6+172^5+172^4+172^3+172^2+172+1);
factor((173^5+173^4+173^3+173^2+173+1)*173^19+173^6+173^5+173^4+173^3+173^2+173+1);
factor((175^5+175^4+175^3+175^2+175+1)*175^19+175^6+175^5+175^4+175^3+175^2+175+1);
factor((177^5+177^4+177^3+177^2+177+1)*177^19+177^6+177^5+177^4+177^3+177^2+177+1);
factor((179^5+179^4+179^3+179^2+179+1)*179^19+179^6+179^5+179^4+179^3+179^2+179+1);
factor((180^5+180^4+180^3+180^2+180+1)*180^19+180^6+180^5+180^4+180^3+180^2+180+1);
factor((188^5+188^4+188^3+188^2+188+1)*188^19+188^6+188^5+188^4+188^3+188^2+188+1);
factor((189^5+189^4+189^3+189^2+189+1)*189^19+189^6+189^5+189^4+189^3+189^2+189+1);
factor((190^5+190^4+190^3+190^2+190+1)*190^19+190^6+190^5+190^4+190^3+190^2+190+1);
factor((192^5+192^4+192^3+192^2+192+1)*192^19+192^6+192^5+192^4+192^3+192^2+192+1);
factor((194^5+194^4+194^3+194^2+194+1)*194^19+194^6+194^5+194^4+194^3+194^2+194+1);
factor((195^5+195^4+195^3+195^2+195+1)*195^19+195^6+195^5+195^4+195^3+195^2+195+1);
factor((197^5+197^4+197^3+197^2+197+1)*197^19+197^6+197^5+197^4+197^3+197^2+197+1);
factor((198^5+198^4+198^3+198^2+198+1)*198^19+198^6+198^5+198^4+198^3+198^2+198+1);

read and interpret file:a.bat
                           2      3      4      5      6
(%i72) factor(1 + 101 + 101  + 101  + 101  + 101  + 101
                                                 2      3      4      5     19
                                 + (1 + 101 + 101  + 101  + 101  + 101 ) 101  )
(%o72)       107 769 198723029933 78428882475070785254962552410667
                           2      3      4      5      6
(%i73) factor(1 + 103 + 103  + 103  + 103  + 103  + 103
                                                 2      3      4      5     19
                                 + (1 + 103 + 103  + 103  + 103  + 103 ) 103  )
(%o73)       743 319732183 4976499653 1736326130461155525577200733
                           2      3      4      5      6
(%i74) factor(1 + 104 + 104  + 104  + 104  + 104  + 104
                                                 2      3      4      5     19
                                 + (1 + 104 + 104  + 104  + 104  + 104 ) 104  )
(%o74)       8573 8760289 3130807759217 11007497585622399732902029
                           2      3      4      5      6
(%i75) factor(1 + 107 + 107  + 107  + 107  + 107  + 107
                                                 2      3      4      5     19
                                 + (1 + 107 + 107  + 107  + 107  + 107 ) 107  )
(%o75)      271 3019 32116729 309159029 630293649159072218711232089
                           2      3      4      5      6
(%i76) factor(1 + 108 + 108  + 108  + 108  + 108  + 108
                                                 2      3      4      5     19
                                 + (1 + 108 + 108  + 108  + 108  + 108 ) 108  )
(%o76)      139 145542197 387469289 99594777419 8198464710474491657
                           2      3      4      5      6
(%i77) factor(1 + 110 + 110  + 110  + 110  + 110  + 110
                                                 2      3      4      5     19
                                 + (1 + 110 + 110  + 110  + 110  + 110 ) 110  )
(%o77)        1193 8332017766775807112697296650469404863191797027
                           2      3      4      5      6
(%i78) factor(1 + 111 + 111  + 111  + 111  + 111  + 111
                                                 2      3      4      5     19
                                 + (1 + 111 + 111  + 111  + 111  + 111 ) 111  )
(%o78)       391908810551 1119169967601170531 28157929026705329773
                           2      3      4      5      6
(%i79) factor(1 + 112 + 112  + 112  + 112  + 112  + 112
                                                 2      3      4      5     19
                                 + (1 + 112 + 112  + 112  + 112  + 112 ) 112  )
(%o79)    127 947 1327 2377 2693 14991235616630374422121414900596967
                           2      3      4      5      6
(%i80) factor(1 + 113 + 113  + 113  + 113  + 113  + 113
                                                 2      3      4      5     19
                                 + (1 + 113 + 113  + 113  + 113  + 113 ) 113  )
(%o80)        5531221 3427062725242109005002627917649998376117241
                           2      3      4      5      6
(%i81) factor(1 + 115 + 115  + 115  + 115  + 115  + 115
                                                 2      3      4      5     19
                                 + (1 + 115 + 115  + 115  + 115  + 115 ) 115  )
(%o81)        4768918463711 6055099169257493219753810181218231831
                           2      3      4      5      6
(%i82) factor(1 + 119 + 119  + 119  + 119  + 119  + 119
                                                 2      3      4      5     19
                                 + (1 + 119 + 119  + 119  + 119  + 119 ) 119  )
(%o82)     281 1381 1510392833101 111892792545808769775908482297721
                           2      3      4      5      6
(%i83) factor(1 + 121 + 121  + 121  + 121  + 121  + 121
                                                 2      3      4      5     19
                                 + (1 + 121 + 121  + 121  + 121  + 121 ) 121  )
(%o83)     4513 1217833 16220486798619769 1097326977681868072808413
                           2      3      4      5      6
(%i84) factor(1 + 122 + 122  + 122  + 122  + 122  + 122
                                                 2      3      4      5     19
                                 + (1 + 122 + 122  + 122  + 122  + 122 ) 122  )
(%o84)     373 160697 174855035585033 11371444909350756814651788667
                           2      3      4      5      6
(%i85) factor(1 + 123 + 123  + 123  + 123  + 123  + 123
                                                 2      3      4      5     19
                                 + (1 + 123 + 123  + 123  + 123  + 123 ) 123  )
(%o85)       1382282514409 104874798881672986268198237045342443249
                           2      3      4      5      6
(%i86) factor(1 + 125 + 125  + 125  + 125  + 125  + 125
                                                 2      3      4      5     19
                                 + (1 + 125 + 125  + 125  + 125  + 125 ) 125  )
(%o86)     1583 101273 10464917557 127238411528474339437218739317127
                           2      3      4      5      6
(%i87) factor(1 + 127 + 127  + 127  + 127  + 127  + 127
                                                 2      3      4      5     19
                                 + (1 + 127 + 127  + 127  + 127  + 127 ) 127  )
(%o87)       79 3954534670655419455051290708950522509162010708399
                           2      3      4      5      6
(%i88) factor(1 + 128 + 128  + 128  + 128  + 128  + 128
                                                 2      3      4      5     19
                                 + (1 + 128 + 128  + 128  + 128  + 128 ) 128  )
(%o88)        377090438205103447149266728878868771663076621566081
素数ですね。
                           2      3      4      5      6
(%i89) factor(1 + 129 + 129  + 129  + 129  + 129  + 129
                                                 2      3      4      5     19
                                 + (1 + 129 + 129  + 129  + 129  + 129 ) 129  )
(%o89)        454498849112122292382938895885973991531331961867021
素数ですね。
                           2      3      4      5      6
(%i90) factor(1 + 132 + 132  + 132  + 132  + 132  + 132
                                                 2      3      4      5     19
                                 + (1 + 132 + 132  + 132  + 132  + 132 ) 132  )
(%o90)       457 1726476949655175469437689593355222164973197579693
                           2      3      4      5      6
(%i91) factor(1 + 133 + 133  + 133  + 133  + 133  + 133
                                                 2      3      4      5     19
                                 + (1 + 133 + 133  + 133  + 133  + 133 ) 133  )
(%o91)      241 120601336824420147901 32534784058646210281732220281
                           2      3      4      5      6
(%i92) factor(1 + 137 + 137  + 137  + 137  + 137  + 137
                                                 2      3      4      5     19
                                 + (1 + 137 + 137  + 137  + 137  + 137 ) 137  )
(%o92)      1097 3966144186515671 442486621401898528182710011325363
                           2      3      4      5      6
(%i93) factor(1 + 139 + 139  + 139  + 139  + 139  + 139
                                                 2      3      4      5     19
                                 + (1 + 139 + 139  + 139  + 139  + 139 ) 139  )
(%o93)     540863 796217 1385873 4567186722931563645656832846801167
                           2      3      4      5      6
(%i94) factor(1 + 140 + 140  + 140  + 140  + 140  + 140
                                                 2      3      4      5     19
                                 + (1 + 140 + 140  + 140  + 140  + 140 ) 140  )
(%o94)      251 461 27977663655739187982262356625156121717101949731
                           2      3      4      5      6
(%i95) factor(1 + 141 + 141  + 141  + 141  + 141  + 141
                                                 2      3      4      5     19
                                 + (1 + 141 + 141  + 141  + 141  + 141 ) 141  )
(%o95)      409306036774889 25803405570215407 363600609152427045731
                           2      3      4      5      6
(%i96) factor(1 + 142 + 142  + 142  + 142  + 142  + 142
                                                 2      3      4      5     19
                                 + (1 + 142 + 142  + 142  + 142  + 142 ) 142  )
(%o96)     409 5698134419 215106718159 9075687310820355708544035599
                           2      3      4      5      6
(%i97) factor(1 + 145 + 145  + 145  + 145  + 145  + 145
                                                 2      3      4      5     19
                                 + (1 + 145 + 145  + 145  + 145  + 145 ) 145  )
(%o97)      2605389821 2883798102355013608777555431582321267703601
                           2      3      4      5      6
(%i98) factor(1 + 146 + 146  + 146  + 146  + 146  + 146
                                                 2      3      4      5     19
                                 + (1 + 146 + 146  + 146  + 146  + 146 ) 146  )
(%o98)      83 1540069881209770579 69316220161412063648885534523959
                           2      3      4      5      6
(%i99) factor(1 + 149 + 149  + 149  + 149  + 149  + 149
                                                 2      3      4      5     19
                                 + (1 + 149 + 149  + 149  + 149  + 149 ) 149  )
(%o99)     97 25537 21020143216351379 277215630267424419320834611271
                            2      3      4      5      6
(%i100) factor(1 + 150 + 150  + 150  + 150  + 150  + 150
                                                 2      3      4      5     19
                                 + (1 + 150 + 150  + 150  + 150  + 150 ) 150  )
(%o100)    16250347 6732253597 154907377587234290848485890776698589
                            2      3      4      5      6
(%i101) factor(1 + 152 + 152  + 152  + 152  + 152  + 152
                                                 2      3      4      5     19
                                 + (1 + 152 + 152  + 152  + 152  + 152 ) 152  )
(%o101)    234979 771670429 128425670556602392505052088435610245231
                            2      3      4      5      6
(%i102) factor(1 + 154 + 154  + 154  + 154  + 154  + 154
                                                 2      3      4      5     19
                                 + (1 + 154 + 154  + 154  + 154  + 154 ) 154  )
(%o102)    983 8513 675731431 5635290626948471775138064933705657879
                            2      3      4      5      6
(%i103) factor(1 + 156 + 156  + 156  + 156  + 156  + 156
                                                 2      3      4      5     19
                                 + (1 + 156 + 156  + 156  + 156  + 156 ) 156  )
(%o103)    227 40906200469969050409 4677009597627760309992632299991
                            2      3      4      5      6
(%i104) factor(1 + 159 + 159  + 159  + 159  + 159  + 159
                                                 2      3      4      5     19
                                 + (1 + 159 + 159  + 159  + 159  + 159 ) 159  )
(%o104)     26605928717 2578057490595310777546941563751525643776773
                            2      3      4      5      6
(%i105) factor(1 + 160 + 160  + 160  + 160  + 160  + 160
                                                 2      3      4      5     19
                                 + (1 + 160 + 160  + 160  + 160  + 160 ) 160  )
(%o105)   293 19993 33985594471 400462620385801124269817891117577059
                            2      3      4      5      6
(%i106) factor(1 + 161 + 161  + 161  + 161  + 161  + 161
                                                 2      3      4      5     19
                                 + (1 + 161 + 161  + 161  + 161  + 161 ) 161  )
(%o106)     910207 101715408354928325738841914550657383473930542259
                            2      3      4      5      6
(%i107) factor(1 + 164 + 164  + 164  + 164  + 164  + 164
                                                 2      3      4      5     19
                                 + (1 + 164 + 164  + 164  + 164  + 164 ) 164  )
(%o107)    877 366227 448909342685484007517458318815220129489042259
                            2      3      4      5      6
(%i108) factor(1 + 166 + 166  + 166  + 166  + 166  + 166
                                                 2      3      4      5     19
                                 + (1 + 166 + 166  + 166  + 166  + 166 ) 166  )
(%o108)    17107603 26000317451 433561233121354311169153975801839971
                            2      3      4      5      6
(%i109) factor(1 + 167 + 167  + 167  + 167  + 167  + 167
                                                 2      3      4      5     19
                                 + (1 + 167 + 167  + 167  + 167  + 167 ) 167  )
(%o109)    6091 6571979277169147 5564407224478610861265616216955593
                            2      3      4      5      6
(%i110) factor(1 + 169 + 169  + 169  + 169  + 169  + 169
                                                 2      3      4      5     19
                                 + (1 + 169 + 169  + 169  + 169  + 169 ) 169  )
(%o110)    7447499 763202221 88659641000387 588142124619178506214897
                            2      3      4      5      6
(%i111) factor(1 + 171 + 171  + 171  + 171  + 171  + 171
                                                 2      3      4      5     19
                                 + (1 + 171 + 171  + 171  + 171  + 171 ) 171  )
(%o111)   251 7549 12539 16543514986302780381131671279962147558390133
                            2      3      4      5      6
(%i112) factor(1 + 172 + 172  + 172  + 172  + 172  + 172
                                                 2      3      4      5     19
                                 + (1 + 172 + 172  + 172  + 172  + 172 ) 172  )
(%o112)   349 8207471 587410513 268681994512522337762706353174222783
                            2      3      4      5      6
(%i113) factor(1 + 173 + 173  + 173  + 173  + 173  + 173
                                                 2      3      4      5     19
                                 + (1 + 173 + 173  + 173  + 173  + 173 ) 173  )
(%o113)     519546150479193880926221915841158168941459816126570741
素数ですね。
                            2      3      4      5      6
(%i114) factor(1 + 175 + 175  + 175  + 175  + 175  + 175
                                                 2      3      4      5     19
                                 + (1 + 175 + 175  + 175  + 175  + 175 ) 175  )
(%o114)    239 2864204798063115391852529539247374654315127653005359
                            2      3      4      5      6
(%i115) factor(1 + 177 + 177  + 177  + 177  + 177  + 177
                                                 2      3      4      5     19
                                 + (1 + 177 + 177  + 177  + 177  + 177 ) 177  )
(%o115)   419 1824586665721 18752625276521 62716006457454962953763599
                            2      3      4      5      6
(%i116) factor(1 + 179 + 179  + 179  + 179  + 179  + 179
                                                 2      3      4      5     19
                                 + (1 + 179 + 179  + 179  + 179  + 179 ) 179  )
(%o116)   38706727597 1491226632677766287 20397440018796043808973539
                            2      3      4      5      6
(%i117) factor(1 + 180 + 180  + 180  + 180  + 180  + 180
                                                 2      3      4      5     19
                                 + (1 + 180 + 180  + 180  + 180  + 180 ) 180  )
(%o117)    50543 26625549560756106458795943490444214233425681147467
                            2      3      4      5      6
(%i118) factor(1 + 188 + 188  + 188  + 188  + 188  + 188
                                                 2      3      4      5     19
                                 + (1 + 188 + 188  + 188  + 188  + 188 ) 188  )
(%o118)  15210093527 1357556099929 12357610877904043 14972021399378969
                            2      3      4      5      6
(%i119) factor(1 + 189 + 189  + 189  + 189  + 189  + 189
                                                 2      3      4      5     19
                                 + (1 + 189 + 189  + 189  + 189  + 189 ) 189  )
(%o119)   57119 30816843509 27647376684616072201 89158874379181665991
                            2      3      4      5      6
(%i120) factor(1 + 190 + 190  + 190  + 190  + 190  + 190
                                                 2      3      4      5     19
                                 + (1 + 190 + 190  + 190  + 190  + 190 ) 190  )
(%o120)     4924682311547836567034600527349728890000047294801005291
素数ですね。
                            2      3      4      5      6
(%i121) factor(1 + 192 + 192  + 192  + 192  + 192  + 192
                                                 2      3      4      5     19
                                 + (1 + 192 + 192  + 192  + 192  + 192 ) 192  )
(%o121)   307 313 65889261105816894569679842289929000132524208631571
                            2      3      4      5      6
(%i122) factor(1 + 194 + 194  + 194  + 194  + 194  + 194
                                                 2      3      4      5     19
                                 + (1 + 194 + 194  + 194  + 194  + 194 ) 194  )
(%o122)  829 3714254293 1783281714349523 1478562946387554777647534501
                            2      3      4      5      6
(%i123) factor(1 + 195 + 195  + 195  + 195  + 195  + 195
                                                 2      3      4      5     19
                                 + (1 + 195 + 195  + 195  + 195  + 195 ) 195  )
(%o123)  251 2867785441 56725598491 224938653126598148897991411484241
                            2      3      4      5      6
(%i124) factor(1 + 197 + 197  + 197  + 197  + 197  + 197
                                                 2      3      4      5     19
                                 + (1 + 197 + 197  + 197  + 197  + 197 ) 197  )
(%o124)    522792779 22442436361794482412661663764804968888556320879
                            2      3      4      5      6
(%i125) factor(1 + 198 + 198  + 198  + 198  + 198  + 198
                                                 2      3      4      5     19
                                 + (1 + 198 + 198  + 198  + 198  + 198 ) 198  )
(%o125)    937 14139170758878263639269565988891139024597626534733243
(%o125)                              a.bat



b.batに追加されるものは、
107,101
769,101
743,103
271,107
139,108
127,112
947,112
373,122
79,127
457,132
241,133
251,140
461,140
409,142
83,146
97,149
983,154
227,156
293,160
877,164
251,171
349,172
239,175
419,177
307,192
313,192
829,194
251,195
937,198

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

#define max 200 /* この数から+100まで生成する */
になおして、
Autohajiku.cをコンパイル、実行する。

$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
19n+3
127n+3
313n+3
61n+4
487n+4
79n+5
241n+5
107n+7
113n+7
43n+9
97n+9
229n+9
19n+10
17n+12
131n+12
13n+14
43n+14
103n+15
43n+19
83n+19
211n+21
241n+21
31n+23
467n+24
641n+35
829n+37
953n+38
67n+42
109n+42
239n+49
479n+49
31n+54
229n+54
271n+54
41n+61
107n+61
71n+64
89n+64
173n+70
449n+70
293n+72
109n+75
139n+76
971n+83
31n+85
47n+87
151n+90
307n+90
59n+99
107n+101
769n+101
743n+103
271n+107
139n+108
127n+112
947n+112
373n+122
79n+127
457n+132
241n+133
251n+140
461n+140
409n+142
83n+146
97n+149
983n+154
227n+156
293n+160
877n+164
251n+171
349n+172
239n+175
419n+177
307n+192
313n+192
829n+194
251n+195
937n+198
b.txt read!  78 個 
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
200=19x10+10
!!! 201 !!!
!!! 202 !!!
203=97x2+9
!!! 204 !!!
!!! 205 !!!
206=71x2+64
206=79x1+127
!!! 207 !!!
208=107x1+101
209=13x15+14
209=31x6+23
209=31x5+54
209=31x4+85
!!! 210 !!!
!!! 211 !!!
212=19x11+3
!!! 213 !!!
!!! 214 !!!
215=139x1+76
216=17x12+12
217=59x2+99
!!! 218 !!!
219=19x11+10
!!! 220 !!!
221=107x2+7
221=103x2+15
222=13x16+14
!!! 223 !!!
224=43x5+9
225=41x4+61
!!! 226 !!!
!!! 227 !!!
228=47x3+87
229=43x5+14
229=83x1+146
!!! 230 !!!
231=19x12+3
232=211x1+21
233=113x2+7
233=17x13+12
234=43x5+19
235=13x17+14
!!! 236 !!!
!!! 237 !!!
238=229x1+9
238=19x12+10
239=127x1+112
240=31x7+23
240=31x6+54
240=31x5+85
241=151x1+90
242=79x3+5
242=89x2+64
243=67x3+42
243=173x1+70
!!! 244 !!!
!!! 245 !!!
246=241x1+5
246=97x1+149
247=139x1+108
248=61x4+4
248=13x18+14
!!! 249 !!!
250=19x13+3
250=17x14+12
!!! 251 !!!
!!! 252 !!!
!!! 253 !!!
!!! 254 !!!
!!! 255 !!!
!!! 256 !!!
257=127x2+3
257=19x13+10
!!! 258 !!!
!!! 259 !!!
260=109x2+42
261=13x19+14
262=241x1+21
!!! 263 !!!
!!! 264 !!!
!!! 265 !!!
266=41x5+61
267=43x6+9
267=17x15+12
268=83x3+19
269=19x14+3
!!! 270 !!!
271=31x8+23
271=31x7+54
271=31x6+85
272=43x6+14
!!! 273 !!!
274=131x2+12
274=13x20+14
275=107x2+61
275=47x4+87
276=19x14+10
276=59x3+99
277=43x6+19
277=71x3+64
!!! 278 !!!
!!! 279 !!!
!!! 280 !!!
!!! 281 !!!
!!! 282 !!!
283=229x1+54
284=17x16+12
285=79x2+127
!!! 286 !!!
287=13x21+14
288=19x15+3
288=239x1+49
!!! 289 !!!
!!! 290 !!!
!!! 291 !!!
!!! 292 !!!
293=109x2+75
!!! 294 !!!
295=19x15+10
!!! 296 !!!
!!! 297 !!!
!!! 298 !!!
!!! 299 !!!

生成されたa.batは、
factor((201^5+201^4+201^3+201^2+201+1)*201^19+201^6+201^5+201^4+201^3+201^2+201+1);
factor((202^5+202^4+202^3+202^2+202+1)*202^19+202^6+202^5+202^4+202^3+202^2+202+1);
factor((204^5+204^4+204^3+204^2+204+1)*204^19+204^6+204^5+204^4+204^3+204^2+204+1);
factor((205^5+205^4+205^3+205^2+205+1)*205^19+205^6+205^5+205^4+205^3+205^2+205+1);
factor((207^5+207^4+207^3+207^2+207+1)*207^19+207^6+207^5+207^4+207^3+207^2+207+1);
factor((210^5+210^4+210^3+210^2+210+1)*210^19+210^6+210^5+210^4+210^3+210^2+210+1);
factor((211^5+211^4+211^3+211^2+211+1)*211^19+211^6+211^5+211^4+211^3+211^2+211+1);
factor((213^5+213^4+213^3+213^2+213+1)*213^19+213^6+213^5+213^4+213^3+213^2+213+1);
factor((214^5+214^4+214^3+214^2+214+1)*214^19+214^6+214^5+214^4+214^3+214^2+214+1);
factor((218^5+218^4+218^3+218^2+218+1)*218^19+218^6+218^5+218^4+218^3+218^2+218+1);
factor((220^5+220^4+220^3+220^2+220+1)*220^19+220^6+220^5+220^4+220^3+220^2+220+1);
factor((223^5+223^4+223^3+223^2+223+1)*223^19+223^6+223^5+223^4+223^3+223^2+223+1);
factor((226^5+226^4+226^3+226^2+226+1)*226^19+226^6+226^5+226^4+226^3+226^2+226+1);
factor((227^5+227^4+227^3+227^2+227+1)*227^19+227^6+227^5+227^4+227^3+227^2+227+1);
factor((230^5+230^4+230^3+230^2+230+1)*230^19+230^6+230^5+230^4+230^3+230^2+230+1);
factor((236^5+236^4+236^3+236^2+236+1)*236^19+236^6+236^5+236^4+236^3+236^2+236+1);
factor((237^5+237^4+237^3+237^2+237+1)*237^19+237^6+237^5+237^4+237^3+237^2+237+1);
factor((244^5+244^4+244^3+244^2+244+1)*244^19+244^6+244^5+244^4+244^3+244^2+244+1);
factor((245^5+245^4+245^3+245^2+245+1)*245^19+245^6+245^5+245^4+245^3+245^2+245+1);
factor((249^5+249^4+249^3+249^2+249+1)*249^19+249^6+249^5+249^4+249^3+249^2+249+1);
factor((251^5+251^4+251^3+251^2+251+1)*251^19+251^6+251^5+251^4+251^3+251^2+251+1);
factor((252^5+252^4+252^3+252^2+252+1)*252^19+252^6+252^5+252^4+252^3+252^2+252+1);
factor((253^5+253^4+253^3+253^2+253+1)*253^19+253^6+253^5+253^4+253^3+253^2+253+1);
factor((254^5+254^4+254^3+254^2+254+1)*254^19+254^6+254^5+254^4+254^3+254^2+254+1);
factor((255^5+255^4+255^3+255^2+255+1)*255^19+255^6+255^5+255^4+255^3+255^2+255+1);
factor((256^5+256^4+256^3+256^2+256+1)*256^19+256^6+256^5+256^4+256^3+256^2+256+1);
factor((258^5+258^4+258^3+258^2+258+1)*258^19+258^6+258^5+258^4+258^3+258^2+258+1);
factor((259^5+259^4+259^3+259^2+259+1)*259^19+259^6+259^5+259^4+259^3+259^2+259+1);
factor((263^5+263^4+263^3+263^2+263+1)*263^19+263^6+263^5+263^4+263^3+263^2+263+1);
factor((264^5+264^4+264^3+264^2+264+1)*264^19+264^6+264^5+264^4+264^3+264^2+264+1);
factor((265^5+265^4+265^3+265^2+265+1)*265^19+265^6+265^5+265^4+265^3+265^2+265+1);
factor((270^5+270^4+270^3+270^2+270+1)*270^19+270^6+270^5+270^4+270^3+270^2+270+1);
factor((273^5+273^4+273^3+273^2+273+1)*273^19+273^6+273^5+273^4+273^3+273^2+273+1);
factor((278^5+278^4+278^3+278^2+278+1)*278^19+278^6+278^5+278^4+278^3+278^2+278+1);
factor((279^5+279^4+279^3+279^2+279+1)*279^19+279^6+279^5+279^4+279^3+279^2+279+1);
factor((280^5+280^4+280^3+280^2+280+1)*280^19+280^6+280^5+280^4+280^3+280^2+280+1);
factor((281^5+281^4+281^3+281^2+281+1)*281^19+281^6+281^5+281^4+281^3+281^2+281+1);
factor((282^5+282^4+282^3+282^2+282+1)*282^19+282^6+282^5+282^4+282^3+282^2+282+1);
factor((286^5+286^4+286^3+286^2+286+1)*286^19+286^6+286^5+286^4+286^3+286^2+286+1);
factor((289^5+289^4+289^3+289^2+289+1)*289^19+289^6+289^5+289^4+289^3+289^2+289+1);
factor((290^5+290^4+290^3+290^2+290+1)*290^19+290^6+290^5+290^4+290^3+290^2+290+1);
factor((291^5+291^4+291^3+291^2+291+1)*291^19+291^6+291^5+291^4+291^3+291^2+291+1);
factor((292^5+292^4+292^3+292^2+292+1)*292^19+292^6+292^5+292^4+292^3+292^2+292+1);
factor((294^5+294^4+294^3+294^2+294+1)*294^19+294^6+294^5+294^4+294^3+294^2+294+1);
factor((296^5+296^4+296^3+296^2+296+1)*296^19+296^6+296^5+296^4+296^3+296^2+296+1);
factor((297^5+297^4+297^3+297^2+297+1)*297^19+297^6+297^5+297^4+297^3+297^2+297+1);
factor((298^5+298^4+298^3+298^2+298+1)*298^19+298^6+298^5+298^4+298^3+298^2+298+1);
factor((299^5+299^4+299^3+299^2+299+1)*299^19+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 + 201 + 201  + 201  + 201  + 201  + 201
                                                 2      3      4      5     19
                                 + (1 + 201 + 201  + 201  + 201  + 201 ) 201  )
(%o2)      19005156047068776996608874199055237216618490507326670013
素数ですね。
                          2      3      4      5      6
(%i3) factor(1 + 202 + 202  + 202  + 202  + 202  + 202
                                                 2      3      4      5     19
                                 + (1 + 202 + 202  + 202  + 202  + 202 ) 202  )
(%o3)    27823 2386383383 2622374856547 122955860778819155383766476277
                          2      3      4      5      6
(%i4) factor(1 + 204 + 204  + 204  + 204  + 204  + 204
                                                 2      3      4      5     19
                                 + (1 + 204 + 204  + 204  + 204  + 204 ) 204  )
(%o4)     267021767 516738497100022801 196535344566199512220192825163
                          2      3      4      5      6
(%i5) factor(1 + 205 + 205  + 205  + 205  + 205  + 205
                                                 2      3      4      5     19
                                 + (1 + 205 + 205  + 205  + 205  + 205 ) 205  )
(%o5)      30494137832819241243827280389445220445332906920629932981
素数ですね。
                          2      3      4      5      6
(%i6) factor(1 + 207 + 207  + 207  + 207  + 207  + 207
                                                 2      3      4      5     19
                                 + (1 + 207 + 207  + 207  + 207  + 207 ) 207  )
(%o6)      38493855885402240345976184907649606023959585372392346401
素数ですね。
                          2      3      4      5      6
(%i7) factor(1 + 210 + 210  + 210  + 210  + 210  + 210
                                                 2      3      4      5     19
                                 + (1 + 210 + 210  + 210  + 210  + 210 ) 210  )
(%o7) 157 241 4651 5009 16283543 1133648469986002489 3341140236349963471
                          2      3      4      5      6
(%i8) factor(1 + 211 + 211  + 211  + 211  + 211  + 211
                                                 2      3      4      5     19
                                 + (1 + 211 + 211  + 211  + 211  + 211 ) 211  )
(%o8)     2383738119337 25561335828584409483227191632482686414882849
                          2      3      4      5      6
(%i9) factor(1 + 213 + 213  + 213  + 213  + 213  + 213
                                                 2      3      4      5     19
                                 + (1 + 213 + 213  + 213  + 213  + 213 ) 213  )
(%o9)  263 681731 22048087 90296340947 20642445406321 10370106657632573
                           2      3      4      5      6
(%i10) factor(1 + 214 + 214  + 214  + 214  + 214  + 214
                                                 2      3      4      5     19
                                 + (1 + 214 + 214  + 214  + 214  + 214 ) 214  )
(%o10)    42936798161 41170353434206319 48367147973921073862763840029
                           2      3      4      5      6
(%i11) factor(1 + 218 + 218  + 218  + 218  + 218  + 218
                                                 2      3      4      5     19
                                 + (1 + 218 + 218  + 218  + 218  + 218 ) 218  )
(%o11)    853 37322031361 4188305013085545382842826666467073492450747
                           2      3      4      5      6
(%i12) factor(1 + 220 + 220  + 220  + 220  + 220  + 220
                                                 2      3      4      5     19
                                 + (1 + 220 + 220  + 220  + 220  + 220 ) 220  )
(%o12)     166005663843569761743483164125880647680000113897620456621
素数ですね。
                           2      3      4      5      6
(%i13) factor(1 + 223 + 223  + 223  + 223  + 223  + 223
                                                 2      3      4      5     19
                                 + (1 + 223 + 223  + 223  + 223  + 223 ) 223  )
(%o13)   2203 89739043 316122633559 3676351935341069869865341086079831
                           2      3      4      5      6
(%i14) factor(1 + 226 + 226  + 226  + 226  + 226  + 226
                                                 2      3      4      5     19
                                 + (1 + 226 + 226  + 226  + 226  + 226 ) 226  )
(%o14)    74718299 4237419727871943044577963575743177972648741685837
                           2      3      4      5      6
(%i15) factor(1 + 227 + 227  + 227  + 227  + 227  + 227
                                                 2      3      4      5     19
                                 + (1 + 227 + 227  + 227  + 227  + 227 ) 227  )
(%o15)  229 16927 3947491 641510072410769 35858976197812623540564614153
                           2      3      4      5      6
(%i16) factor(1 + 230 + 230  + 230  + 230  + 230  + 230
                                                 2      3      4      5     19
                                 + (1 + 230 + 230  + 230  + 230  + 230 ) 230  )
(%o16)  347 160441 285306859 30367103562157204265583195498395018232467
                           2      3      4      5      6
(%i17) factor(1 + 236 + 236  + 236  + 236  + 236  + 236
                                                 2      3      4      5     19
                                 + (1 + 236 + 236  + 236  + 236  + 236 ) 236  )
(%o17)    378941 2361351370267914022186037760393188742806258882056193
                           2      3      4      5      6
(%i18) factor(1 + 237 + 237  + 237  + 237  + 237  + 237
                                                 2      3      4      5     19
                                 + (1 + 237 + 237  + 237  + 237  + 237 ) 237  )
(%o18)   2858928827137 371558631038839 932322036562442529045965790067
                           2      3      4      5      6
(%i19) factor(1 + 244 + 244  + 244  + 244  + 244  + 244
                                                 2      3      4      5     19
                                 + (1 + 244 + 244  + 244  + 244  + 244 ) 244  )
(%o19)   2081 1398425255107333 684270860514219969233270137397727918497
                           2      3      4      5      6
(%i20) factor(1 + 245 + 245  + 245  + 245  + 245  + 245
                                                 2      3      4      5     19
                                 + (1 + 245 + 245  + 245  + 245  + 245 ) 245  )
(%o20)    3475141511012131 632105819384146945198883430250539442775191
                           2      3      4      5      6
(%i21) factor(1 + 249 + 249  + 249  + 249  + 249  + 249
                                                 2      3      4      5     19
                                 + (1 + 249 + 249  + 249  + 249  + 249 ) 249  )
(%o21)    3239902914815259502617384495649745019480542524720363873501
素数ですね。
                           2      3      4      5      6
(%i22) factor(1 + 251 + 251  + 251  + 251  + 251  + 251
                                                 2      3      4      5     19
                                 + (1 + 251 + 251  + 251  + 251  + 251 ) 251  )
(%o22) 859 6869 9967 748463 334759463 8559766518503891 31123381241395171
                           2      3      4      5      6
(%i23) factor(1 + 252 + 252  + 252  + 252  + 252  + 252
                                                 2      3      4      5     19
                                 + (1 + 252 + 252  + 252  + 252  + 252 ) 252  )
(%o23)   207383502300616144375997 20824068968611016370793780554854993
                           2      3      4      5      6
(%i24) factor(1 + 253 + 253  + 253  + 253  + 253  + 253
                                                 2      3      4      5     19
                                 + (1 + 253 + 253  + 253  + 253  + 253 ) 253  )
(%o24)   139 34166279422394310819224150601635539774710015489226952479
                           2      3      4      5      6
(%i25) factor(1 + 254 + 254  + 254  + 254  + 254  + 254
                                                 2      3      4      5     19
                                 + (1 + 254 + 254  + 254  + 254  + 254 ) 254  )
(%o25)   1769756783 5439840056267 542278864696017955815659620782208111
                           2      3      4      5      6
(%i26) factor(1 + 255 + 255  + 255  + 255  + 255  + 255
                                                 2      3      4      5     19
                                 + (1 + 255 + 255  + 255  + 255  + 255 ) 255  )
(%o26)  163 50527 8090986117 86091092827510327158900705493511635256593
                           2      3      4      5      6
(%i27) factor(1 + 256 + 256  + 256  + 256  + 256  + 256
                                                 2      3      4      5     19
                                 + (1 + 256 + 256  + 256  + 256  + 256 ) 256  )
(%o27)   3978842437709 1583806828061271592228320910339336436482311557
                           2      3      4      5      6
(%i28) factor(1 + 258 + 258  + 258  + 258  + 258  + 258
                                                 2      3      4      5     19
                                 + (1 + 258 + 258  + 258  + 258  + 258 ) 258  )
(%o28) 2467 2476363 1278954097 77363911237156603 12565584480168202058461
                           2      3      4      5      6
(%i29) factor(1 + 259 + 259  + 259  + 259  + 259  + 259
                                                 2      3      4      5     19
                                 + (1 + 259 + 259  + 259  + 259  + 259 ) 259  )
(%o29) 6337 88951 12446267 1372680233 107439386028349 8055042629257366537
                           2      3      4      5      6
(%i30) factor(1 + 263 + 263  + 263  + 263  + 263  + 263
                                                 2      3      4      5     19
                                 + (1 + 263 + 263  + 263  + 263  + 263 ) 263  )
(%o30)   55733 99757031038469849519 2165391784746561686304772727695843
                           2      3      4      5      6
(%i31) factor(1 + 264 + 264  + 264  + 264  + 264  + 264
                                                 2      3      4      5     19
                                 + (1 + 264 + 264  + 264  + 264  + 264 ) 264  )
(%o31)  2797 23381593373 201639612152611027725208808051211507805565681
                           2      3      4      5      6
(%i32) factor(1 + 265 + 265  + 265  + 265  + 265  + 265
                                                 2      3      4      5     19
                                 + (1 + 265 + 265  + 265  + 265  + 265 ) 265  )
(%o32) 1163 3347 9554485439 230586053807 1683709470042007208228172210397
                           2      3      4      5      6
(%i33) factor(1 + 270 + 270  + 270  + 270  + 270  + 270
                                                 2      3      4      5     19
                                 + (1 + 270 + 270  + 270  + 270  + 270 ) 270  )
(%o33)   1134751829513709504141559 19926954646834530449577435567525469
                           2      3      4      5      6
(%i34) factor(1 + 273 + 273  + 273  + 273  + 273  + 273
                                                 2      3      4      5     19
                                 + (1 + 273 + 273  + 273  + 273  + 273 ) 273  )
(%o34)   9281 3176160930946645165452129012435753776726591721697404461
                           2      3      4      5      6
(%i35) factor(1 + 278 + 278  + 278  + 278  + 278  + 278
                                                 2      3      4      5     19
                                 + (1 + 278 + 278  + 278  + 278  + 278 ) 278  )
(%o35) 135059 7546200989 4461350022195104039 10021250840540226610564979
                           2      3      4      5      6
(%i36) factor(1 + 279 + 279  + 279  + 279  + 279  + 279
                                                 2      3      4      5     19
                                 + (1 + 279 + 279  + 279  + 279  + 279 ) 279  )
(%o36) 405211 337152594173 130999143600869 2775134889102226417363380403
                           2      3      4      5      6
(%i37) factor(1 + 280 + 280  + 280  + 280  + 280  + 280
                                                 2      3      4      5     19
                                 + (1 + 280 + 280  + 280  + 280  + 280 ) 280  )
(%o37)  1508666977 34193359608211137317 1049086799296112772358081552709
                           2      3      4      5      6
(%i38) factor(1 + 281 + 281  + 281  + 281  + 281  + 281
                                                 2      3      4      5     19
                                 + (1 + 281 + 281  + 281  + 281  + 281 ) 281  )
(%o38) 46679 138657479 576990417129095917 15785797324723167930321048529
                           2      3      4      5      6
(%i39) factor(1 + 282 + 282  + 282  + 282  + 282  + 282
                                                 2      3      4      5     19
                                 + (1 + 282 + 282  + 282  + 282  + 282 ) 282  )
(%o39) 173 613 447569 1138777 1187725621219848807933484373855321147801023
                           2      3      4      5      6
(%i40) factor(1 + 286 + 286  + 286  + 286  + 286  + 286
                                                 2      3      4      5     19
                                 + (1 + 286 + 286  + 286  + 286  + 286 ) 286  )
(%o40) 87751 32151377 85412990989 174397795901288203 2141851682807345507
                           2      3      4      5      6
(%i41) factor(1 + 289 + 289  + 289  + 289  + 289  + 289
                                                 2      3      4      5     19
                                 + (1 + 289 + 289  + 289  + 289  + 289 ) 289  )
(%o41)  787 1354559773933 108462765733697681699885732264679380941624891
                           2      3      4      5      6
(%i42) factor(1 + 290 + 290  + 290  + 290  + 290  + 290
                                                 2      3      4      5     19
                                 + (1 + 290 + 290  + 290  + 290  + 290 ) 290  )
(%o42)   394773447142000145201507303 318202927453506685492449754825097
                           2      3      4      5      6
(%i43) factor(1 + 291 + 291  + 291  + 291  + 291  + 291
                                                 2      3      4      5     19
                                 + (1 + 291 + 291  + 291  + 291  + 291 ) 291  )
(%o43) 643 1259 26399 23331839 130313401321 5490280678573 382445846686589573
                           2      3      4      5      6
(%i44) factor(1 + 292 + 292  + 292  + 292  + 292  + 292
                                                 2      3      4      5     19
                                 + (1 + 292 + 292  + 292  + 292  + 292 ) 292  )
(%o44)  2387477 10595943332894597345055893 5855978502507468629400227101
                           2      3      4      5      6
(%i45) factor(1 + 294 + 294  + 294  + 294  + 294  + 294
                                                 2      3      4      5     19
                                 + (1 + 294 + 294  + 294  + 294  + 294 ) 294  )
(%o45) 6679 12707801 11978209050444082636027 171649247094894240903314807
                           2      3      4      5      6
(%i46) factor(1 + 296 + 296  + 296  + 296  + 296  + 296
                                                 2      3      4      5     19
                                 + (1 + 296 + 296  + 296  + 296  + 296 ) 296  )
(%o46)   6199 33124484183997706749499488626884830796557682256416539487
                           2      3      4      5      6
(%i47) factor(1 + 297 + 297  + 297  + 297  + 297  + 297
                                                 2      3      4      5     19
                                 + (1 + 297 + 297  + 297  + 297  + 297 ) 297  )
(%o47) 10253 270553 44570252115029 1800823377534569385782539710121968181
                           2      3      4      5      6
(%i48) factor(1 + 298 + 298  + 298  + 298  + 298  + 298
                                                 2      3      4      5     19
                                 + (1 + 298 + 298  + 298  + 298  + 298 ) 298  )
(%o48)  3638699 6794697461 9761889716234786239319334014200979655605569
                           2      3      4      5      6
(%i49) factor(1 + 299 + 299  + 299  + 299  + 299  + 299
                                                 2      3      4      5     19
                                 + (1 + 299 + 299  + 299  + 299  + 299 ) 299  )
(%o49)  14975113499 903750615536370042237607 19326121932702106229422157
(%o49)                               a.bat
(%i50)

b.txtに追加されるものは、
157,210
241,210
263,213
853,218
229,227
347,230
859,251
139,253
163,255
173,282
613,282
787,289
643,291