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

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


多項式を変える。

(x^5+x^4+x^3+x^2+x+1)*x^17+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^17+x^6+x^5+x^4+x^3+x^2+x+1);
       22    21    20    19    18    17    6    5    4    3    2
(%o2) x   + x   + x   + x   + x   + x   + x  + x  + x  + x  + x  + x + 1

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

e8.batをmaximaで実行した。
(%i3) batch("e8.bat");

read and interpret file: e8.bat
(%i4) for x from 2 while x < 20 do (y :
                2    3    4    5    6             2    3    4    5   17
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)= 29 284747
        x= 3
            2
factor(x)= 5  79 23801023
        x= 4
factor(x)= 3575849 6558029
        x= 5
factor(x)= 41 173 617 680937401
        x= 6
factor(x)= 53 113 26372125443127
        x= 7
factor(x)= 293 1153 1310657 10301821
        x= 8
factor(x)= 5 157 823 185491 703683989
        x= 9
factor(x)= 29 38202247596856923329
        x= 10
factor(x)= 71 156494366197183114241
        x= 11
factor(x)= 13 107 239 5851 46033753139707
        x= 12
factor(x)= 137 2027 2168710152928213087
        x= 13
factor(x)= 5 1217 13457 42491976444969617
        x= 14
factor(x)= 13 179 7589357786375153424893
        x= 15
factor(x)= 17 19 36973 90154861 74455112339
        x= 16
factor(x)= 37 1771747 532399573 9458607139
        x= 17
factor(x)= 43 2039 14233755769485770153969
        x= 18
factor(x)= 5 223 1770467816167 2215418506907
        x= 19
factor(x)= 41 349362632066288441008560641
(%o4)                                done
(%o4)                               e8.bat
(%i5)

以上より、b.txtは次のようになる。
29,2
5,3
79,3
41,5
173,5
617,5
53,6
113,6
293,7
5,8
157,8
823,8
29,9
71,10
13,11
107,11
239,11
137,12
5,13
13,14
179,14
17,15
19,15
37,16
43,17
5,18
223,18
41,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^17+%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);
}

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

factor((1^5+1^4+1^3+1^2+1+1)*1^17+1^6+1^5+1^4+1^3+1^2+1+1);
factor((4^5+4^4+4^3+4^2+4+1)*4^17+4^6+4^5+4^4+4^3+4^2+4+1);
factor((20^5+20^4+20^3+20^2+20+1)*20^17+20^6+20^5+20^4+20^3+20^2+20+1);
factor((21^5+21^4+21^3+21^2+21+1)*21^17+21^6+21^5+21^4+21^3+21^2+21+1);
factor((22^5+22^4+22^3+22^2+22+1)*22^17+22^6+22^5+22^4+22^3+22^2+22+1);
factor((25^5+25^4+25^3+25^2+25+1)*25^17+25^6+25^5+25^4+25^3+25^2+25+1);
factor((26^5+26^4+26^3+26^2+26+1)*26^17+26^6+26^5+26^4+26^3+26^2+26+1);
factor((29^5+29^4+29^3+29^2+29+1)*29^17+29^6+29^5+29^4+29^3+29^2+29+1);
factor((30^5+30^4+30^3+30^2+30+1)*30^17+30^6+30^5+30^4+30^3+30^2+30+1);
factor((35^5+35^4+35^3+35^2+35+1)*35^17+35^6+35^5+35^4+35^3+35^2+35+1);
factor((36^5+36^4+36^3+36^2+36+1)*36^17+36^6+36^5+36^4+36^3+36^2+36+1);
factor((39^5+39^4+39^3+39^2+39+1)*39^17+39^6+39^5+39^4+39^3+39^2+39+1);
factor((41^5+41^4+41^3+41^2+41+1)*41^17+41^6+41^5+41^4+41^3+41^2+41+1);
factor((42^5+42^4+42^3+42^2+42+1)*42^17+42^6+42^5+42^4+42^3+42^2+42+1);
factor((44^5+44^4+44^3+44^2+44+1)*44^17+44^6+44^5+44^4+44^3+44^2+44+1);
factor((45^5+45^4+45^3+45^2+45+1)*45^17+45^6+45^5+45^4+45^3+45^2+45+1);
factor((47^5+47^4+47^3+47^2+47+1)*47^17+47^6+47^5+47^4+47^3+47^2+47+1);
factor((51^5+51^4+51^3+51^2+51+1)*51^17+51^6+51^5+51^4+51^3+51^2+51+1);
factor((52^5+52^4+52^3+52^2+52+1)*52^17+52^6+52^5+52^4+52^3+52^2+52+1);
factor((54^5+54^4+54^3+54^2+54+1)*54^17+54^6+54^5+54^4+54^3+54^2+54+1);
factor((55^5+55^4+55^3+55^2+55+1)*55^17+55^6+55^5+55^4+55^3+55^2+55+1);
factor((56^5+56^4+56^3+56^2+56+1)*56^17+56^6+56^5+56^4+56^3+56^2+56+1);
factor((57^5+57^4+57^3+57^2+57+1)*57^17+57^6+57^5+57^4+57^3+57^2+57+1);
factor((61^5+61^4+61^3+61^2+61+1)*61^17+61^6+61^5+61^4+61^3+61^2+61+1);
factor((62^5+62^4+62^3+62^2+62+1)*62^17+62^6+62^5+62^4+62^3+62^2+62+1);
factor((64^5+64^4+64^3+64^2+64+1)*64^17+64^6+64^5+64^4+64^3+64^2+64+1);
factor((65^5+65^4+65^3+65^2+65+1)*65^17+65^6+65^5+65^4+65^3+65^2+65+1);
factor((69^5+69^4+69^3+69^2+69+1)*69^17+69^6+69^5+69^4+69^3+69^2+69+1);
factor((70^5+70^4+70^3+70^2+70+1)*70^17+70^6+70^5+70^4+70^3+70^2+70+1);
factor((71^5+71^4+71^3+71^2+71+1)*71^17+71^6+71^5+71^4+71^3+71^2+71+1);
factor((74^5+74^4+74^3+74^2+74+1)*74^17+74^6+74^5+74^4+74^3+74^2+74+1);
factor((75^5+75^4+75^3+75^2+75+1)*75^17+75^6+75^5+75^4+75^3+75^2+75+1);
factor((77^5+77^4+77^3+77^2+77+1)*77^17+77^6+77^5+77^4+77^3+77^2+77+1);
factor((80^5+80^4+80^3+80^2+80+1)*80^17+80^6+80^5+80^4+80^3+80^2+80+1);
factor((84^5+84^4+84^3+84^2+84+1)*84^17+84^6+84^5+84^4+84^3+84^2+84+1);
factor((85^5+85^4+85^3+85^2+85+1)*85^17+85^6+85^5+85^4+85^3+85^2+85+1);
factor((86^5+86^4+86^3+86^2+86+1)*86^17+86^6+86^5+86^4+86^3+86^2+86+1);
factor((94^5+94^4+94^3+94^2+94+1)*94^17+94^6+94^5+94^4+94^3+94^2+94+1);
factor((95^5+95^4+95^3+95^2+95+1)*95^17+95^6+95^5+95^4+95^3+95^2+95+1);
factor((97^5+97^4+97^3+97^2+97+1)*97^17+97^6+97^5+97^4+97^3+97^2+97+1);
factor((99^5+99^4+99^3+99^2+99+1)*99^17+99^6+99^5+99^4+99^3+99^2+99+1);


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

read and interpret file: a.bat
                      2    3    4    5    6             2    3    4    5   17
(%i2) factor(1 + 1 + 1  + 1  + 1  + 1  + 1  + (1 + 1 + 1  + 1  + 1  + 1 ) 1  )
(%o2)                                 13
 素数ですね。
                     2    3    4    5    6             2    3    4    5   17
(%i3) factor(1 + 4 + 4  + 4  + 4  + 4  + 4  + (1 + 4 + 4  + 4  + 4  + 4 ) 4  )
(%o3)                           3575849 6558029
                        2     3     4     5     6
(%i4) factor(1 + 20 + 20  + 20  + 20  + 20  + 20
                                                     2     3     4     5    17
                                       + (1 + 20 + 20  + 20  + 20  + 20 ) 20  )
(%o4)                   128717 343004946752954155240313
                        2     3     4     5     6
(%i5) factor(1 + 21 + 21  + 21  + 21  + 21  + 21
                                                     2     3     4     5    17
                                       + (1 + 21 + 21  + 21  + 21  + 21 ) 21  )
(%o5)                   71 1814493552863574504823369763
                        2     3     4     5     6
(%i6) factor(1 + 22 + 22  + 22  + 22  + 22  + 22
                                                     2     3     4     5    17
                                       + (1 + 22 + 22  + 22  + 22  + 22 ) 22  )
(%o6)                  1733 83677133 2466590224188196867
                        2     3     4     5     6
(%i7) factor(1 + 25 + 25  + 25  + 25  + 25  + 25
                                                     2     3     4     5    17
                                       + (1 + 25 + 25  + 25  + 25  + 25 ) 25  )
(%o7)                 59 2441 70678079 581707184729472401
                        2     3     4     5     6
(%i8) factor(1 + 26 + 26  + 26  + 26  + 26  + 26
                                                     2     3     4     5    17
                                       + (1 + 26 + 26  + 26  + 26  + 26 ) 26  )
                         2
(%o8)                  41  8334494797105847944708830823
                        2     3     4     5     6
(%i9) factor(1 + 29 + 29  + 29  + 29  + 29  + 29
                                                     2     3     4     5    17
                                       + (1 + 29 + 29  + 29  + 29  + 29 ) 29  )
(%o9)                1807693 7122443 11974082911745916779
                         2     3     4     5     6
(%i10) factor(1 + 30 + 30  + 30  + 30  + 30  + 30
                                                     2     3     4     5    17
                                       + (1 + 30 + 30  + 30  + 30  + 30 ) 30  )
(%o10)               1229 750161 352114974824325235248199
                         2     3     4     5     6
(%i11) factor(1 + 35 + 35  + 35  + 35  + 35  + 35
                                                     2     3     4     5    17
                                       + (1 + 35 + 35  + 35  + 35  + 35 ) 35  )
(%o11)               210193961 7604698061 6003214938434341
                         2     3     4     5     6
(%i12) factor(1 + 36 + 36  + 36  + 36  + 36  + 36
                                                     2     3     4     5    17
                                       + (1 + 36 + 36  + 36  + 36  + 36 ) 36  )
(%o12)               661 52625533 512261251446121320046261
                         2     3     4     5     6
(%i13) factor(1 + 39 + 39  + 39  + 39  + 39  + 39
                                                     2     3     4     5    17
                                       + (1 + 39 + 39  + 39  + 39  + 39 ) 39  )
(%o13)               103443299551144164650617166686185361
 素数ですね。
                         2     3     4     5     6
(%i14) factor(1 + 41 + 41  + 41  + 41  + 41  + 41
                                                     2     3     4     5    17
                                       + (1 + 41 + 41  + 41  + 41  + 41 ) 41  )
(%o14)               661 469642351230157587548318645506153
                         2     3     4     5     6
(%i15) factor(1 + 42 + 42  + 42  + 42  + 42  + 42
                                                     2     3     4     5    17
                                       + (1 + 42 + 42  + 42  + 42  + 42 ) 42  )
(%o15)             113 67459571 10513341997 6577896134923873
                         2     3     4     5     6
(%i16) factor(1 + 44 + 44  + 44  + 44  + 44  + 44
                                                     2     3     4     5    17
                                       + (1 + 44 + 44  + 44  + 44  + 44 ) 44  )
(%o16)             8629 6083191 916769666431 30450255899809
                         2     3     4     5     6
(%i17) factor(1 + 45 + 45  + 45  + 45  + 45  + 45
                                                     2     3     4     5    17
                                       + (1 + 45 + 45  + 45  + 45  + 45 ) 45  )
(%o17)            47 61 267271 8955818797831 349905130835063
                         2     3     4     5     6
(%i18) factor(1 + 47 + 47  + 47  + 47  + 47  + 47
                                                     2     3     4     5    17
                                       + (1 + 47 + 47  + 47  + 47  + 47 ) 47  )
(%o18)            1103 197837 197777141 144688420615474942463
                         2     3     4     5     6
(%i19) factor(1 + 51 + 51  + 51  + 51  + 51  + 51
                                                     2     3     4     5    17
                                       + (1 + 51 + 51  + 51  + 51  + 51 ) 51  )
(%o19)            53 4133 9719 860485799399 20522841040126177
                         2     3     4     5     6
(%i20) factor(1 + 52 + 52  + 52  + 52  + 52  + 52
                                                     2     3     4     5    17
                                       + (1 + 52 + 52  + 52  + 52  + 52 ) 52  )
(%o20)          157 647 171341 18910009 1313147707 133301851609
                         2     3     4     5     6
(%i21) factor(1 + 54 + 54  + 54  + 54  + 54  + 54
                                                     2     3     4     5    17
                                       + (1 + 54 + 54  + 54  + 54  + 54 ) 54  )
(%o21)            89 17949215309 49144531109 1682170206313019
                         2     3     4     5     6
(%i22) factor(1 + 55 + 55  + 55  + 55  + 55  + 55
                                                     2     3     4     5    17
                                       + (1 + 55 + 55  + 55  + 55  + 55 ) 55  )
(%o22)              197673339142377456564059124784052620081
 素数ですね。
                         2     3     4     5     6
(%i23) factor(1 + 56 + 56  + 56  + 56  + 56  + 56
                                                     2     3     4     5    17
                                       + (1 + 56 + 56  + 56  + 56  + 56 ) 56  )
(%o23)            317 9341 6834677693 14514138341267814012293
                         2     3     4     5     6
(%i24) factor(1 + 57 + 57  + 57  + 57  + 57  + 57
                                                     2     3     4     5    17
                                       + (1 + 57 + 57  + 57  + 57  + 57 ) 57  )
(%o24)              433444656604397212317094644593338311613
 素数ですね。
                         2     3     4     5     6
(%i25) factor(1 + 61 + 61  + 61  + 61  + 61  + 61
                                                     2     3     4     5    17
                                       + (1 + 61 + 61  + 61  + 61  + 61 ) 61  )
(%o25)            2969 72391759666892147 8956444186364337151
                         2     3     4     5     6
(%i26) factor(1 + 62 + 62  + 62  + 62  + 62  + 62
                                                     2     3     4     5    17
                                       + (1 + 62 + 62  + 62  + 62  + 62 ) 62  )
(%o26)            8839 22283 13973404440065881821286218110999
                         2     3     4     5     6
(%i27) factor(1 + 64 + 64  + 64  + 64  + 64  + 64
                                                     2     3     4     5    17
                                       + (1 + 64 + 64  + 64  + 64  + 64 ) 64  )
(%o27)             5530938789237625145802899689024474320961
 素数ですね。
                         2     3     4     5     6
(%i28) factor(1 + 65 + 65  + 65  + 65  + 65  + 65
                                                     2     3     4     5    17
                                       + (1 + 65 + 65  + 65  + 65  + 65 ) 65  )
(%o28)            4718317 1797922340089 916788557981172554857
                         2     3     4     5     6
(%i29) factor(1 + 69 + 69  + 69  + 69  + 69  + 69
                                                     2     3     4     5    17
                                       + (1 + 69 + 69  + 69  + 69  + 69 ) 69  )
(%o29)           13397 4591544701695337 469952322325185531929
                         2     3     4     5     6
(%i30) factor(1 + 70 + 70  + 70  + 70  + 70  + 70
                                                     2     3     4     5    17
                                       + (1 + 70 + 70  + 70  + 70  + 70 ) 70  )
(%o30)           2877942311 14919042548177 923810284689005893
                         2     3     4     5     6
(%i31) factor(1 + 71 + 71  + 71  + 71  + 71  + 71
                                                     2     3     4     5    17
                                       + (1 + 71 + 71  + 71  + 71  + 71 ) 71  )
(%o31)           163 98051467 3390020155724218292482528498513
                         2     3     4     5     6
(%i32) factor(1 + 74 + 74  + 74  + 74  + 74  + 74
                                                     2     3     4     5    17
                                       + (1 + 74 + 74  + 74  + 74  + 74 ) 74  )
(%o32)           20971661 104573687507 61369338537406199921713
                         2     3     4     5     6
(%i33) factor(1 + 75 + 75  + 75  + 75  + 75  + 75
                                                     2     3     4     5    17
                                       + (1 + 75 + 75  + 75  + 75  + 75 ) 75  )
(%o33)            8469496327 21346159700597395403812032344863
                         2     3     4     5     6
(%i34) factor(1 + 77 + 77  + 77  + 77  + 77  + 77
                                                     2     3     4     5    17
                                       + (1 + 77 + 77  + 77  + 77  + 77 ) 77  )
(%o34)            693853216313 464735106716741471380933938701
                         2     3     4     5     6
(%i35) factor(1 + 80 + 80  + 80  + 80  + 80  + 80
                                                     2     3     4     5    17
                                       + (1 + 80 + 80  + 80  + 80  + 80 ) 80  )
(%o35)          12109 657187 190941031 491751964027559414301697
                         2     3     4     5     6
(%i36) factor(1 + 84 + 84  + 84  + 84  + 84  + 84
                                                     2     3     4     5    17
                                       + (1 + 84 + 84  + 84  + 84  + 84 ) 84  )
(%o36)           59 37024864295085916527262027081054538829599
                         2     3     4     5     6
(%i37) factor(1 + 85 + 85  + 85  + 85  + 85  + 85
                                                     2     3     4     5    17
                                       + (1 + 85 + 85  + 85  + 85  + 85 ) 85  )
(%o37)         365556403 23074683949 192976155943 1740853390741
                         2     3     4     5     6
(%i38) factor(1 + 86 + 86  + 86  + 86  + 86  + 86
                                                     2     3     4     5    17
                                       + (1 + 86 + 86  + 86  + 86  + 86 ) 86  )
(%o38)          721849 25783327 72409391641537 2719350816202693
                         2     3     4     5     6
(%i39) factor(1 + 94 + 94  + 94  + 94  + 94  + 94
                                                     2     3     4     5    17
                                       + (1 + 94 + 94  + 94  + 94  + 94 ) 94  )
(%o39)         97 3863 463261 149257272629400787718152637624561
                         2     3     4     5     6
(%i40) factor(1 + 95 + 95  + 95  + 95  + 95  + 95
                                                     2     3     4     5    17
                                       + (1 + 95 + 95  + 95  + 95  + 95 ) 95  )
(%o40)          14976262207 2183291042030225355075557935061503
                         2     3     4     5     6
(%i41) factor(1 + 97 + 97  + 97  + 97  + 97  + 97
                                                     2     3     4     5    17
                                       + (1 + 97 + 97  + 97  + 97  + 97 ) 97  )
(%o41)        1283 6151 10741921 232212697 2626263845836870022753
                         2     3     4     5     6
(%i42) factor(1 + 99 + 99  + 99  + 99  + 99  + 99
                                                     2     3     4     5    17
                                       + (1 + 99 + 99  + 99  + 99  + 99 ) 99  )
(%o42)          252927791693 320174579508451176367501681925357
(%o42)                               a.bat
(%i43)



b.txt
71,21
59,25
41,26
661,36
661,41
113,42
47,45
61,45
53,51
157,52
647,52
89,54
317,56
163,71
59,84
97,94


$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
29n+2
5n+3
79n+3
41n+5
173n+5
617n+5
53n+6
113n+6
293n+7
5n+8
157n+8
823n+8
29n+9
71n+10
13n+11
107n+11
239n+11
137n+12
5n+13
13n+14
179n+14
17n+15
19n+15
37n+16
43n+17
5n+18
223n+18
41n+19
71n+21
59n+25
41n+26
661n+36
661n+41
113n+42
47n+45
61n+45
53n+51
157n+52
647n+52
89n+54
317n+56
163n+71
59n+84
97n+94
b.txt read!  44 個 
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
100=17x5+15
101=41x2+19
102=13x7+11
103=5x20+3
103=5x19+8
103=5x18+13
103=43x2+17
103=5x17+18
104=53x1+51
105=13x7+14
106=61x1+45
!!! 107 !!!
108=5x21+3
108=5x20+8
108=5x19+13
108=5x18+18
108=41x2+26
!!! 109 !!!
110=19x5+15
!!! 111 !!!
112=53x2+6
113=5x22+3
113=5x21+8
113=5x20+13
113=5x19+18
!!! 114 !!!
115=13x8+11
!!! 116 !!!
117=17x6+15
118=29x4+2
118=5x23+3
118=5x22+8
118=107x1+11
118=5x21+13
118=13x8+14
118=5x20+18
119=113x1+6
!!! 120 !!!
!!! 121 !!!
!!! 122 !!!
123=5x24+3
123=5x23+8
123=5x22+13
123=5x21+18
!!! 124 !!!
125=29x4+9
!!! 126 !!!
127=37x3+16
128=5x25+3
128=41x3+5
128=5x24+8
128=13x9+11
128=5x23+13
128=5x22+18
129=19x6+15
!!! 130 !!!
131=13x9+14
!!! 132 !!!
133=5x26+3
133=5x25+8
133=5x24+13
133=5x23+18
134=17x7+15
!!! 135 !!!
!!! 136 !!!
!!! 137 !!!
138=5x27+3
138=5x26+8
138=5x25+13
138=5x24+18
139=47x2+45
!!! 140 !!!
141=13x10+11
142=41x3+19
143=5x28+3
143=5x27+8
143=5x26+13
143=5x25+18
143=59x2+25
143=89x1+54
143=59x1+84
144=13x10+14
!!! 145 !!!
146=43x3+17
147=29x5+2
148=5x29+3
148=5x28+8
148=5x27+13
148=19x7+15
148=5x26+18
149=137x1+12
149=41x3+26
!!! 150 !!!
151=17x8+15
152=71x2+10
153=5x30+3
153=5x29+8
153=5x28+13
153=5x27+18
154=29x5+9
154=13x11+11
155=113x1+42
!!! 156 !!!
157=13x11+14
157=53x2+51
158=5x31+3
158=5x30+8
158=5x29+13
158=5x28+18
!!! 159 !!!
!!! 160 !!!
161=79x2+3
!!! 162 !!!
163=5x32+3
163=5x31+8
163=5x30+13
163=5x29+18
163=71x2+21
164=37x4+16
165=53x3+6
165=157x1+8
!!! 166 !!!
167=13x12+11
167=19x8+15
167=61x2+45
168=5x33+3
168=5x32+8
168=5x31+13
168=17x9+15
168=5x30+18
169=41x4+5
170=13x12+14
!!! 171 !!!
!!! 172 !!!
173=5x34+3
173=5x33+8
173=5x32+13
173=5x31+18
!!! 174 !!!
!!! 175 !!!
176=29x6+2
!!! 177 !!!
178=5x35+3
178=173x1+5
178=5x34+8
178=5x33+13
178=5x32+18
!!! 179 !!!
180=13x13+11
!!! 181 !!!
!!! 182 !!!
183=5x36+3
183=5x35+8
183=29x6+9
183=5x34+13
183=13x13+14
183=5x33+18
183=41x4+19
!!! 184 !!!
185=17x10+15
186=19x9+15
186=47x3+45
!!! 187 !!!
188=5x37+3
188=5x36+8
188=5x35+13
188=5x34+18
189=43x4+17
190=41x4+26
191=97x1+94
!!! 192 !!!
193=5x38+3
193=5x37+8
193=13x14+11
193=5x36+13
193=179x1+14
193=5x35+18
!!! 194 !!!
!!! 195 !!!
196=13x14+14
!!! 197 !!!
198=5x39+3
198=5x38+8
198=5x37+13
198=5x36+18
!!! 199 !!!


factor((107^5+107^4+107^3+107^2+107+1)*107^17+107^6+107^5+107^4+107^3+107^2+107+1);
factor((109^5+109^4+109^3+109^2+109+1)*109^17+109^6+109^5+109^4+109^3+109^2+109+1);
factor((111^5+111^4+111^3+111^2+111+1)*111^17+111^6+111^5+111^4+111^3+111^2+111+1);
factor((114^5+114^4+114^3+114^2+114+1)*114^17+114^6+114^5+114^4+114^3+114^2+114+1);
factor((116^5+116^4+116^3+116^2+116+1)*116^17+116^6+116^5+116^4+116^3+116^2+116+1);
factor((120^5+120^4+120^3+120^2+120+1)*120^17+120^6+120^5+120^4+120^3+120^2+120+1);
factor((121^5+121^4+121^3+121^2+121+1)*121^17+121^6+121^5+121^4+121^3+121^2+121+1);
factor((122^5+122^4+122^3+122^2+122+1)*122^17+122^6+122^5+122^4+122^3+122^2+122+1);
factor((124^5+124^4+124^3+124^2+124+1)*124^17+124^6+124^5+124^4+124^3+124^2+124+1);
factor((126^5+126^4+126^3+126^2+126+1)*126^17+126^6+126^5+126^4+126^3+126^2+126+1);
factor((130^5+130^4+130^3+130^2+130+1)*130^17+130^6+130^5+130^4+130^3+130^2+130+1);
factor((132^5+132^4+132^3+132^2+132+1)*132^17+132^6+132^5+132^4+132^3+132^2+132+1);
factor((135^5+135^4+135^3+135^2+135+1)*135^17+135^6+135^5+135^4+135^3+135^2+135+1);
factor((136^5+136^4+136^3+136^2+136+1)*136^17+136^6+136^5+136^4+136^3+136^2+136+1);
factor((137^5+137^4+137^3+137^2+137+1)*137^17+137^6+137^5+137^4+137^3+137^2+137+1);
factor((140^5+140^4+140^3+140^2+140+1)*140^17+140^6+140^5+140^4+140^3+140^2+140+1);
factor((145^5+145^4+145^3+145^2+145+1)*145^17+145^6+145^5+145^4+145^3+145^2+145+1);
factor((150^5+150^4+150^3+150^2+150+1)*150^17+150^6+150^5+150^4+150^3+150^2+150+1);
factor((156^5+156^4+156^3+156^2+156+1)*156^17+156^6+156^5+156^4+156^3+156^2+156+1);
factor((159^5+159^4+159^3+159^2+159+1)*159^17+159^6+159^5+159^4+159^3+159^2+159+1);
factor((160^5+160^4+160^3+160^2+160+1)*160^17+160^6+160^5+160^4+160^3+160^2+160+1);
factor((162^5+162^4+162^3+162^2+162+1)*162^17+162^6+162^5+162^4+162^3+162^2+162+1);
factor((166^5+166^4+166^3+166^2+166+1)*166^17+166^6+166^5+166^4+166^3+166^2+166+1);
factor((171^5+171^4+171^3+171^2+171+1)*171^17+171^6+171^5+171^4+171^3+171^2+171+1);
factor((172^5+172^4+172^3+172^2+172+1)*172^17+172^6+172^5+172^4+172^3+172^2+172+1);
factor((174^5+174^4+174^3+174^2+174+1)*174^17+174^6+174^5+174^4+174^3+174^2+174+1);
factor((175^5+175^4+175^3+175^2+175+1)*175^17+175^6+175^5+175^4+175^3+175^2+175+1);
factor((177^5+177^4+177^3+177^2+177+1)*177^17+177^6+177^5+177^4+177^3+177^2+177+1);
factor((179^5+179^4+179^3+179^2+179+1)*179^17+179^6+179^5+179^4+179^3+179^2+179+1);
factor((181^5+181^4+181^3+181^2+181+1)*181^17+181^6+181^5+181^4+181^3+181^2+181+1);
factor((182^5+182^4+182^3+182^2+182+1)*182^17+182^6+182^5+182^4+182^3+182^2+182+1);
factor((184^5+184^4+184^3+184^2+184+1)*184^17+184^6+184^5+184^4+184^3+184^2+184+1);
factor((187^5+187^4+187^3+187^2+187+1)*187^17+187^6+187^5+187^4+187^3+187^2+187+1);
factor((192^5+192^4+192^3+192^2+192+1)*192^17+192^6+192^5+192^4+192^3+192^2+192+1);
factor((194^5+194^4+194^3+194^2+194+1)*194^17+194^6+194^5+194^4+194^3+194^2+194+1);
factor((195^5+195^4+195^3+195^2+195+1)*195^17+195^6+195^5+195^4+195^3+195^2+195+1);
factor((197^5+197^4+197^3+197^2+197+1)*197^17+197^6+197^5+197^4+197^3+197^2+197+1);
factor((199^5+199^4+199^3+199^2+199+1)*199^17+199^6+199^5+199^4+199^3+199^2+199+1);


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

read and interpret file: a.bat
                          2      3      4      5      6
(%i2) factor(1 + 107 + 107  + 107  + 107  + 107  + 107
                                                 2      3      4      5     17
                                 + (1 + 107 + 107  + 107  + 107  + 107 ) 107  )
(%o2)           3975560110167285677 112492274296157806455642269
                          2      3      4      5      6
(%i3) factor(1 + 109 + 109  + 109  + 109  + 109  + 109
                                                 2      3      4      5     17
                                 + (1 + 109 + 109  + 109  + 109  + 109 ) 109  )
(%o3)          387839 25136682799916399 68932853075728822807381
                          2      3      4      5      6
(%i4) factor(1 + 111 + 111  + 111  + 111  + 111  + 111
                                                 2      3      4      5     17
                                 + (1 + 111 + 111  + 111  + 111  + 111 ) 111  )
(%o4)          641 10433 149888595458430397974175419409322626081
                          2      3      4      5      6
(%i5) factor(1 + 114 + 114  + 114  + 114  + 114  + 114
                                                 2      3      4      5     17
                                 + (1 + 114 + 114  + 114  + 114  + 114 ) 114  )
(%o5)          179 2521 3993073098455939068319876942250097281629
                          2      3      4      5      6
(%i6) factor(1 + 116 + 116  + 116  + 116  + 116  + 116
                                                 2      3      4      5     17
                                 + (1 + 116 + 116  + 116  + 116  + 116 ) 116  )
(%o6)          8434501 349116097363441 897029330756971096906513
                          2      3      4      5      6
(%i7) factor(1 + 120 + 120  + 120  + 120  + 120  + 120
                                                 2      3      4      5     17
                                 + (1 + 120 + 120  + 120  + 120  + 120 ) 120  )
(%o7)          44453 1433601485149 87355887422736708644756465993
                          2      3      4      5      6
(%i8) factor(1 + 121 + 121  + 121  + 121  + 121  + 121
                                                 2      3      4      5     17
                                 + (1 + 121 + 121  + 121  + 121  + 121 ) 121  )
(%o8)         23057 135753195260479 2134663435604507261984279891
                          2      3      4      5      6
(%i9) factor(1 + 122 + 122  + 122  + 122  + 122  + 122
                                                 2      3      4      5     17
                                 + (1 + 122 + 122  + 122  + 122  + 122 ) 122  )
(%o9)        233 8389 37951 303009192923 356242386229729064954263
                           2      3      4      5      6
(%i10) factor(1 + 124 + 124  + 124  + 124  + 124  + 124
                                                 2      3      4      5     17
                                 + (1 + 124 + 124  + 124  + 124  + 124 ) 124  )
(%o10)         761 4679 3215555022353312912737448145566759697379
                           2      3      4      5      6
(%i11) factor(1 + 126 + 126  + 126  + 126  + 126  + 126
                                                 2      3      4      5     17
                                 + (1 + 126 + 126  + 126  + 126  + 126 ) 126  )
(%o11)         3929 4143148463658644666114941006073955737046947
                           2      3      4      5      6
(%i12) factor(1 + 130 + 130  + 130  + 130  + 130  + 130
                                                 2      3      4      5     17
                                 + (1 + 130 + 130  + 130  + 130  + 130 ) 130  )
(%o12)        1231 236225629 111306961086849430376203296962257669
                           2      3      4      5      6
(%i13) factor(1 + 132 + 132  + 132  + 132  + 132  + 132
                                                 2      3      4      5     17
                                 + (1 + 132 + 132  + 132  + 132  + 132 ) 132  )
(%o13)          45282367194238704633438024802762661975516934613
素数ですね。
                           2      3      4      5      6
(%i14) factor(1 + 135 + 135  + 135  + 135  + 135  + 135
                                                 2      3      4      5     17
                                 + (1 + 135 + 135  + 135  + 135  + 135 ) 135  )
(%o14)      263 19429 7170971 1789877239 47772351629 23691243062243
                           2      3      4      5      6
(%i15) factor(1 + 136 + 136  + 136  + 136  + 136  + 136
                                                 2      3      4      5     17
                                 + (1 + 136 + 136  + 136  + 136  + 136 ) 136  )
(%o15)         8619658799 10129104437054488303091816720588521607
                           2      3      4      5      6
(%i16) factor(1 + 137 + 137  + 137  + 137  + 137  + 137
                                                 2      3      4      5     17
                                 + (1 + 137 + 137  + 137  + 137  + 137 ) 137  )
(%o16)        966041 146089813305046974833 726806233387703159221
                           2      3      4      5      6
(%i17) factor(1 + 140 + 140  + 140  + 140  + 140  + 140
                                                 2      3      4      5     17
                                 + (1 + 140 + 140  + 140  + 140  + 140 ) 140  )
(%o17)        71597 6314640080363 365331056900164397251010435731
                           2      3      4      5      6
(%i18) factor(1 + 145 + 145  + 145  + 145  + 145  + 145
                                                 2      3      4      5     17
                                 + (1 + 145 + 145  + 145  + 145  + 145 ) 145  )
(%o18)        677 52678492644601529 10020272935899004268557663537
                           2      3      4      5      6
(%i19) factor(1 + 150 + 150  + 150  + 150  + 150  + 150
                                                 2      3      4      5     17
                                 + (1 + 150 + 150  + 150  + 150  + 150 ) 150  )
(%o19)    107 673 129127 299213 3422053 71498423 1106453415609075689
                           2      3      4      5      6
(%i20) factor(1 + 156 + 156  + 156  + 156  + 156  + 156
                                                 2      3      4      5     17
                                 + (1 + 156 + 156  + 156  + 156  + 156 ) 156  )
(%o20)        34687 9276812774017 5545855274451340119690920258707
                           2      3      4      5      6
(%i21) factor(1 + 159 + 159  + 159  + 159  + 159  + 159
                                                 2      3      4      5     17
                                 + (1 + 159 + 159  + 159  + 159  + 159 ) 159  )
(%o21)        57413968911223 47256244255578712919080762600872967
                           2      3      4      5      6
(%i22) factor(1 + 160 + 160  + 160  + 160  + 160  + 160
                                                 2      3      4      5     17
                                 + (1 + 160 + 160  + 160  + 160  + 160 ) 160  )
(%o22)       25165360473767 329257518239393 375857846118374513431
                           2      3      4      5      6
(%i23) factor(1 + 162 + 162  + 162  + 162  + 162  + 162
                                                 2      3      4      5     17
                                 + (1 + 162 + 162  + 162  + 162  + 162 ) 162  )
(%o23)      317 1237 61296884874033028501 170275471876966109296547
                           2      3      4      5      6
(%i24) factor(1 + 166 + 166  + 166  + 166  + 166  + 166
                                                 2      3      4      5     17
                                 + (1 + 166 + 166  + 166  + 166  + 166 ) 166  )
(%o24)       547 2731 4684821565633796371511423952156536001184819
                           2      3      4      5      6
(%i25) factor(1 + 171 + 171  + 171  + 171  + 171  + 171
                                                 2      3      4      5     17
                                 + (1 + 171 + 171  + 171  + 171  + 171 ) 171  )
(%o25)        1559851 8617444637122385107157579045039202238133323
                           2      3      4      5      6
(%i26) factor(1 + 172 + 172  + 172  + 172  + 172  + 172
                                                 2      3      4      5     17
                                 + (1 + 172 + 172  + 172  + 172  + 172 ) 172  )
(%o26)       906673 610404194174009574943 27611498476419226947667
                           2      3      4      5      6
(%i27) factor(1 + 174 + 174  + 174  + 174  + 174  + 174
                                                 2      3      4      5     17
                                 + (1 + 174 + 174  + 174  + 174  + 174 ) 174  )
(%o27)     29363 1084067 6783719 10007157821 9119089097433943242169
                           2      3      4      5      6
(%i28) factor(1 + 175 + 175  + 175  + 175  + 175  + 175
                                                 2      3      4      5     17
                                 + (1 + 175 + 175  + 175  + 175  + 175 ) 175  )
(%o28)       85389352039 664837542741697561 393737353472106651919
                           2      3      4      5      6
(%i29) factor(1 + 177 + 177  + 177  + 177  + 177  + 177
                                                 2      3      4      5     17
                                 + (1 + 177 + 177  + 177  + 177  + 177 ) 177  )
(%o29)      1493 39619 45541 10653850015001191126056869423490901079
                           2      3      4      5      6
(%i30) factor(1 + 179 + 179  + 179  + 179  + 179  + 179
                                                 2      3      4      5     17
                                 + (1 + 179 + 179  + 179  + 179  + 179 ) 179  )
(%o30)    1061 6079 29034799 6012481213 192507553033 169524258320129
                           2      3      4      5      6
(%i31) factor(1 + 181 + 181  + 181  + 181  + 181  + 181
                                                 2      3      4      5     17
                                 + (1 + 181 + 181  + 181  + 181  + 181 ) 181  )
(%o31)       33084439 1418113338752106753034053269388057974236627
                           2      3      4      5      6
(%i32) factor(1 + 182 + 182  + 182  + 182  + 182  + 182
                                                 2      3      4      5     17
                                 + (1 + 182 + 182  + 182  + 182  + 182 ) 182  )
(%o32)       17312683 74479679140592847857 41073449184773235785273
                           2      3      4      5      6
(%i33) factor(1 + 184 + 184  + 184  + 184  + 184  + 184
                                                 2      3      4      5     17
                                 + (1 + 184 + 184  + 184  + 184  + 184 ) 184  )
(%o33)     3541 13677649 13228531668170206319 105125921778271642571
                           2      3      4      5      6
(%i34) factor(1 + 187 + 187  + 187  + 187  + 187  + 187
                                                 2      3      4      5     17
                                 + (1 + 187 + 187  + 187  + 187  + 187 ) 187  )
(%o34)       223 4431943 97262398891364941492960590706792064843617
                           2      3      4      5      6
(%i35) factor(1 + 192 + 192  + 192  + 192  + 192  + 192
                                                 2      3      4      5     17
                                 + (1 + 192 + 192  + 192  + 192  + 192 ) 192  )
(%o35)       89398154998847 1921172391977777821547041213439834879
                           2      3      4      5      6
(%i36) factor(1 + 194 + 194  + 194  + 194  + 194  + 194
                                                 2      3      4      5     17
                                 + (1 + 194 + 194  + 194  + 194  + 194 ) 194  )
(%o36)      4210311043909 42999658121654863 1191525374631995430493
                           2      3      4      5      6
(%i37) factor(1 + 195 + 195  + 195  + 195  + 195  + 195
                                                 2      3      4      5     17
                                 + (1 + 195 + 195  + 195  + 195  + 195 ) 195  )
(%o37)       257163326972231135932547 939258849809271017569408643
                           2      3      4      5      6
(%i38) factor(1 + 197 + 197  + 197  + 197  + 197  + 197
                                                 2      3      4      5     17
                                 + (1 + 197 + 197  + 197  + 197  + 197 ) 197  )
(%o38)    107 421 39761 33204173 39759946675790153 127851402686640631
                           2      3      4      5      6
(%i39) factor(1 + 199 + 199  + 199  + 199  + 199  + 199
                                                 2      3      4      5     17
                                 + (1 + 199 + 199  + 199  + 199  + 199 ) 199  )
(%o39)     653 1451 23637899 16856449382846478610126608149551091933
(%o39)                               a.bat
(%i40)




b.txt
641,111
179,114
233,122
761,124
263,135
677,145
107,150
673,150
317,162
547,166
223,187
107,197
421,197
653,199


$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
29n+2
5n+3
79n+3
41n+5
173n+5
617n+5
53n+6
113n+6
293n+7
5n+8
157n+8
823n+8
29n+9
71n+10
13n+11
107n+11
239n+11
137n+12
5n+13
13n+14
179n+14
17n+15
19n+15
37n+16
43n+17
5n+18
223n+18
41n+19
71n+21
59n+25
41n+26
661n+36
661n+41
113n+42
47n+45
61n+45
53n+51
157n+52
647n+52
89n+54
317n+56
163n+71
59n+84
97n+94
641n+111
179n+114
233n+122
761n+124
263n+135
677n+145
107n+150
673n+150
317n+162
547n+166
223n+187
107n+197
421n+197
653n+199
b.txt read!  58 個 
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 200 !!!
201=37x5+16
202=17x11+15
202=59x3+25
202=59x2+84
203=5x40+3
203=5x39+8
203=5x38+13
203=5x37+18
!!! 204 !!!
205=29x7+2
205=19x10+15
206=13x15+11
!!! 207 !!!
208=5x41+3
208=5x40+8
208=5x39+13
208=5x38+18
209=13x15+14
209=157x1+52
210=41x5+5
210=53x3+51
!!! 211 !!!
212=29x7+9
213=5x42+3
213=5x41+8
213=5x40+13
213=5x39+18
!!! 214 !!!
!!! 215 !!!
!!! 216 !!!
!!! 217 !!!
218=5x43+3
218=53x4+6
218=5x42+8
218=5x41+13
218=5x40+18
219=13x16+11
219=17x12+15
!!! 220 !!!
!!! 221 !!!
222=13x16+14
223=5x44+3
223=5x43+8
223=71x3+10
223=5x42+13
223=5x41+18
224=19x11+15
224=41x5+19
225=107x2+11
!!! 226 !!!
!!! 227 !!!
228=5x45+3
228=5x44+8
228=5x43+13
228=5x42+18
228=61x3+45
!!! 229 !!!
!!! 230 !!!
231=41x5+26
232=113x2+6
232=13x17+11
232=43x5+17
232=89x2+54
233=5x46+3
233=5x45+8
233=5x44+13
233=5x43+18
233=47x4+45
234=29x8+2
234=71x3+21
234=163x1+71
235=13x17+14
236=17x13+15
!!! 237 !!!
238=5x47+3
238=5x46+8
238=5x45+13
238=37x6+16
238=5x44+18
!!! 239 !!!
240=79x3+3
241=29x8+9
241=223x1+18
!!! 242 !!!
243=5x48+3
243=5x47+8
243=5x46+13
243=19x12+15
243=5x45+18
!!! 244 !!!
245=13x18+11
!!! 246 !!!
!!! 247 !!!
248=5x49+3
248=5x48+8
248=5x47+13
248=13x18+14
248=5x46+18
!!! 249 !!!
250=239x1+11
251=41x6+5
!!! 252 !!!
253=5x50+3
253=5x49+8
253=5x48+13
253=17x14+15
253=5x47+18
!!! 254 !!!
!!! 255 !!!
!!! 256 !!!
257=107x1+150
258=5x51+3
258=5x50+8
258=13x19+11
258=5x49+13
258=5x48+18
!!! 259 !!!
!!! 260 !!!
261=13x19+14
261=59x4+25
261=59x3+84
262=19x13+15
263=29x9+2
263=5x52+3
263=5x51+8
263=5x50+13
263=5x49+18
263=53x4+51
!!! 264 !!!
265=41x6+19
!!! 266 !!!
!!! 267 !!!
268=5x53+3
268=5x52+8
268=5x51+13
268=5x50+18
268=113x2+42
!!! 269 !!!
270=29x9+9
270=17x15+15
271=53x5+6
271=13x20+11
272=41x6+26
273=5x54+3
273=5x53+8
273=5x52+13
273=5x51+18
274=13x20+14
275=37x7+16
275=43x6+17
!!! 276 !!!
!!! 277 !!!
278=5x55+3
278=5x54+8
278=5x53+13
278=5x52+18
!!! 279 !!!
280=47x5+45
281=19x14+15
!!! 282 !!!
283=5x56+3
283=5x55+8
283=5x54+13
283=5x53+18
284=13x21+11
!!! 285 !!!
286=137x2+12
287=13x21+14
287=17x16+15
288=5x57+3
288=5x56+8
288=5x55+13
288=5x54+18
288=97x2+94
289=61x4+45
!!! 290 !!!
!!! 291 !!!
292=29x10+2
292=41x7+5
293=5x58+3
293=5x57+8
293=5x56+13
293=5x55+18
293=179x1+114
294=71x4+10
!!! 295 !!!
!!! 296 !!!
297=13x22+11
298=5x59+3
298=5x58+8
298=5x57+13
298=5x56+18
299=29x10+9

factor((200^5+200^4+200^3+200^2+200+1)*200^17+200^6+200^5+200^4+200^3+200^2+200+1);
factor((204^5+204^4+204^3+204^2+204+1)*204^17+204^6+204^5+204^4+204^3+204^2+204+1);
factor((207^5+207^4+207^3+207^2+207+1)*207^17+207^6+207^5+207^4+207^3+207^2+207+1);
factor((211^5+211^4+211^3+211^2+211+1)*211^17+211^6+211^5+211^4+211^3+211^2+211+1);
factor((214^5+214^4+214^3+214^2+214+1)*214^17+214^6+214^5+214^4+214^3+214^2+214+1);
factor((215^5+215^4+215^3+215^2+215+1)*215^17+215^6+215^5+215^4+215^3+215^2+215+1);
factor((216^5+216^4+216^3+216^2+216+1)*216^17+216^6+216^5+216^4+216^3+216^2+216+1);
factor((217^5+217^4+217^3+217^2+217+1)*217^17+217^6+217^5+217^4+217^3+217^2+217+1);
factor((220^5+220^4+220^3+220^2+220+1)*220^17+220^6+220^5+220^4+220^3+220^2+220+1);
factor((221^5+221^4+221^3+221^2+221+1)*221^17+221^6+221^5+221^4+221^3+221^2+221+1);
factor((226^5+226^4+226^3+226^2+226+1)*226^17+226^6+226^5+226^4+226^3+226^2+226+1);
factor((227^5+227^4+227^3+227^2+227+1)*227^17+227^6+227^5+227^4+227^3+227^2+227+1);
factor((229^5+229^4+229^3+229^2+229+1)*229^17+229^6+229^5+229^4+229^3+229^2+229+1);
factor((230^5+230^4+230^3+230^2+230+1)*230^17+230^6+230^5+230^4+230^3+230^2+230+1);
factor((237^5+237^4+237^3+237^2+237+1)*237^17+237^6+237^5+237^4+237^3+237^2+237+1);
factor((239^5+239^4+239^3+239^2+239+1)*239^17+239^6+239^5+239^4+239^3+239^2+239+1);
factor((242^5+242^4+242^3+242^2+242+1)*242^17+242^6+242^5+242^4+242^3+242^2+242+1);
factor((244^5+244^4+244^3+244^2+244+1)*244^17+244^6+244^5+244^4+244^3+244^2+244+1);
factor((246^5+246^4+246^3+246^2+246+1)*246^17+246^6+246^5+246^4+246^3+246^2+246+1);
factor((247^5+247^4+247^3+247^2+247+1)*247^17+247^6+247^5+247^4+247^3+247^2+247+1);
factor((249^5+249^4+249^3+249^2+249+1)*249^17+249^6+249^5+249^4+249^3+249^2+249+1);
factor((252^5+252^4+252^3+252^2+252+1)*252^17+252^6+252^5+252^4+252^3+252^2+252+1);
factor((254^5+254^4+254^3+254^2+254+1)*254^17+254^6+254^5+254^4+254^3+254^2+254+1);
factor((255^5+255^4+255^3+255^2+255+1)*255^17+255^6+255^5+255^4+255^3+255^2+255+1);
factor((256^5+256^4+256^3+256^2+256+1)*256^17+256^6+256^5+256^4+256^3+256^2+256+1);
factor((259^5+259^4+259^3+259^2+259+1)*259^17+259^6+259^5+259^4+259^3+259^2+259+1);
factor((260^5+260^4+260^3+260^2+260+1)*260^17+260^6+260^5+260^4+260^3+260^2+260+1);
factor((264^5+264^4+264^3+264^2+264+1)*264^17+264^6+264^5+264^4+264^3+264^2+264+1);
factor((266^5+266^4+266^3+266^2+266+1)*266^17+266^6+266^5+266^4+266^3+266^2+266+1);
factor((267^5+267^4+267^3+267^2+267+1)*267^17+267^6+267^5+267^4+267^3+267^2+267+1);
factor((269^5+269^4+269^3+269^2+269+1)*269^17+269^6+269^5+269^4+269^3+269^2+269+1);
factor((276^5+276^4+276^3+276^2+276+1)*276^17+276^6+276^5+276^4+276^3+276^2+276+1);
factor((277^5+277^4+277^3+277^2+277+1)*277^17+277^6+277^5+277^4+277^3+277^2+277+1);
factor((279^5+279^4+279^3+279^2+279+1)*279^17+279^6+279^5+279^4+279^3+279^2+279+1);
factor((282^5+282^4+282^3+282^2+282+1)*282^17+282^6+282^5+282^4+282^3+282^2+282+1);
factor((285^5+285^4+285^3+285^2+285+1)*285^17+285^6+285^5+285^4+285^3+285^2+285+1);
factor((290^5+290^4+290^3+290^2+290+1)*290^17+290^6+290^5+290^4+290^3+290^2+290+1);
factor((291^5+291^4+291^3+291^2+291+1)*291^17+291^6+291^5+291^4+291^3+291^2+291+1);
factor((295^5+295^4+295^3+295^2+295+1)*295^17+295^6+295^5+295^4+295^3+295^2+295+1);
factor((296^5+296^4+296^3+296^2+296+1)*296^17+296^6+296^5+296^4+296^3+296^2+296+1);

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

read and interpret file: /home/gakkari/yano/c-src/a.bat
                          2      3      4      5      6
(%i2) factor(1 + 200 + 200  + 200  + 200  + 200  + 200
                                                 2      3      4      5     17
                                 + (1 + 200 + 200  + 200  + 200  + 200 ) 200  )
(%o2)      509 2297 3163 113987926691062290054986238602301217385599
                          2      3      4      5      6
(%i3) factor(1 + 204 + 204  + 204  + 204  + 204  + 204
                                                 2      3      4      5     17
                                 + (1 + 204 + 204  + 204  + 204  + 204 ) 204  )
(%o3)       52431705793 2168065577274002767 5732333004623978585491
                          2      3      4      5      6
(%i4) factor(1 + 207 + 207  + 207  + 207  + 207  + 207
                                                 2      3      4      5     17
                                 + (1 + 207 + 207  + 207  + 207  + 207 ) 207  )
(%o4)        1487 604143012229072419571943045671722330653333686799
                          2      3      4      5      6
(%i5) factor(1 + 211 + 211  + 211  + 211  + 211  + 211
                                                 2      3      4      5     17
                                 + (1 + 211 + 211  + 211  + 211  + 211 ) 211  )
(%o5)        96910157377801 14122379515776696039062749188041100193
                          2      3      4      5      6
(%i6) factor(1 + 214 + 214  + 214  + 214  + 214  + 214
                                                 2      3      4      5     17
                                 + (1 + 214 + 214  + 214  + 214  + 214 ) 214  )
(%o6)       32443 304384107170953 189057627763996979093455617641809
                          2      3      4      5      6
(%i7) factor(1 + 215 + 215  + 215  + 215  + 215  + 215
                                                 2      3      4      5     17
                                 + (1 + 215 + 215  + 215  + 215  + 215 ) 215  )
(%o7)     886517 5448413 12646897 84660437 10627655677 37636718717057
                          2      3      4      5      6
(%i8) factor(1 + 216 + 216  + 216  + 216  + 216  + 216
                                                 2      3      4      5     17
                                 + (1 + 216 + 216  + 216  + 216  + 216 ) 216  )
(%o8)      941 2417 136043 7403811316089510358862017546495319996423
                          2      3      4      5      6
(%i9) factor(1 + 217 + 217  + 217  + 217  + 217  + 217
                                                 2      3      4      5     17
                                 + (1 + 217 + 217  + 217  + 217  + 217 ) 217  )
(%o9)      238837 870165253 1515196963207 8052814432788387441174019
                           2      3      4      5      6
(%i10) factor(1 + 220 + 220  + 220  + 220  + 220  + 220
                                                 2      3      4      5     17
                                 + (1 + 220 + 220  + 220  + 220  + 220 ) 220  )
(%o10)     137 1511 23977 691031220879748075200484852400026118454139
                           2      3      4      5      6
(%i11) factor(1 + 221 + 221  + 221  + 221  + 221  + 221
                                                 2      3      4      5     17
                                 + (1 + 221 + 221  + 221  + 221  + 221 ) 221  )
(%o11)       586388333 6462704416037947460965741860842181871778681
                           2      3      4      5      6
(%i12) factor(1 + 226 + 226  + 226  + 226  + 226  + 226
                                                 2      3      4      5     17
                                 + (1 + 226 + 226  + 226  + 226  + 226 ) 226  )
(%o12)      1361 475467823871729749 9579268020011833042690819246067
                           2      3      4      5      6
(%i13) factor(1 + 227 + 227  + 227  + 227  + 227  + 227
                                                 2      3      4      5     17
                                 + (1 + 227 + 227  + 227  + 227  + 227 ) 227  )
(%o13)    139 359 2484313876903 405643068201067 135839634149439747713
                           2      3      4      5      6
(%i14) factor(1 + 229 + 229  + 229  + 229  + 229  + 229
                                                 2      3      4      5     17
                                 + (1 + 229 + 229  + 229  + 229  + 229 ) 229  )
(%o14)      205705883 40274905912197067589356894068707058128305487
                           2      3      4      5      6
(%i15) factor(1 + 230 + 230  + 230  + 230  + 230  + 230
                                                 2      3      4      5     17
                                 + (1 + 230 + 230  + 230  + 230  + 230 ) 230  )
(%o15)    523 40099 13249194577 214274201454377 153147584575740931307
                           2      3      4      5      6
(%i16) factor(1 + 237 + 237  + 237  + 237  + 237  + 237
                                                 2      3      4      5     17
                                 + (1 + 237 + 237  + 237  + 237  + 237 ) 237  )
(%o16)     1069 40471 92219306154204323183 4419330323725880116753889
                           2      3      4      5      6
(%i17) factor(1 + 239 + 239  + 239  + 239  + 239  + 239
                                                 2      3      4      5     17
                                 + (1 + 239 + 239  + 239  + 239  + 239 ) 239  )
(%o17)      743 28548674631825384158738501885201390479002295780727
                           2      3      4      5      6
(%i18) factor(1 + 242 + 242  + 242  + 242  + 242  + 242
                                                 2      3      4      5     17
                                 + (1 + 242 + 242  + 242  + 242  + 242 ) 242  )
(%o18)     1777 1203337187653 13051535498104600824089886177940029523
                           2      3      4      5      6
(%i19) factor(1 + 244 + 244  + 244  + 244  + 244  + 244
                                                 2      3      4      5     17
                                 + (1 + 244 + 244  + 244  + 244  + 244 ) 244  )
(%o19)    821 2141 11844514543 584436414847 2748814128083509069029301
                           2      3      4      5      6
(%i20) factor(1 + 246 + 246  + 246  + 246  + 246  + 246
                                                 2      3      4      5     17
                                 + (1 + 246 + 246  + 246  + 246  + 246 ) 246  )
(%o20)      5113 7828266215797066172732687981295026261519855102971
                           2      3      4      5      6
(%i21) factor(1 + 247 + 247  + 247  + 247  + 247  + 247
                                                 2      3      4      5     17
                                 + (1 + 247 + 247  + 247  + 247  + 247 ) 247  )
(%o21)       43761763813023685415805894556507258497413107814657713
素数ですね。
                           2      3      4      5      6
(%i22) factor(1 + 249 + 249  + 249  + 249  + 249  + 249
                                                 2      3      4      5     17
                                 + (1 + 249 + 249  + 249  + 249  + 249 ) 249  )
(%o22)      56674573 922029986761340446439561718649337036222609137
                           2      3      4      5      6
(%i23) factor(1 + 252 + 252  + 252  + 252  + 252  + 252
                                                 2      3      4      5     17
                                 + (1 + 252 + 252  + 252  + 252  + 252 ) 252  )
(%o23)       68004666711705278003247558714176562145594785455486413
素数ですね。
                           2      3      4      5      6
(%i24) factor(1 + 254 + 254  + 254  + 254  + 254  + 254
                                                 2      3      4      5     17
                                 + (1 + 254 + 254  + 254  + 254  + 254 ) 254  )
(%o24)     10333 53279 146984813874377227275664825276459022354472953
                           2      3      4      5      6
(%i25) factor(1 + 255 + 255  + 255  + 255  + 255  + 255
                                                 2      3      4      5     17
                                 + (1 + 255 + 255  + 255  + 255  + 255 ) 255  )
(%o25)    18523 291912107 98929448801 9201419575937 17924480400078233
                           2      3      4      5      6
(%i26) factor(1 + 256 + 256  + 256  + 256  + 256  + 256
                                                 2      3      4      5     17
                                 + (1 + 256 + 256  + 256  + 256  + 256 ) 256  )
(%o26)      421 228400434575512408564553310736885103759232276245293
                           2      3      4      5      6
(%i27) factor(1 + 259 + 259  + 259  + 259  + 259  + 259
                                                 2      3      4      5     17
                                 + (1 + 259 + 259  + 259  + 259  + 259 ) 259  )
(%o27)     38833 84203325010771493099 37996595360497059873393150923
                           2      3      4      5      6
(%i28) factor(1 + 260 + 260  + 260  + 260  + 260  + 260
                                                 2      3      4      5     17
                                 + (1 + 260 + 260  + 260  + 260  + 260 ) 260  )
(%o28)    511447 1495177 36071757179 4902602667417956542796363462561
                           2      3      4      5      6
(%i29) factor(1 + 264 + 264  + 264  + 264  + 264  + 264
                                                 2      3      4      5     17
                                 + (1 + 264 + 264  + 264  + 264  + 264 ) 264  )
(%o29)     431 2083 210750216484358170873947261640638661661800634957
                           2      3      4      5      6
(%i30) factor(1 + 266 + 266  + 266  + 266  + 266  + 266
                                                 2      3      4      5     17
                                 + (1 + 266 + 266  + 266  + 266  + 266 ) 266  )
(%o30)     246445081 75657743197 11980039001208816006449596784823019
                           2      3      4      5      6
(%i31) factor(1 + 267 + 267  + 267  + 267  + 267  + 267
                                                 2      3      4      5     17
                                 + (1 + 267 + 267  + 267  + 267  + 267 ) 267  )
(%o31)     8275019 42942058765168468531 682693099638720281857143017
                           2      3      4      5      6
(%i32) factor(1 + 269 + 269  + 269  + 269  + 269  + 269
                                                 2      3      4      5     17
                                 + (1 + 269 + 269  + 269  + 269  + 269 ) 269  )
(%o32)     2371 1234450966072566918461 97670238485428444454340261251
                           2      3      4      5      6
(%i33) factor(1 + 276 + 276  + 276  + 276  + 276  + 276
                                                 2      3      4      5     17
                                 + (1 + 276 + 276  + 276  + 276  + 276 ) 276  )
(%o33)     1538311 326988175543728024463341211512595507567221250483
                           2      3      4      5      6
(%i34) factor(1 + 277 + 277  + 277  + 277  + 277  + 277
                                                 2      3      4      5     17
                                 + (1 + 277 + 277  + 277  + 277  + 277 ) 277  )
(%o34)     107 5090281835355596889220590589744232040723279229707359
                           2      3      4      5      6
(%i35) factor(1 + 279 + 279  + 279  + 279  + 279  + 279
                                                 2      3      4      5     17
                                 + (1 + 279 + 279  + 279  + 279  + 279 ) 279  )
(%o35)    3847 49877 76173989 43653861932659568598657098065377942031
                           2      3      4      5      6
(%i36) factor(1 + 282 + 282  + 282  + 282  + 282  + 282
                                                 2      3      4      5     17
                                 + (1 + 282 + 282  + 282  + 282  + 282 ) 282  )
(%o36)    4643 1444523581 120364897942376888365146668244059116284161
                           2      3      4      5      6
(%i37) factor(1 + 285 + 285  + 285  + 285  + 285  + 285
                                                 2      3      4      5     17
                                 + (1 + 285 + 285  + 285  + 285  + 285 ) 285  )
             2
(%o37)    109  119243 808536654144376579 889462898743772068349665373
                           2      3      4      5      6
(%i38) factor(1 + 290 + 290  + 290  + 290  + 290  + 290
                                                 2      3      4      5     17
                                 + (1 + 290 + 290  + 290  + 290  + 290 ) 290  )
(%o38)     853 4626258197934987992102027 378509871254265364182287561
                           2      3      4      5      6
(%i39) factor(1 + 291 + 291  + 291  + 291  + 291  + 291
                                                 2      3      4      5     17
                                 + (1 + 291 + 291  + 291  + 291  + 291 ) 291  )
(%o39)    233 1213943 5696217091690264019506421142774483574877522407
                           2      3      4      5      6
(%i40) factor(1 + 295 + 295  + 295  + 295  + 295  + 295
                                                 2      3      4      5     17
                                 + (1 + 295 + 295  + 295  + 295  + 295 ) 295  )
(%o40)    20249 102949921254833 1043588868288387359953139584909832713
                           2      3      4      5      6
(%i41) factor(1 + 296 + 296  + 296  + 296  + 296  + 296
                                                 2      3      4      5     17
                                 + (1 + 296 + 296  + 296  + 296  + 296 ) 296  )
(%o41)     3449 679507327000575192858179540553390393789045287249777
(%o41)                               a.bat
(%i42)




b.txt
509,200
941,216
137,220
139,227
359,227
523,230
743,239
821,244
421,256
431,264
107,277
109,285
853,290
233,291


$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
29n+2
5n+3
79n+3
41n+5
173n+5
617n+5
53n+6
113n+6
293n+7
5n+8
157n+8
823n+8
29n+9
71n+10
13n+11
107n+11
239n+11
137n+12
5n+13
13n+14
179n+14
17n+15
19n+15
37n+16
43n+17
5n+18
223n+18
41n+19
71n+21
59n+25
41n+26
661n+36
661n+41
113n+42
47n+45
61n+45
53n+51
157n+52
647n+52
89n+54
317n+56
163n+71
59n+84
97n+94
641n+111
179n+114
233n+122
761n+124
263n+135
677n+145
107n+150
673n+150
317n+162
547n+166
223n+187
107n+197
421n+197
653n+199
509n+200
941n+216
137n+220
139n+227
359n+227
523n+230
743n+239
821n+244
421n+256
431n+264
107n+277
109n+285
853n+290
233n+291
b.txt read!  72 個 
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
300=293x1+7
300=13x22+14
300=19x15+15
!!! 301 !!!
!!! 302 !!!
303=5x60+3
303=5x59+8
303=5x58+13
303=5x57+18
304=17x17+15
304=107x1+197
305=71x4+21
306=41x7+19
!!! 307 !!!
308=5x61+3
308=5x60+8
308=5x59+13
308=5x58+18
!!! 309 !!!
310=13x23+11
!!! 311 !!!
312=37x8+16
313=5x62+3
313=5x61+8
313=5x60+13
313=13x23+14
313=5x59+18
313=41x7+26
!!! 314 !!!
!!! 315 !!!
316=53x5+51
!!! 317 !!!
318=5x63+3
318=5x62+8
318=5x61+13
318=43x7+17
318=5x60+18
319=79x4+3
319=19x16+15
320=59x5+25
320=59x4+84
321=29x11+2
321=17x18+15
321=89x3+54
322=157x2+8
323=5x64+3
323=5x63+8
323=13x24+11
323=5x62+13
323=5x61+18
324=53x6+6
!!! 325 !!!
326=13x24+14
327=47x6+45
328=5x65+3
328=5x64+8
328=29x11+9
328=5x63+13
328=5x62+18
!!! 329 !!!
!!! 330 !!!
!!! 331 !!!
332=107x3+11
333=5x66+3
333=41x8+5
333=5x65+8
333=5x64+13
333=5x63+18
!!! 334 !!!
!!! 335 !!!
336=13x25+11
!!! 337 !!!
338=5x67+3
338=5x66+8
338=5x65+13
338=17x19+15
338=19x17+15
338=5x64+18
339=13x25+14
!!! 340 !!!
!!! 341 !!!
!!! 342 !!!
343=5x68+3
343=5x67+8
343=5x66+13
343=5x65+18
!!! 344 !!!
345=113x3+6
!!! 346 !!!
347=41x8+19
348=5x69+3
348=5x68+8
348=5x67+13
348=5x66+18
349=13x26+11
349=37x9+16
350=29x12+2
350=61x5+45
351=173x2+5
352=13x26+14
353=5x70+3
353=5x69+8
353=5x68+13
353=5x67+18
354=41x8+26
355=17x20+15
355=233x1+122
!!! 356 !!!
357=29x12+9
357=19x18+15
357=137x1+220
358=5x71+3
358=5x70+8
358=5x69+13
358=5x68+18
!!! 359 !!!
!!! 360 !!!
361=43x8+17
362=13x27+11
363=5x72+3
363=5x71+8
363=5x70+13
363=5x69+18
364=107x2+150
365=71x5+10
365=13x27+14
366=157x2+52
366=139x1+227
!!! 367 !!!
368=5x73+3
368=5x72+8
368=5x71+13
368=5x70+18
369=53x6+51
!!! 370 !!!
!!! 371 !!!
372=179x2+14
372=17x21+15
373=5x74+3
373=5x73+8
373=5x72+13
373=5x71+18
373=317x1+56
374=41x9+5
374=47x7+45
375=13x28+11
376=19x19+15
376=71x5+21
377=53x7+6
378=5x75+3
378=5x74+8
378=5x73+13
378=13x28+14
378=5x72+18
379=29x13+2
379=59x6+25
379=59x5+84
!!! 380 !!!
381=113x3+42
!!! 382 !!!
383=5x76+3
383=5x75+8
383=5x74+13
383=5x73+18
384=107x1+277
385=97x3+94
386=29x13+9
386=37x10+16
!!! 387 !!!
388=5x77+3
388=5x76+8
388=13x29+11
388=5x75+13
388=5x74+18
388=41x9+19
389=17x22+15
!!! 390 !!!
391=13x29+14
!!! 392 !!!
393=5x78+3
393=5x77+8
393=5x76+13
393=5x75+18
394=109x1+285
395=19x20+15
395=41x9+26
!!! 396 !!!
397=163x2+71
398=5x79+3
398=79x5+3
398=5x78+8
398=5x77+13
398=5x76+18
398=263x1+135
!!! 399 !!!


factor((301^5+301^4+301^3+301^2+301+1)*301^17+301^6+301^5+301^4+301^3+301^2+301+1);
factor((302^5+302^4+302^3+302^2+302+1)*302^17+302^6+302^5+302^4+302^3+302^2+302+1);
factor((307^5+307^4+307^3+307^2+307+1)*307^17+307^6+307^5+307^4+307^3+307^2+307+1);
factor((309^5+309^4+309^3+309^2+309+1)*309^17+309^6+309^5+309^4+309^3+309^2+309+1);
factor((311^5+311^4+311^3+311^2+311+1)*311^17+311^6+311^5+311^4+311^3+311^2+311+1);
factor((314^5+314^4+314^3+314^2+314+1)*314^17+314^6+314^5+314^4+314^3+314^2+314+1);
factor((315^5+315^4+315^3+315^2+315+1)*315^17+315^6+315^5+315^4+315^3+315^2+315+1);
factor((317^5+317^4+317^3+317^2+317+1)*317^17+317^6+317^5+317^4+317^3+317^2+317+1);
factor((325^5+325^4+325^3+325^2+325+1)*325^17+325^6+325^5+325^4+325^3+325^2+325+1);
factor((329^5+329^4+329^3+329^2+329+1)*329^17+329^6+329^5+329^4+329^3+329^2+329+1);
factor((330^5+330^4+330^3+330^2+330+1)*330^17+330^6+330^5+330^4+330^3+330^2+330+1);
factor((331^5+331^4+331^3+331^2+331+1)*331^17+331^6+331^5+331^4+331^3+331^2+331+1);
factor((334^5+334^4+334^3+334^2+334+1)*334^17+334^6+334^5+334^4+334^3+334^2+334+1);
factor((335^5+335^4+335^3+335^2+335+1)*335^17+335^6+335^5+335^4+335^3+335^2+335+1);
factor((337^5+337^4+337^3+337^2+337+1)*337^17+337^6+337^5+337^4+337^3+337^2+337+1);
factor((340^5+340^4+340^3+340^2+340+1)*340^17+340^6+340^5+340^4+340^3+340^2+340+1);
factor((341^5+341^4+341^3+341^2+341+1)*341^17+341^6+341^5+341^4+341^3+341^2+341+1);
factor((342^5+342^4+342^3+342^2+342+1)*342^17+342^6+342^5+342^4+342^3+342^2+342+1);
factor((344^5+344^4+344^3+344^2+344+1)*344^17+344^6+344^5+344^4+344^3+344^2+344+1);
factor((346^5+346^4+346^3+346^2+346+1)*346^17+346^6+346^5+346^4+346^3+346^2+346+1);
factor((356^5+356^4+356^3+356^2+356+1)*356^17+356^6+356^5+356^4+356^3+356^2+356+1);
factor((359^5+359^4+359^3+359^2+359+1)*359^17+359^6+359^5+359^4+359^3+359^2+359+1);
factor((360^5+360^4+360^3+360^2+360+1)*360^17+360^6+360^5+360^4+360^3+360^2+360+1);
factor((367^5+367^4+367^3+367^2+367+1)*367^17+367^6+367^5+367^4+367^3+367^2+367+1);
factor((370^5+370^4+370^3+370^2+370+1)*370^17+370^6+370^5+370^4+370^3+370^2+370+1);
factor((371^5+371^4+371^3+371^2+371+1)*371^17+371^6+371^5+371^4+371^3+371^2+371+1);
factor((380^5+380^4+380^3+380^2+380+1)*380^17+380^6+380^5+380^4+380^3+380^2+380+1);
factor((382^5+382^4+382^3+382^2+382+1)*382^17+382^6+382^5+382^4+382^3+382^2+382+1);
factor((387^5+387^4+387^3+387^2+387+1)*387^17+387^6+387^5+387^4+387^3+387^2+387+1);
factor((390^5+390^4+390^3+390^2+390+1)*390^17+390^6+390^5+390^4+390^3+390^2+390+1);
factor((392^5+392^4+392^3+392^2+392+1)*392^17+392^6+392^5+392^4+392^3+392^2+392+1);
factor((396^5+396^4+396^3+396^2+396+1)*396^17+396^6+396^5+396^4+396^3+396^2+396+1);
factor((399^5+399^4+399^3+399^2+399+1)*399^17+399^6+399^5+399^4+399^3+399^2+399+1);

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

read and interpret file: /home/gakkari/yano/c-src/a.bat
                          2      3      4      5      6
(%i2) factor(1 + 301 + 301  + 301  + 301  + 301  + 301
                                                 2      3      4      5     17
                                 + (1 + 301 + 301  + 301  + 301  + 301 ) 301  )
(%o2)      1529512787422373872056576439 2214904633664041341048840067
                          2      3      4      5      6
(%i3) factor(1 + 302 + 302  + 302  + 302  + 302  + 302
                                                 2      3      4      5     17
                                 + (1 + 302 + 302  + 302  + 302  + 302 ) 302  )
(%o3)     1934887 589860124241897740787533 3192923753232990706976353
                          2      3      4      5      6
(%i4) factor(1 + 307 + 307  + 307  + 307  + 307  + 307
                                                 2      3      4      5     17
                                 + (1 + 307 + 307  + 307  + 307  + 307 ) 307  )
(%o4)     15913 658126093 499344231170696932860242080743690066378757
                          2      3      4      5      6
(%i5) factor(1 + 309 + 309  + 309  + 309  + 309  + 309
                                                 2      3      4      5     17
                                 + (1 + 309 + 309  + 309  + 309  + 309 ) 309  )
(%o5)      233 25890377884112750625487595269471599271770563239941677
                          2      3      4      5      6
(%i6) factor(1 + 311 + 311  + 311  + 311  + 311  + 311
                                                 2      3      4      5     17
                                 + (1 + 311 + 311  + 311  + 311  + 311 ) 311  )
(%o6)     3150394549537 834296688938383681 2645098117014367713013969
                          2      3      4      5      6
(%i7) factor(1 + 314 + 314  + 314  + 314  + 314  + 314
                                                 2      3      4      5     17
                                 + (1 + 314 + 314  + 314  + 314  + 314 ) 314  )
(%o7)     3001 406711943774285629 7035332802888705688667329740346459
                          2      3      4      5      6
(%i8) factor(1 + 315 + 315  + 315  + 315  + 315  + 315
                                                 2      3      4      5     17
                                 + (1 + 315 + 315  + 315  + 315  + 315 ) 315  )
(%o8)    1499 152519 6670008215009 6038945890354044411495355162110029
                          2      3      4      5      6
(%i9) factor(1 + 317 + 317  + 317  + 317  + 317  + 317
                                                 2      3      4      5     17
                                 + (1 + 317 + 317  + 317  + 317  + 317 ) 317  )
(%o9)     16633 992309 641295851569615991266815713174517984782975129
                           2      3      4      5      6
(%i10) factor(1 + 325 + 325  + 325  + 325  + 325  + 325
                                                 2      3      4      5     17
                                 + (1 + 325 + 325  + 325  + 325  + 325 ) 325  )
(%o10)     18313539617972214492512843323439592495561828114394199701
素数ですね。
                           2      3      4      5      6
(%i11) factor(1 + 329 + 329  + 329  + 329  + 329  + 329
                                                 2      3      4      5     17
                                 + (1 + 329 + 329  + 329  + 329  + 329 ) 329  )
(%o11)    1228739716307 19506165875403522603699636220453621210239503
                           2      3      4      5      6
(%i12) factor(1 + 330 + 330  + 330  + 330  + 330  + 330
                                                 2      3      4      5     17
                                 + (1 + 330 + 330  + 330  + 330  + 330 ) 330  )
(%o12)     25622689823064394305844099209409168746301295393403556231
素数ですね。
                           2      3      4      5      6
(%i13) factor(1 + 331 + 331  + 331  + 331  + 331  + 331
                                                 2      3      4      5     17
                                 + (1 + 331 + 331  + 331  + 331  + 331 ) 331  )
(%o13)    202753 135071159514660321887561965135772412188378952701401
                           2      3      4      5      6
(%i14) factor(1 + 334 + 334  + 334  + 334  + 334  + 334
                                                 2      3      4      5     17
                                 + (1 + 334 + 334  + 334  + 334  + 334 ) 334  )
(%o14) 131 322339 1006711 2969363 22010795297 12020886918568879033173719
                           2      3      4      5      6
(%i15) factor(1 + 335 + 335  + 335  + 335  + 335  + 335
                                                 2      3      4      5     17
                                 + (1 + 335 + 335  + 335  + 335  + 335 ) 335  )
(%o15)    692187896686997 12318971068477071121 4182978753047864813453
                           2      3      4      5      6
(%i16) factor(1 + 337 + 337  + 337  + 337  + 337  + 337
                                                 2      3      4      5     17
                                 + (1 + 337 + 337  + 337  + 337  + 337 ) 337  )
(%o16)     40658227598582413961183234230333939403694561237839104813
素数ですね。
                           2      3      4      5      6
(%i17) factor(1 + 340 + 340  + 340  + 340  + 340  + 340
                                                 2      3      4      5     17
                                 + (1 + 340 + 340  + 340  + 340  + 340 ) 340  )
(%o17)   1039 3350383178977 84892589318981615533 167199735619562983159
                           2      3      4      5      6
(%i18) factor(1 + 341 + 341  + 341  + 341  + 341  + 341
                                                 2      3      4      5     17
                                 + (1 + 341 + 341  + 341  + 341  + 341 ) 341  )
(%o18)   7307 32869 2526152915796749791429 86873349160667055059092919
                           2      3      4      5      6
(%i19) factor(1 + 342 + 342  + 342  + 342  + 342  + 342
                                                 2      3      4      5     17
                                 + (1 + 342 + 342  + 342  + 342  + 342 ) 342  )
(%o19)    2917 19271238718612353155427179186087930495442811045924039
                           2      3      4      5      6
(%i20) factor(1 + 344 + 344  + 344  + 344  + 344  + 344
                                                 2      3      4      5     17
                                 + (1 + 344 + 344  + 344  + 344  + 344 ) 344  )
(%o20)   921510553 999285929 219739718623 315828567031403506238007431
                           2      3      4      5      6
(%i21) factor(1 + 346 + 346  + 346  + 346  + 346  + 346
                                                 2      3      4      5     17
                                 + (1 + 346 + 346  + 346  + 346  + 346 ) 346  )
(%o21)     72599090021844965463161644601091724205799136007116976023
素数ですね。
                           2      3      4      5      6
(%i22) factor(1 + 356 + 356  + 356  + 356  + 356  + 356
                                                 2      3      4      5     17
                                 + (1 + 356 + 356  + 356  + 356  + 356 ) 356  )
(%o22)  3331 492409 12443179543 615641541803 10813385867060690453717483
                           2      3      4      5      6
(%i23) factor(1 + 359 + 359  + 359  + 359  + 359  + 359
                                                 2      3      4      5     17
                                 + (1 + 359 + 359  + 359  + 359  + 359 ) 359  )
(%o23)    60064949967511 2720621783206344781839274824194776289652631
                           2      3      4      5      6
(%i24) factor(1 + 360 + 360  + 360  + 360  + 360  + 360
                                                 2      3      4      5     17
                                 + (1 + 360 + 360  + 360  + 360  + 360 ) 360  )
(%o24)     173725299499803055754119565407436773785602182845796545961
素数ですね。
                           2      3      4      5      6
(%i25) factor(1 + 367 + 367  + 367  + 367  + 367  + 367
                                                 2      3      4      5     17
                                 + (1 + 367 + 367  + 367  + 367  + 367 ) 367  )
(%o25)  257 557 267224669 28563401539 242864255742494292865995282379907
                           2      3      4      5      6
(%i26) factor(1 + 370 + 370  + 370  + 370  + 370  + 370
                                                 2      3      4      5     17
                                 + (1 + 370 + 370  + 370  + 370  + 370 ) 370  )
(%o26)  251 7333 12743 13532754329228181826501943287258805782365049759
                           2      3      4      5      6
(%i27) factor(1 + 371 + 371  + 371  + 371  + 371  + 371
                                                 2      3      4      5     17
                                 + (1 + 371 + 371  + 371  + 371  + 371 ) 371  )
(%o27)   15175982111 89062546747 249198992117316192329367378867767669
                           2      3      4      5      6
(%i28) factor(1 + 380 + 380  + 380  + 380  + 380  + 380
                                                 2      3      4      5     17
                                 + (1 + 380 + 380  + 380  + 380  + 380 ) 380  )
(%o28)   242509 18720426859 125701339091440531921928632964421847786051
                           2      3      4      5      6
(%i29) factor(1 + 382 + 382  + 382  + 382  + 382  + 382
                                                 2      3      4      5     17
                                 + (1 + 382 + 382  + 382  + 382  + 382 ) 382  )
(%o29)  238474633 1409154709 71274925453 3453098047013 7744365192289511
                           2      3      4      5      6
(%i30) factor(1 + 387 + 387  + 387  + 387  + 387  + 387
                                                 2      3      4      5     17
                                 + (1 + 387 + 387  + 387  + 387  + 387 ) 387  )
(%o30)   26539 7398175895506141013920811 4342658551794344117172905297
                           2      3      4      5      6
(%i31) factor(1 + 390 + 390  + 390  + 390  + 390  + 390
                                                 2      3      4      5     17
                                 + (1 + 390 + 390  + 390  + 390  + 390 ) 390  )
(%o31)   3856527113 6682601041 544487602221229 72012260160864140924663
                           2      3      4      5      6
(%i32) factor(1 + 392 + 392  + 392  + 392  + 392  + 392
                                                 2      3      4      5     17
                                 + (1 + 392 + 392  + 392  + 392  + 392 ) 392  )
(%o32)    1449593706283 780111157317728787281356622570798573189934811
                           2      3      4      5      6
(%i33) factor(1 + 396 + 396  + 396  + 396  + 396  + 396
                                                 2      3      4      5     17
                                 + (1 + 396 + 396  + 396  + 396  + 396 ) 396  )
(%o33)   439749637 31027368314330501293 103619561467405693485159264253
                           2      3      4      5      6
(%i34) factor(1 + 399 + 399  + 399  + 399  + 399  + 399
                                                 2      3      4      5     17
                                 + (1 + 399 + 399  + 399  + 399  + 399 ) 399  )
(%o34)   8907359 1910393860178747361792337 98089305289304421474112847
(%o34)                               a.bat
(%i35)


b.txt
233,309
131,334
257,367
557,367
251,370

$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
29n+2
5n+3
79n+3
41n+5
173n+5
617n+5
53n+6
113n+6
293n+7
5n+8
157n+8
823n+8
29n+9
71n+10
13n+11
107n+11
239n+11
137n+12
5n+13
13n+14
179n+14
17n+15
19n+15
37n+16
43n+17
5n+18
223n+18
41n+19
71n+21
59n+25
41n+26
661n+36
661n+41
113n+42
47n+45
61n+45
53n+51
157n+52
647n+52
89n+54
317n+56
163n+71
59n+84
97n+94
641n+111
179n+114
233n+122
761n+124
263n+135
677n+145
107n+150
673n+150
317n+162
547n+166
223n+187
107n+197
421n+197
653n+199
509n+200
941n+216
137n+220
139n+227
359n+227
523n+230
743n+239
821n+244
421n+256
431n+264
107n+277
109n+285
853n+290
233n+291
233n+309
131n+334
257n+367
557n+367
251n+370
b.txt read!  77 個 
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 400 !!!
401=13x30+11
!!! 402 !!!
403=5x80+3
403=5x79+8
403=5x78+13
403=5x77+18
404=13x30+14
404=43x9+17
!!! 405 !!!
406=17x23+15
!!! 407 !!!
408=29x14+2
408=5x81+3
408=5x80+8
408=5x79+13
408=5x78+18
!!! 409 !!!
410=89x4+54
410=223x1+187
411=61x6+45
411=107x2+197
!!! 412 !!!
413=5x82+3
413=5x81+8
413=5x80+13
413=5x79+18
414=13x31+11
414=19x21+15
415=41x10+5
415=29x14+9
!!! 416 !!!
417=13x31+14
418=5x83+3
418=5x82+8
418=5x81+13
418=5x80+18
!!! 419 !!!
!!! 420 !!!
421=47x8+45
422=53x7+51
423=5x84+3
423=5x83+8
423=137x3+12
423=5x82+13
423=17x24+15
423=37x11+16
423=5x81+18
!!! 424 !!!
!!! 425 !!!
!!! 426 !!!
427=13x32+11
428=5x85+3
428=5x84+8
428=5x83+13
428=5x82+18
429=41x10+19
430=53x8+6
430=13x32+14
!!! 431 !!!
!!! 432 !!!
433=5x86+3
433=5x85+8
433=5x84+13
433=19x22+15
433=5x83+18
!!! 434 !!!
!!! 435 !!!
436=71x6+10
436=41x10+26
437=29x15+2
438=5x87+3
438=5x86+8
438=5x85+13
438=5x84+18
438=59x7+25
438=59x6+84
439=107x4+11
440=13x33+11
440=17x25+15
!!! 441 !!!
!!! 442 !!!
443=5x88+3
443=5x87+8
443=5x86+13
443=13x33+14
443=5x85+18
444=29x15+9
!!! 445 !!!
!!! 446 !!!
447=43x10+17
447=71x6+21
448=5x89+3
448=5x88+8
448=5x87+13
448=5x86+18
!!! 449 !!!
!!! 450 !!!
!!! 451 !!!
452=19x23+15
453=5x90+3
453=5x89+8
453=13x34+11
453=5x88+13
453=5x87+18
!!! 454 !!!
!!! 455 !!!
456=41x11+5
456=13x34+14
457=17x26+15
458=5x91+3
458=113x4+6
458=5x90+8
458=5x89+13
458=5x88+18
!!! 459 !!!
460=37x12+16
!!! 461 !!!
!!! 462 !!!
463=5x92+3
463=5x91+8
463=5x90+13
463=5x89+18
464=223x2+18
465=131x1+334
466=29x16+2
466=13x35+11
!!! 467 !!!
468=5x93+3
468=5x92+8
468=5x91+13
468=5x90+18
468=47x9+45
469=13x35+14
470=41x11+19
471=19x24+15
471=107x3+150
472=61x7+45
472=179x2+114
473=5x94+3
473=5x93+8
473=29x16+9
473=5x92+13
473=5x91+18
474=17x27+15
475=53x8+51
!!! 476 !!!
477=79x6+3
477=41x11+26
478=5x95+3
478=5x94+8
478=5x93+13
478=5x92+18
479=157x3+8
479=13x36+11
479=317x1+162
!!! 480 !!!
!!! 481 !!!
482=13x36+14
482=97x4+94
483=5x96+3
483=53x9+6
483=5x95+8
483=5x94+13
483=5x93+18
!!! 484 !!!
!!! 485 !!!
!!! 486 !!!
!!! 487 !!!
488=5x97+3
488=5x96+8
488=5x95+13
488=5x94+18
489=239x2+11
490=19x25+15
490=43x11+17
491=17x28+15
491=107x2+277
492=13x37+11
493=5x98+3
493=5x97+8
493=5x96+13
493=5x95+18
494=113x4+42
494=137x2+220
495=29x17+2
495=13x37+14
!!! 496 !!!
497=41x12+5
497=37x13+16
497=59x8+25
497=59x7+84
498=5x99+3
498=5x98+8
498=5x97+13
498=5x96+18
499=89x5+54


factor((400^5+400^4+400^3+400^2+400+1)*400^17+400^6+400^5+400^4+400^3+400^2+400+1);
factor((402^5+402^4+402^3+402^2+402+1)*402^17+402^6+402^5+402^4+402^3+402^2+402+1);
factor((405^5+405^4+405^3+405^2+405+1)*405^17+405^6+405^5+405^4+405^3+405^2+405+1);
factor((407^5+407^4+407^3+407^2+407+1)*407^17+407^6+407^5+407^4+407^3+407^2+407+1);
factor((409^5+409^4+409^3+409^2+409+1)*409^17+409^6+409^5+409^4+409^3+409^2+409+1);
factor((412^5+412^4+412^3+412^2+412+1)*412^17+412^6+412^5+412^4+412^3+412^2+412+1);
factor((416^5+416^4+416^3+416^2+416+1)*416^17+416^6+416^5+416^4+416^3+416^2+416+1);
factor((419^5+419^4+419^3+419^2+419+1)*419^17+419^6+419^5+419^4+419^3+419^2+419+1);
factor((420^5+420^4+420^3+420^2+420+1)*420^17+420^6+420^5+420^4+420^3+420^2+420+1);
factor((424^5+424^4+424^3+424^2+424+1)*424^17+424^6+424^5+424^4+424^3+424^2+424+1);
factor((425^5+425^4+425^3+425^2+425+1)*425^17+425^6+425^5+425^4+425^3+425^2+425+1);
factor((426^5+426^4+426^3+426^2+426+1)*426^17+426^6+426^5+426^4+426^3+426^2+426+1);
factor((431^5+431^4+431^3+431^2+431+1)*431^17+431^6+431^5+431^4+431^3+431^2+431+1);
factor((432^5+432^4+432^3+432^2+432+1)*432^17+432^6+432^5+432^4+432^3+432^2+432+1);
factor((434^5+434^4+434^3+434^2+434+1)*434^17+434^6+434^5+434^4+434^3+434^2+434+1);
factor((435^5+435^4+435^3+435^2+435+1)*435^17+435^6+435^5+435^4+435^3+435^2+435+1);
factor((441^5+441^4+441^3+441^2+441+1)*441^17+441^6+441^5+441^4+441^3+441^2+441+1);
factor((442^5+442^4+442^3+442^2+442+1)*442^17+442^6+442^5+442^4+442^3+442^2+442+1);
factor((445^5+445^4+445^3+445^2+445+1)*445^17+445^6+445^5+445^4+445^3+445^2+445+1);
factor((446^5+446^4+446^3+446^2+446+1)*446^17+446^6+446^5+446^4+446^3+446^2+446+1);
factor((449^5+449^4+449^3+449^2+449+1)*449^17+449^6+449^5+449^4+449^3+449^2+449+1);
factor((450^5+450^4+450^3+450^2+450+1)*450^17+450^6+450^5+450^4+450^3+450^2+450+1);
factor((451^5+451^4+451^3+451^2+451+1)*451^17+451^6+451^5+451^4+451^3+451^2+451+1);
factor((454^5+454^4+454^3+454^2+454+1)*454^17+454^6+454^5+454^4+454^3+454^2+454+1);
factor((455^5+455^4+455^3+455^2+455+1)*455^17+455^6+455^5+455^4+455^3+455^2+455+1);
factor((459^5+459^4+459^3+459^2+459+1)*459^17+459^6+459^5+459^4+459^3+459^2+459+1);
factor((461^5+461^4+461^3+461^2+461+1)*461^17+461^6+461^5+461^4+461^3+461^2+461+1);
factor((462^5+462^4+462^3+462^2+462+1)*462^17+462^6+462^5+462^4+462^3+462^2+462+1);
factor((467^5+467^4+467^3+467^2+467+1)*467^17+467^6+467^5+467^4+467^3+467^2+467+1);
factor((476^5+476^4+476^3+476^2+476+1)*476^17+476^6+476^5+476^4+476^3+476^2+476+1);
factor((480^5+480^4+480^3+480^2+480+1)*480^17+480^6+480^5+480^4+480^3+480^2+480+1);
factor((481^5+481^4+481^3+481^2+481+1)*481^17+481^6+481^5+481^4+481^3+481^2+481+1);
factor((484^5+484^4+484^3+484^2+484+1)*484^17+484^6+484^5+484^4+484^3+484^2+484+1);
factor((485^5+485^4+485^3+485^2+485+1)*485^17+485^6+485^5+485^4+485^3+485^2+485+1);
factor((486^5+486^4+486^3+486^2+486+1)*486^17+486^6+486^5+486^4+486^3+486^2+486+1);
factor((487^5+487^4+487^3+487^2+487+1)*487^17+487^6+487^5+487^4+487^3+487^2+487+1);
factor((496^5+496^4+496^3+496^2+496+1)*496^17+496^6+496^5+496^4+496^3+496^2+496+1);


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

read and interpret file: a.bat
                          2      3      4      5      6
(%i2) factor(1 + 400 + 400  + 400  + 400  + 400  + 400
                                                 2      3      4      5     17
                                 + (1 + 400 + 400  + 400  + 400  + 400 ) 400  )
(%o2)   5398751 41516924347 168673403225540971 46648945091976905464823
                          2      3      4      5      6
(%i3) factor(1 + 402 + 402  + 402  + 402  + 402  + 402
                                                 2      3      4      5     17
                                 + (1 + 402 + 402  + 402  + 402  + 402 ) 402  )
(%o3)     99348332906071726481 19810446516376077203718559140650046623
                          2      3      4      5      6
(%i4) factor(1 + 405 + 405  + 405  + 405  + 405  + 405
                                                 2      3      4      5     17
                                 + (1 + 405 + 405  + 405  + 405  + 405 ) 405  )
(%o4)    499 136686523058352207765373 33982703544457845720714736878403
                          2      3      4      5      6
(%i5) factor(1 + 407 + 407  + 407  + 407  + 407  + 407
                                                 2      3      4      5     17
                                 + (1 + 407 + 407  + 407  + 407  + 407 ) 407  )
(%o5) 2711 273697 22497179 557456797 12941428063 19619074897 1093316285623
                          2      3      4      5      6
(%i6) factor(1 + 409 + 409  + 409  + 409  + 409  + 409
                                                 2      3      4      5     17
                                 + (1 + 409 + 409  + 409  + 409  + 409 ) 409  )
(%o6) 1699933 143096321 480476401 10372874387 229436448497 10343846238683
                          2      3      4      5      6
(%i7) factor(1 + 412 + 412  + 412  + 412  + 412  + 412
                                                 2      3      4      5     17
                                 + (1 + 412 + 412  + 412  + 412  + 412 ) 412  )
(%o7)    293413 11516348401989366177989155377603332900557834360933801
                          2      3      4      5      6
(%i8) factor(1 + 416 + 416  + 416  + 416  + 416  + 416
                                                 2      3      4      5     17
                                 + (1 + 416 + 416  + 416  + 416  + 416 ) 416  )
(%o8)   42773 852386609 17155743281881 6681633326046543158559943460149
                          2      3      4      5      6
(%i9) factor(1 + 419 + 419  + 419  + 419  + 419  + 419
                                                 2      3      4      5     17
                                 + (1 + 419 + 419  + 419  + 419  + 419 ) 419  )
(%o9)   643 12433 2603397002561 235190047266572003896632016354986072659
                           2      3      4      5      6
(%i10) factor(1 + 420 + 420  + 420  + 420  + 420  + 420
                                                 2      3      4      5     17
                                 + (1 + 420 + 420  + 420  + 420  + 420 ) 420  )
(%o10) 65557 168193 19666583309 94744778109167 251077889099645768033707
                           2      3      4      5      6
(%i11) factor(1 + 424 + 424  + 424  + 424  + 424  + 424
                                                 2      3      4      5     17
                                 + (1 + 424 + 424  + 424  + 424  + 424 ) 424  )
(%o11) 337 659 246090482913097 7626116678990393 15246169881863100414307
                           2      3      4      5      6
(%i12) factor(1 + 425 + 425  + 425  + 425  + 425  + 425
                                                 2      3      4      5     17
                                 + (1 + 425 + 425  + 425  + 425  + 425 ) 425  )
(%o12)   4275226463 931333790624660257 1680796169225600508425316725411
                           2      3      4      5      6
(%i13) factor(1 + 426 + 426  + 426  + 426  + 426  + 426
                                                 2      3      4      5     17
                                 + (1 + 426 + 426  + 426  + 426  + 426 ) 426  )
(%o13)  188015251 38497797517 3573966632077 272428408365272599722036757
                           2      3      4      5      6
(%i14) factor(1 + 431 + 431  + 431  + 431  + 431  + 431
                                                 2      3      4      5     17
                                 + (1 + 431 + 431  + 431  + 431  + 431 ) 431  )
(%o14)  42853 10216639260101 20807479149746369898531840635641265636201
                           2      3      4      5      6
(%i15) factor(1 + 432 + 432  + 432  + 432  + 432  + 432
                                                 2      3      4      5     17
                                 + (1 + 432 + 432  + 432  + 432  + 432 ) 432  )
(%o15)   29137 329006192782338308077739884627542190014336488523457249
                           2      3      4      5      6
(%i16) factor(1 + 434 + 434  + 434  + 434  + 434  + 434
                                                 2      3      4      5     17
                                 + (1 + 434 + 434  + 434  + 434  + 434 ) 434  )
(%o16)   743 37294294706868249859 382952289476055565366386353784255443
                           2      3      4      5      6
(%i17) factor(1 + 435 + 435  + 435  + 435  + 435  + 435
                                                 2      3      4      5     17
                                 + (1 + 435 + 435  + 435  + 435  + 435 ) 435  )
(%o17)  4973 680237 756373 9939059369482567 438937987489420037913871771
                           2      3      4      5      6
(%i18) factor(1 + 441 + 441  + 441  + 441  + 441  + 441
                                                 2      3      4      5     17
                                 + (1 + 441 + 441  + 441  + 441  + 441 ) 441  )
(%o18)  10531 25981 55145414519982148248456599626489677711388616950603
                           2      3      4      5      6
(%i19) factor(1 + 442 + 442  + 442  + 442  + 442  + 442
                                                 2      3      4      5     17
                                 + (1 + 442 + 442  + 442  + 442  + 442 ) 442  )
(%o19)  311 7433 163862019501490059103 41866897652542473136818029456167
                           2      3      4      5      6
(%i20) factor(1 + 445 + 445  + 445  + 445  + 445  + 445
                                                 2      3      4      5     17
                                 + (1 + 445 + 445  + 445  + 445  + 445 ) 445  )
(%o20)  1031 19828581059665203715801 900216523398187821944483360551691
                           2      3      4      5      6
(%i21) factor(1 + 446 + 446  + 446  + 446  + 446  + 446
                                                 2      3      4      5     17
                                 + (1 + 446 + 446  + 446  + 446  + 446 ) 446  )
(%o21) 479 1251427 287316577 112263873137817488416022443630120443553703
                           2      3      4      5      6
(%i22) factor(1 + 449 + 449  + 449  + 449  + 449  + 449
                                                 2      3      4      5     17
                                 + (1 + 449 + 449  + 449  + 449  + 449 ) 449  )
(%o22) 66499 102701 1270230784704473 2582946485245817039803018822197763
                           2      3      4      5      6
(%i23) factor(1 + 450 + 450  + 450  + 450  + 450  + 450
                                                 2      3      4      5     17
                                 + (1 + 450 + 450  + 450  + 450  + 450 ) 450  )
(%o23)  809 1637 7019 2531448126390579080521343149477765150590539316113
                           2      3      4      5      6
(%i24) factor(1 + 451 + 451  + 451  + 451  + 451  + 451
                                                 2      3      4      5     17
                                 + (1 + 451 + 451  + 451  + 451  + 451 ) 451  )
(%o24) 487 369673 107748274555119637 1273769753379125453089513984893499
                           2      3      4      5      6
(%i25) factor(1 + 454 + 454  + 454  + 454  + 454  + 454
                                                 2      3      4      5     17
                                 + (1 + 454 + 454  + 454  + 454  + 454 ) 454  )
(%o25)  901567 237043799 22659552119729891923 5903485305101216080272569
                           2      3      4      5      6
(%i26) factor(1 + 455 + 455  + 455  + 455  + 455  + 455
                                                 2      3      4      5     17
                                 + (1 + 455 + 455  + 455  + 455  + 455 ) 455  )
(%o26)    30005873240073354061302936943183516702380630334151412054481
素数ですね。
                           2      3      4      5      6
(%i27) factor(1 + 459 + 459  + 459  + 459  + 459  + 459
                                                 2      3      4      5     17
                                 + (1 + 459 + 459  + 459  + 459  + 459 ) 459  )
(%o27) 659 34549 9593579 5155890905392827793603 32301375589602743775223
                           2      3      4      5      6
(%i28) factor(1 + 461 + 461  + 461  + 461  + 461  + 461
                                                 2      3      4      5     17
                                 + (1 + 461 + 461  + 461  + 461  + 461 ) 461  )
(%o28) 41131 969503 191212100749 327242136419399 16042071007633715518051
                           2      3      4      5      6
(%i29) factor(1 + 462 + 462  + 462  + 462  + 462  + 462
                                                 2      3      4      5     17
                                 + (1 + 462 + 462  + 462  + 462  + 462 ) 462  )
(%o29) 2473 11701 16033 467749 10518803 18391766090556410542875350414823881
                           2      3      4      5      6
(%i30) factor(1 + 467 + 467  + 467  + 467  + 467  + 467
                                                 2      3      4      5     17
                                 + (1 + 467 + 467  + 467  + 467  + 467 ) 467  )
(%o30)    53198861279529058198587270832383938766772983430433925145513
素数ですね。
                           2      3      4      5      6
(%i31) factor(1 + 476 + 476  + 476  + 476  + 476  + 476
                                                 2      3      4      5     17
                                 + (1 + 476 + 476  + 476  + 476  + 476 ) 476  )
(%o31)  14255089 68136253001360141293 83352402650929627755819413039569
                           2      3      4      5      6
(%i32) factor(1 + 480 + 480  + 480  + 480  + 480  + 480
                                                 2      3      4      5     17
                                 + (1 + 480 + 480  + 480  + 480  + 480 ) 480  )
(%o32)    97322430476448393300763695376348696333516812256124055782881
素数ですね。
                           2      3      4      5      6
(%i33) factor(1 + 481 + 481  + 481  + 481  + 481  + 481
                                                 2      3      4      5     17
                                 + (1 + 481 + 481  + 481  + 481  + 481 ) 481  )
(%o33)  49339 8071103 400834414693993341793027 638274192213174650711267
                           2      3      4      5      6
(%i34) factor(1 + 484 + 484  + 484  + 484  + 484  + 484
                                                 2      3      4      5     17
                                 + (1 + 484 + 484  + 484  + 484  + 484 ) 484  )
(%o34)   3621637913380052257 32254562767665009142219664891381353201813
                           2      3      4      5      6
(%i35) factor(1 + 485 + 485  + 485  + 485  + 485  + 485
                                                 2      3      4      5     17
                                 + (1 + 485 + 485  + 485  + 485  + 485 ) 485  )
(%o35)  1907 1718213587 37306695653690356529890281735069092100211520429
                           2      3      4      5      6
(%i36) factor(1 + 486 + 486  + 486  + 486  + 486  + 486
                                                 2      3      4      5     17
                                 + (1 + 486 + 486  + 486  + 486  + 486 ) 486  )
(%o36)  11864071 10780991841456192333372449814366313978785443069715733
                           2      3      4      5      6
(%i37) factor(1 + 487 + 487  + 487  + 487  + 487  + 487
                                                 2      3      4      5     17
                                 + (1 + 487 + 487  + 487  + 487  + 487 ) 487  )
(%o37)  677 4050453724087779264239297 48801985910866262098042642550077
                           2      3      4      5      6
(%i38) factor(1 + 496 + 496  + 496  + 496  + 496  + 496
                                                 2      3      4      5     17
                                 + (1 + 496 + 496  + 496  + 496  + 496 ) 496  )
(%o38)   95822803773898665128972431961 2089317713011921751549727343193
(%o38)                               a.bat
(%i39)