(x^5+x^4+x^3+x^2+x+1)*x^14+x^6+x^5+x^4+x^3+x^2+x+1
Ver.1.000 2012.01.15
更新履歴
2012.1.15 ver.1.000 新規作成
多項式を変える。
(x^5+x^4+x^3+x^2+x+1)*x^14+x^6+x^5+x^4+x^3+x^2+x+1
(%i1) factor((x^5+x^4+x^3+x^2+x+1)*x^14+x^6+x^5+x^4+x^3+x^2+x+1);
19 18 17
16 15 14
6 5 4
3 2
(%o1) x +
x + x + x + x +
x + x + x + x + x + x + x + 1
因数分解されない。
2から20まで見てみる。
e5.batを作成した。
for x:2 while x<20 do(
y:factor((x^5+x^4+x^3+x^2+x+1)*x^14+x^6+x^5+x^4+x^3+x^2+x+1),
print(" x=",x),
print("factor(x)=",y)
);
実行結果
(%i3) for x from 2 while x < 20 do (y :
2 3 4
5
6
2 3 4
5 14
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)= 1032319
x= 3
factor(x)= 223 733 10651
x= 4
factor(x)= 349483 1048447
x= 5
factor(x)= 7873 3028112797
x= 6
factor(x)= 59 12393491783657
x= 7
factor(x)= 81313943 163546343
x= 8
factor(x)= 247268191 666088279
x= 9
factor(x)= 83 2609 7993 878005831
x= 10
factor(x)= 17 653594117647124183
x= 11
factor(x)= 79 113 7536122047527119
x= 12
factor(x)= 607 829 4090193 169334351
x= 13
factor(x)= 4327 11071 92959 355648123
x= 14
factor(x)= 13 37 503947 26551396182193
x= 15
factor(x)= 29881 794880750345511561
x= 16
factor(x)= 23 10151 50117983 6887761807
x= 17
factor(x)= 12379 20519787736639401271
x= 18
factor(x)= 37 419 937 396443 130216217563
x= 19
factor(x)= 61 107 1293949 247268464952987
これより、1000以下をピックアップすると
b.txtは
223,3
733,3
59,6
83,9
17,10
79,11
113,11
607,12
829,12
13,14
37,14
23,16
37,18
419,18
937,18
61,19
107,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^14+%cd^6+%cd^5+%cd^4+%cd^3+%cd^2+%cd+1);%cn%c,n,n,n,n,n,n,n,n,n,n,n,n);\n",dash,c,c,c,c,c,c,c,c,c,c,c,c,slash,dash);
fprintf(fp," };\n");
fprintf(fp," };\n");
fprintf(fp," fclose(fp);\n");
fprintf(fp," return(0);\n");
fprintf(fp,"}\n");
fclose(fp);
return(0);
}
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
223n+3
733n+3
59n+6
83n+9
17n+10
79n+11
113n+11
607n+12
829n+12
13n+14
37n+14
23n+16
37n+18
419n+18
937n+18
61n+19
107n+19
b.txt read! 17 個
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 1 !!!
!!! 2 !!!
3=223x0+3
3=733x0+3
!!! 4 !!!
!!! 5 !!!
6=59x0+6
!!! 7 !!!
!!! 8 !!!
9=83x0+9
10=17x0+10
11=79x0+11
11=113x0+11
12=607x0+12
12=829x0+12
!!! 13 !!!
14=13x0+14
14=37x0+14
!!! 15 !!!
16=23x0+16
!!! 17 !!!
18=37x0+18
18=419x0+18
18=937x0+18
19=61x0+19
19=107x0+19
!!! 20 !!!
!!! 21 !!!
!!! 22 !!!
!!! 23 !!!
!!! 24 !!!
!!! 25 !!!
!!! 26 !!!
27=17x1+10
27=13x1+14
!!! 28 !!!
!!! 29 !!!
!!! 30 !!!
!!! 31 !!!
!!! 32 !!!
!!! 33 !!!
!!! 34 !!!
!!! 35 !!!
!!! 36 !!!
!!! 37 !!!
!!! 38 !!!
39=23x1+16
40=13x2+14
!!! 41 !!!
!!! 42 !!!
!!! 43 !!!
44=17x2+10
!!! 45 !!!
!!! 46 !!!
!!! 47 !!!
!!! 48 !!!
!!! 49 !!!
!!! 50 !!!
51=37x1+14
!!! 52 !!!
53=13x3+14
!!! 54 !!!
55=37x1+18
!!! 56 !!!
!!! 57 !!!
!!! 58 !!!
!!! 59 !!!
!!! 60 !!!
61=17x3+10
62=23x2+16
!!! 63 !!!
!!! 64 !!!
65=59x1+6
66=13x4+14
!!! 67 !!!
!!! 68 !!!
!!! 69 !!!
!!! 70 !!!
!!! 71 !!!
!!! 72 !!!
!!! 73 !!!
!!! 74 !!!
!!! 75 !!!
!!! 76 !!!
!!! 77 !!!
78=17x4+10
79=13x5+14
80=61x1+19
!!! 81 !!!
!!! 82 !!!
!!! 83 !!!
!!! 84 !!!
85=23x3+16
!!! 86 !!!
!!! 87 !!!
88=37x2+14
!!! 89 !!!
90=79x1+11
!!! 91 !!!
92=83x1+9
92=13x6+14
92=37x2+18
!!! 93 !!!
!!! 94 !!!
95=17x5+10
!!! 96 !!!
!!! 97 !!!
!!! 98 !!!
!!! 99 !!!
!!! 100 !!!
factor((1^5+1^4+1^3+1^2+1+1)*1^14+1^6+1^5+1^4+1^3+1^2+1+1);
factor((2^5+2^4+2^3+2^2+2+1)*2^14+2^6+2^5+2^4+2^3+2^2+2+1);
factor((4^5+4^4+4^3+4^2+4+1)*4^14+4^6+4^5+4^4+4^3+4^2+4+1);
factor((5^5+5^4+5^3+5^2+5+1)*5^14+5^6+5^5+5^4+5^3+5^2+5+1);
factor((7^5+7^4+7^3+7^2+7+1)*7^14+7^6+7^5+7^4+7^3+7^2+7+1);
factor((8^5+8^4+8^3+8^2+8+1)*8^14+8^6+8^5+8^4+8^3+8^2+8+1);
factor((13^5+13^4+13^3+13^2+13+1)*13^14+13^6+13^5+13^4+13^3+13^2+13+1);
factor((15^5+15^4+15^3+15^2+15+1)*15^14+15^6+15^5+15^4+15^3+15^2+15+1);
factor((17^5+17^4+17^3+17^2+17+1)*17^14+17^6+17^5+17^4+17^3+17^2+17+1);
factor((20^5+20^4+20^3+20^2+20+1)*20^14+20^6+20^5+20^4+20^3+20^2+20+1);
factor((21^5+21^4+21^3+21^2+21+1)*21^14+21^6+21^5+21^4+21^3+21^2+21+1);
factor((22^5+22^4+22^3+22^2+22+1)*22^14+22^6+22^5+22^4+22^3+22^2+22+1);
factor((23^5+23^4+23^3+23^2+23+1)*23^14+23^6+23^5+23^4+23^3+23^2+23+1);
factor((24^5+24^4+24^3+24^2+24+1)*24^14+24^6+24^5+24^4+24^3+24^2+24+1);
factor((25^5+25^4+25^3+25^2+25+1)*25^14+25^6+25^5+25^4+25^3+25^2+25+1);
factor((26^5+26^4+26^3+26^2+26+1)*26^14+26^6+26^5+26^4+26^3+26^2+26+1);
factor((28^5+28^4+28^3+28^2+28+1)*28^14+28^6+28^5+28^4+28^3+28^2+28+1);
factor((29^5+29^4+29^3+29^2+29+1)*29^14+29^6+29^5+29^4+29^3+29^2+29+1);
factor((30^5+30^4+30^3+30^2+30+1)*30^14+30^6+30^5+30^4+30^3+30^2+30+1);
factor((31^5+31^4+31^3+31^2+31+1)*31^14+31^6+31^5+31^4+31^3+31^2+31+1);
factor((32^5+32^4+32^3+32^2+32+1)*32^14+32^6+32^5+32^4+32^3+32^2+32+1);
factor((33^5+33^4+33^3+33^2+33+1)*33^14+33^6+33^5+33^4+33^3+33^2+33+1);
factor((34^5+34^4+34^3+34^2+34+1)*34^14+34^6+34^5+34^4+34^3+34^2+34+1);
factor((35^5+35^4+35^3+35^2+35+1)*35^14+35^6+35^5+35^4+35^3+35^2+35+1);
factor((36^5+36^4+36^3+36^2+36+1)*36^14+36^6+36^5+36^4+36^3+36^2+36+1);
factor((37^5+37^4+37^3+37^2+37+1)*37^14+37^6+37^5+37^4+37^3+37^2+37+1);
factor((38^5+38^4+38^3+38^2+38+1)*38^14+38^6+38^5+38^4+38^3+38^2+38+1);
factor((41^5+41^4+41^3+41^2+41+1)*41^14+41^6+41^5+41^4+41^3+41^2+41+1);
factor((42^5+42^4+42^3+42^2+42+1)*42^14+42^6+42^5+42^4+42^3+42^2+42+1);
factor((43^5+43^4+43^3+43^2+43+1)*43^14+43^6+43^5+43^4+43^3+43^2+43+1);
factor((45^5+45^4+45^3+45^2+45+1)*45^14+45^6+45^5+45^4+45^3+45^2+45+1);
factor((46^5+46^4+46^3+46^2+46+1)*46^14+46^6+46^5+46^4+46^3+46^2+46+1);
factor((47^5+47^4+47^3+47^2+47+1)*47^14+47^6+47^5+47^4+47^3+47^2+47+1);
factor((48^5+48^4+48^3+48^2+48+1)*48^14+48^6+48^5+48^4+48^3+48^2+48+1);
factor((49^5+49^4+49^3+49^2+49+1)*49^14+49^6+49^5+49^4+49^3+49^2+49+1);
factor((50^5+50^4+50^3+50^2+50+1)*50^14+50^6+50^5+50^4+50^3+50^2+50+1);
factor((52^5+52^4+52^3+52^2+52+1)*52^14+52^6+52^5+52^4+52^3+52^2+52+1);
factor((54^5+54^4+54^3+54^2+54+1)*54^14+54^6+54^5+54^4+54^3+54^2+54+1);
factor((56^5+56^4+56^3+56^2+56+1)*56^14+56^6+56^5+56^4+56^3+56^2+56+1);
factor((57^5+57^4+57^3+57^2+57+1)*57^14+57^6+57^5+57^4+57^3+57^2+57+1);
factor((58^5+58^4+58^3+58^2+58+1)*58^14+58^6+58^5+58^4+58^3+58^2+58+1);
factor((59^5+59^4+59^3+59^2+59+1)*59^14+59^6+59^5+59^4+59^3+59^2+59+1);
factor((60^5+60^4+60^3+60^2+60+1)*60^14+60^6+60^5+60^4+60^3+60^2+60+1);
factor((63^5+63^4+63^3+63^2+63+1)*63^14+63^6+63^5+63^4+63^3+63^2+63+1);
factor((64^5+64^4+64^3+64^2+64+1)*64^14+64^6+64^5+64^4+64^3+64^2+64+1);
factor((67^5+67^4+67^3+67^2+67+1)*67^14+67^6+67^5+67^4+67^3+67^2+67+1);
factor((68^5+68^4+68^3+68^2+68+1)*68^14+68^6+68^5+68^4+68^3+68^2+68+1);
factor((69^5+69^4+69^3+69^2+69+1)*69^14+69^6+69^5+69^4+69^3+69^2+69+1);
factor((70^5+70^4+70^3+70^2+70+1)*70^14+70^6+70^5+70^4+70^3+70^2+70+1);
factor((71^5+71^4+71^3+71^2+71+1)*71^14+71^6+71^5+71^4+71^3+71^2+71+1);
factor((72^5+72^4+72^3+72^2+72+1)*72^14+72^6+72^5+72^4+72^3+72^2+72+1);
factor((73^5+73^4+73^3+73^2+73+1)*73^14+73^6+73^5+73^4+73^3+73^2+73+1);
factor((74^5+74^4+74^3+74^2+74+1)*74^14+74^6+74^5+74^4+74^3+74^2+74+1);
factor((75^5+75^4+75^3+75^2+75+1)*75^14+75^6+75^5+75^4+75^3+75^2+75+1);
factor((76^5+76^4+76^3+76^2+76+1)*76^14+76^6+76^5+76^4+76^3+76^2+76+1);
factor((77^5+77^4+77^3+77^2+77+1)*77^14+77^6+77^5+77^4+77^3+77^2+77+1);
factor((81^5+81^4+81^3+81^2+81+1)*81^14+81^6+81^5+81^4+81^3+81^2+81+1);
factor((82^5+82^4+82^3+82^2+82+1)*82^14+82^6+82^5+82^4+82^3+82^2+82+1);
factor((83^5+83^4+83^3+83^2+83+1)*83^14+83^6+83^5+83^4+83^3+83^2+83+1);
factor((84^5+84^4+84^3+84^2+84+1)*84^14+84^6+84^5+84^4+84^3+84^2+84+1);
factor((86^5+86^4+86^3+86^2+86+1)*86^14+86^6+86^5+86^4+86^3+86^2+86+1);
factor((87^5+87^4+87^3+87^2+87+1)*87^14+87^6+87^5+87^4+87^3+87^2+87+1);
factor((89^5+89^4+89^3+89^2+89+1)*89^14+89^6+89^5+89^4+89^3+89^2+89+1);
factor((91^5+91^4+91^3+91^2+91+1)*91^14+91^6+91^5+91^4+91^3+91^2+91+1);
factor((93^5+93^4+93^3+93^2+93+1)*93^14+93^6+93^5+93^4+93^3+93^2+93+1);
factor((94^5+94^4+94^3+94^2+94+1)*94^14+94^6+94^5+94^4+94^3+94^2+94+1);
factor((96^5+96^4+96^3+96^2+96+1)*96^14+96^6+96^5+96^4+96^3+96^2+96+1);
factor((97^5+97^4+97^3+97^2+97+1)*97^14+97^6+97^5+97^4+97^3+97^2+97+1);
factor((98^5+98^4+98^3+98^2+98+1)*98^14+98^6+98^5+98^4+98^3+98^2+98+1);
factor((99^5+99^4+99^3+99^2+99+1)*99^14+99^6+99^5+99^4+99^3+99^2+99+1);
factor((100^5+100^4+100^3+100^2+100+1)*100^14+100^6+100^5+100^4+100^3+100^2+100+1);
(%i4) batch("a.bat");
read and interpret file:a.bat
2 3 4
5
6
2 3 4
5 14
(%i5) factor(1 + 1 + 1 + 1 + 1 + 1 + 1 + (1 + 1 + 1 + 1 + 1 + 1 ) 1 )
(%o5)
13
素数ですね。
2 3 4
5
6
2 3 4
5 14
(%i6) factor(1 + 2 + 2 + 2 + 2 + 2 + 2 + (1 + 2 + 2 + 2 + 2 + 2 ) 2 )
(%o6)
1032319
素数ですね。
2 3 4
5
6
2 3 4
5 14
(%i7) factor(1 + 4 + 4 + 4 + 4 + 4 + 4 + (1 + 4 + 4 + 4 + 4 + 4 ) 4 )
(%o7)
349483 1048447
2 3 4
5
6
2 3 4
5 14
(%i8) factor(1 + 5 + 5 + 5 + 5 + 5 + 5 + (1 + 5 + 5 + 5 + 5 + 5 ) 5 )
(%o8)
7873 3028112797
2 3 4
5
6
2 3 4
5 14
(%i9) factor(1 + 7 + 7 + 7 + 7 + 7 + 7 + (1 + 7 + 7 + 7 + 7 + 7 ) 7 )
(%o9)
81313943 163546343
2 3 4
5
6
2 3 4
5 14
(%i10) factor(1 + 8 + 8 + 8 + 8 + 8 + 8 + (1 + 8 + 8 + 8 + 8 + 8 ) 8 )
(%o10)
247268191 666088279
2 3
4 5 6
(%i11) factor(1 + 13 + 13 + 13 + 13 + 13 + 13
2 3
4 5 14
+ (1 + 13 + 13 + 13 + 13 + 13 ) 13 )
(%o11)
4327 11071 92959 355648123
2 3
4 5 6
(%i12) factor(1 + 15 + 15 + 15 + 15 + 15 + 15
2 3
4 5 14
+ (1 + 15 + 15 + 15 + 15 + 15 ) 15 )
(%o12)
29881 794880750345511561
2 3
4 5 6
(%i13) factor(1 + 17 + 17 + 17 + 17 + 17 + 17
2 3
4 5 14
+ (1 + 17 + 17 + 17 + 17 + 17 ) 17 )
(%o13)
12379 20519787736639401271
2 3
4 5 6
(%i14) factor(1 + 20 + 20 + 20 + 20 + 20 + 20
2 3
4 5 14
+ (1 + 20 + 20 + 20 + 20 + 20 ) 20 )
(%o14)
7477 233341 3163208872734853
2 3
4 5 6
(%i15) factor(1 + 21 + 21 + 21 + 21 + 21 + 21
2 3
4 5 14
+ (1 + 21 + 21 + 21 + 21 + 21 ) 21 )
(%o15)
283 144482071 340216600133041
2 3
4 5 6
(%i16) factor(1 + 22 + 22 + 22 + 22 + 22 + 22
2 3
4 5 14
+ (1 + 22 + 22 + 22 + 22 + 22 ) 22 )
(%o16)
910361 36899516338630016699
2 3
4 5 6
(%i17) factor(1 + 23 + 23 + 23 + 23 + 23 + 23
2 3
4 5 14
+ (1 + 23 + 23 + 23 + 23 + 23 ) 23 )
(%o17)
6779 11507166649289584289651
2 3
4 5 6
(%i18) factor(1 + 24 + 24 + 24 + 24 + 24 + 24
2 3
4 5 14
+ (1 + 24 + 24 + 24 + 24 + 24 ) 24 )
(%o18)
174782117252386241527335001
素数ですね。
2 3
4 5 6
(%i19) factor(1 + 25 + 25 + 25 + 25 + 25 + 25
2 3
4 5 14
+ (1 + 25 + 25 + 25 + 25 + 25 ) 25 )
(%o19)
589759 642560985396604050739
2 3
4 5 6
(%i20) factor(1 + 26 + 26 + 26 + 26 + 26 + 26
2 3
4 5 14
+ (1 + 26 + 26 + 26 + 26 + 26 ) 26 )
(%o20)
619 5332643 284646823 848374193
2 3
4 5 6
(%i21) factor(1 + 28 + 28 + 28 + 28 + 28 + 28
2 3
4 5 14
+ (1 + 28 + 28 + 28 + 28 + 28 ) 28 )
(%o21)
97 6619 7529 10243 166571 393975199
2 3
4 5 6
(%i22) factor(1 + 29 + 29 + 29 + 29 + 29 + 29
2 3
4 5 14
+ (1 + 29 + 29 + 29 + 29 + 29 ) 29 )
(%o22)
487 1663 743377 10499571987626773
2 3
4 5 6
(%i23) factor(1 + 30 + 30 + 30 + 30 + 30 + 30
2 3
4 5 14
+ (1 + 30 + 30 + 30 + 30 + 30 ) 30 )
(%o23)
613 19614020342110766722274287
2 3
4 5 6
(%i24) factor(1 + 31 + 31 + 31 + 31 + 31 + 31
2 3
4 5 14
+ (1 + 31 + 31 + 31 + 31 + 31 ) 31 )
(%o24)
144522193 154945182724090536241
2 3
4 5 6
(%i25) factor(1 + 32 + 32 + 32 + 32 + 32 + 32
2 3
4 5 14
+ (1 + 32 + 32 + 32 + 32 + 32 ) 32 )
(%o25)
750266549 54503236033235856701
2 3
4 5 6
(%i26) factor(1 + 33 + 33 + 33 + 33 + 33 + 33
2 3
4 5 14
+ (1 + 33 + 33 + 33 + 33 + 33 ) 33 )
(%o26)
8803 2089921907 3984447039872309
2 3
4 5 6
(%i27) factor(1 + 34 + 34 + 34 + 34 + 34 + 34
2 3
4 5 14
+ (1 + 34 + 34 + 34 + 34 + 34 ) 34 )
2
(%o27)
53 109 521 3833 211207638608387347
2 3
4 5 6
(%i28) factor(1 + 35 + 35 + 35 + 35 + 35 + 35
2 3
4 5 14
+ (1 + 35 + 35 + 35 + 35 + 35 ) 35 )
(%o28)
223811279336720983668884519761
素数ですね。
2 3
4 5 6
(%i29) factor(1 + 36 + 36 + 36 + 36 + 36 + 36
2 3
4 5 14
+ (1 + 36 + 36 + 36 + 36 + 36 ) 36 )
(%o29)
15373 24844104288042657076790281
2 3
4 5 6
(%i30) factor(1 + 37 + 37 + 37 + 37 + 37 + 37
2 3
4 5 14
+ (1 + 37 + 37 + 37 + 37 + 37 ) 37 )
(%o30)
642291212712474928632949371229
素数ですね。
2 3
4 5 6
(%i31) factor(1 + 38 + 38 + 38 + 38 + 38 + 38
2 3
4 5 14
+ (1 + 38 + 38 + 38 + 38 + 38 ) 38 )
(%o31)
7069 1220138492929 123510277647919
2 3
4 5 6
(%i32) factor(1 + 41 + 41 + 41 + 41 + 41 + 41
2 3
4 5 14
+ (1 + 41 + 41 + 41 + 41 + 41 ) 41 )
(%o32) 113 269 1805158528337 82086373998017
2 3
4 5 6
(%i33) factor(1 + 42 + 42 + 42 + 42 + 42 + 42
2 3
4 5 14
+ (1 + 42 + 42 + 42 + 42 + 42 ) 42 )
(%o33)
1931 7321 503325890442279979327709
2 3
4 5 6
(%i34) factor(1 + 43 + 43 + 43 + 43 + 43 + 43
2 3
4 5 14
+ (1 + 43 + 43 + 43 + 43 + 43 ) 43 )
(%o34) 389 1409231 7975102411 2543617258201
2 3
4 5 6
(%i35) factor(1 + 45 + 45 + 45 + 45 + 45 + 45
2 3
4 5 14
+ (1 + 45 + 45 + 45 + 45 + 45 ) 45 )
(%o35)
12541 2101190512277132019723058081
2 3
4 5 6
(%i36) factor(1 + 46 + 46 + 46 + 46 + 46 + 46
2 3
4 5 14
+ (1 + 46 + 46 + 46 + 46 + 46 ) 46 )
(%o36)
173 554025559 417222975570611426609
2 3
4 5 6
(%i37) factor(1 + 47 + 47 + 47 + 47 + 47 + 47
2 3
4 5 14
+ (1 + 47 + 47 + 47 + 47 + 47 ) 47 )
(%o37)
97306697 618096943457052048102137
2 3
4 5 6
(%i38) factor(1 + 48 + 48 + 48 + 48 + 48 + 48
2 3
4 5 14
+ (1 + 48 + 48 + 48 + 48 + 48 ) 48 )
(%o38)
89686461477739991473778535348529
素数ですね。
2 3
4 5 6
(%i39) factor(1 + 49 + 49 + 49 + 49 + 49 + 49
2 3
4 5 14
+ (1 + 49 + 49 + 49 + 49 + 49 ) 49 )
(%o39)
3254377219 40757963121675138808879
2 3
4 5 6
(%i40) factor(1 + 50 + 50 + 50 + 50 + 50 + 50
2 3
4 5 14
+ (1 + 50 + 50 + 50 + 50 + 50 ) 50 )
(%o40) 89 1297 20297 14366791 5782057394246761
2 3
4 5 6
(%i41) factor(1 + 52 + 52 + 52 + 52 + 52 + 52
2 3
4 5 14
+ (1 + 52 + 52 + 52 + 52 + 52 ) 52 )
(%o41)
20017018999 20469031540287351884131
2 3
4 5 6
(%i42) factor(1 + 54 + 54 + 54 + 54 + 54 + 54
2 3
4 5 14
+ (1 + 54 + 54 + 54 + 54 + 54 ) 54 )
(%o42) 1439 6379 5747069543 15897889658010097
2 3
4 5 6
(%i43) factor(1 + 56 + 56 + 56 + 56 + 56 + 56
2 3
4 5 14
+ (1 + 56 + 56 + 56 + 56 + 56 ) 56 )
(%o43) 1481 41141 789027007 34791734439958579
2 3
4 5 6
(%i44) factor(1 + 57 + 57 + 57 + 57 + 57 + 57
2 3
4 5 14
+ (1 + 57 + 57 + 57 + 57 + 57 ) 57 )
(%o44)
2340502376463458188576788050516749
素数ですね。
2 3
4 5 6
(%i45) factor(1 + 58 + 58 + 58 + 58 + 58 + 58
2 3
4 5 14
+ (1 + 58 + 58 + 58 + 58 + 58 ) 58 )
(%o45) 317 641 1091 96443 152290306932358032499
2 3
4 5 6
(%i46) factor(1 + 59 + 59 + 59 + 59 + 59 + 59
2 3
4 5 14
+ (1 + 59 + 59 + 59 + 59 + 59 ) 59 )
(%o46) 38569 19357976511389 6032730185660861
2 3
4 5 6
(%i47) factor(1 + 60 + 60 + 60 + 60 + 60 + 60
2 3
4 5 14
+ (1 + 60 + 60 + 60 + 60 + 60 ) 60 )
(%o47)
6196878711838325145600047446779661
素数ですね。
2 3
4 5 6
(%i48) factor(1 + 63 + 63 + 63 + 63 + 63 + 63
2 3
4 5 14
+ (1 + 63 + 63 + 63 + 63 + 63 ) 63 )
(%o48)
15646575481465066908310333717843969
素数ですね。
2 3
4 5 6
(%i49) factor(1 + 64 + 64 + 64 + 64 + 64 + 64
2 3
4 5 14
+ (1 + 64 + 64 + 64 + 64 + 64 ) 64 )
(%o49) 863 354272860213 69009717711274410179
2 3
4 5 6
(%i50) factor(1 + 67 + 67 + 67 + 67 + 67 + 67
2 3
4 5 14
+ (1 + 67 + 67 + 67 + 67 + 67 ) 67 )
(%o50) 34039 143629 320736253 32105921358902863
2 3
4 5 6
(%i51) factor(1 + 68 + 68 + 68 + 68 + 68 + 68
2 3
4 5 14
+ (1 + 68 + 68 + 68 + 68 + 68 ) 68 )
(%o51) 63391 15078851 69776245725391850332889
2 3
4 5 6
(%i52) factor(1 + 69 + 69 + 69 + 69 + 69 + 69
2 3
4 5 14
+ (1 + 69 + 69 + 69 + 69 + 69 ) 69 )
(%o52) 199 118557846163 3729834182122615446073
2 3
4 5 6
(%i53) factor(1 + 70 + 70 + 70 + 70 + 70 + 70
2 3
4 5 14
+ (1 + 70 + 70 + 70 + 70 + 70 ) 70 )
(%o53) 163 709453776979939343177301345730417
2 3
4 5 6
(%i54) factor(1 + 71 + 71 + 71 + 71 + 71 + 71
2 3
4 5 14
+ (1 + 71 + 71 + 71 + 71 + 71 ) 71 )
(%o54) 20117 37871 3500250105199 56767513003741
2 3
4 5 6
(%i55) factor(1 + 72 + 72 + 72 + 72 + 72 + 72
2 3
4 5 14
+ (1 + 72 + 72 + 72 + 72 + 72 ) 72 )
(%o55) 569 17182003 207880150399 97138747770773
2 3
4 5 6
(%i56) factor(1 + 73 + 73 + 73 + 73 + 73 + 73
2 3
4 5 14
+ (1 + 73 + 73 + 73 + 73 + 73 ) 73 )
(%o56) 3649762297 70284591574614397402133557
2 3
4 5 6
(%i57) factor(1 + 74 + 74 + 74 + 74 + 74 + 74
2 3
4 5 14
+ (1 + 74 + 74 + 74 + 74 + 74 ) 74 )
(%o57) 1663 810769 7409293955347 33246453534739
2 3
4 5 6
(%i58) factor(1 + 75 + 75 + 75 + 75 + 75 + 75
2 3
4 5 14
+ (1 + 75 + 75 + 75 + 75 + 75 ) 75 )
(%o58) 307 968198267 4612101517 312602188164437
2 3
4 5 6
(%i59) factor(1 + 76 + 76 + 76 + 76 + 76 + 76
2 3
4 5 14
+ (1 + 76 + 76 + 76 + 76 + 76 ) 76 )
(%o59) 13492182855659743 40844009054532901891
2 3
4 5 6
(%i60) factor(1 + 77 + 77 + 77 + 77 + 77 + 77
2 3
4 5 14
+ (1 + 77 + 77 + 77 + 77 + 77 ) 77 )
(%o60) 173 317 12879397460773776962083923432709
2 3
4 5 6
(%i61) factor(1 + 81 + 81 + 81 + 81 + 81 + 81
2 3
4 5 14
+ (1 + 81 + 81 + 81 + 81 + 81 ) 81 )
(%o61) 2081 6151 21377 6752208216925481033720299
2 3
4 5 6
(%i62) factor(1 + 82 + 82 + 82 + 82 + 82 + 82
2 3
4 5 14
+ (1 + 82 + 82 + 82 + 82 + 82 ) 82 )
(%o62) 257627 9053169518200018052523133012637
2 3
4 5 6
(%i63) factor(1 + 83 + 83 + 83 + 83 + 83 + 83
2 3
4 5 14
+ (1 + 83 + 83 + 83 + 83 + 83 ) 83 )
(%o63) 373 22147 307523 187032121 6179174445582893
2 3
4 5 6
(%i64) factor(1 + 84 + 84 + 84 + 84 + 84 + 84
2 3
4 5 14
+ (1 + 84 + 84 + 84 + 84 + 84 ) 84 )
(%o64) 3685595159489507536828602149650136101
素数ですね。
2 3
4 5 6
(%i65) factor(1 + 86 + 86 + 86 + 86 + 86 + 86
2 3
4 5 14
+ (1 + 86 + 86 + 86 + 86 + 86 ) 86 )
(%o65) 103 229 20479 34361 310547 1117829363054194093
2 3
4 5 6
(%i66) factor(1 + 87 + 87 + 87 + 87 + 87 + 87
2 3
4 5 14
+ (1 + 87 + 87 + 87 + 87 + 87 ) 87 )
(%o66) 53 108503 305761817 4081179860273968161443
2 3
4 5 6
(%i67) factor(1 + 89 + 89 + 89 + 89 + 89 + 89
2 3
4 5 14
+ (1 + 89 + 89 + 89 + 89 + 89 ) 89 )
(%o67) 19897735817 555282261721520518323044453
2 3
4 5 6
(%i68) factor(1 + 91 + 91 + 91 + 91 + 91 + 91
2 3
4 5 14
+ (1 + 91 + 91 + 91 + 91 + 91 ) 91 )
(%o68) 36496133533 52792803029 8745079432975409
2 3
4 5 6
(%i69) factor(1 + 93 + 93 + 93 + 93 + 93 + 93
2 3
4 5 14
+ (1 + 93 + 93 + 93 + 93 + 93 ) 93 )
(%o69) 733 2417 23159 322857961 1922025814322362591
2 3
4 5 6
(%i70) factor(1 + 94 + 94 + 94 + 94 + 94 + 94
2 3
4 5 14
+ (1 + 94 + 94 + 94 + 94 + 94 ) 94 )
(%o70) 191 1451 4933303 4721675419 4832139062903323
2 3
4 5 6
(%i71) factor(1 + 96 + 96 + 96 + 96 + 96 + 96
2 3
4 5 14
+ (1 + 96 + 96 + 96 + 96 + 96 ) 96 )
(%o71) 21776281 2136571069561723497455409700873
2 3
4 5 6
(%i72) factor(1 + 97 + 97 + 97 + 97 + 97 + 97
2 3
4 5 14
+ (1 + 97 + 97 + 97 + 97 + 97 ) 97 )
(%o72) 548256139 974658047317 106005323581196203
2 3
4 5 6
(%i73) factor(1 + 98 + 98 + 98 + 98 + 98 + 98
2 3
4 5 14
+ (1 + 98 + 98 + 98 + 98 + 98 ) 98 )
(%o73) 68825564098385654739815073812771706079
素数ですね。
2 3
4 5 6
(%i74) factor(1 + 99 + 99 + 99 + 99 + 99 + 99
2 3
4 5 14
+ (1 + 99 + 99 + 99 + 99 + 99 ) 99 )
(%o74) 94873 12693849743 18827014483 3680953850573
2 3
4 5 6
(%i75) factor(1 + 100 + 100 + 100 + 100 + 100 + 100
2 3
4 5 14
+ (1 + 100 + 100 + 100 + 100 + 100 ) 100 )
(%o75) 217241 15579014025078107 29845787591798023
(%o75)
a.bat
(%i76)
b.txtに追加されるものは、
283,21
619,26
97,28
487,29
613,30
53,34
109,34
521,34
113,41
269,41
389,43
173,46
89,50
317,58
641,58
863,64
199,69
163,70
569,72
307,75
173,77
317,77
373,83
103,86
229,86
53,87
733,93
191,94
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
223n+3
733n+3
59n+6
83n+9
17n+10
79n+11
113n+11
607n+12
829n+12
13n+14
37n+14
23n+16
37n+18
419n+18
937n+18
61n+19
107n+19
283n+21
619n+26
97n+28
487n+29
613n+30
53n+34
109n+34
521n+34
113n+41
269n+41
389n+43
173n+46
89n+50
317n+58
641n+58
863n+64
199n+69
163n+70
569n+72
307n+75
173n+77
317n+77
373n+83
103n+86
229n+86
53n+87
733n+93
191n+94
b.txt read! 45 個
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 100 !!!
!!! 101 !!!
!!! 102 !!!
!!! 103 !!!
!!! 104 !!!
105=13x7+14
!!! 106 !!!
!!! 107 !!!
108=23x4+16
!!! 109 !!!
!!! 110 !!!
!!! 111 !!!
112=17x6+10
!!! 113 !!!
!!! 114 !!!
!!! 115 !!!
!!! 116 !!!
!!! 117 !!!
118=13x8+14
!!! 119 !!!
!!! 120 !!!
!!! 121 !!!
!!! 122 !!!
!!! 123 !!!
124=59x2+6
124=113x1+11
125=37x3+14
125=97x1+28
126=107x1+19
!!! 127 !!!
!!! 128 !!!
129=17x7+10
129=37x3+18
!!! 130 !!!
131=13x9+14
131=23x5+16
!!! 132 !!!
!!! 133 !!!
!!! 134 !!!
!!! 135 !!!
!!! 136 !!!
!!! 137 !!!
!!! 138 !!!
139=89x1+50
140=53x2+34
140=53x1+87
141=61x2+19
!!! 142 !!!
143=109x1+34
144=13x10+14
!!! 145 !!!
146=17x8+10
!!! 147 !!!
!!! 148 !!!
!!! 149 !!!
!!! 150 !!!
!!! 151 !!!
!!! 152 !!!
!!! 153 !!!
154=23x6+16
154=113x1+41
!!! 155 !!!
!!! 156 !!!
157=13x11+14
!!! 158 !!!
!!! 159 !!!
!!! 160 !!!
!!! 161 !!!
162=37x4+14
163=17x9+10
!!! 164 !!!
!!! 165 !!!
166=37x4+18
!!! 167 !!!
!!! 168 !!!
169=79x2+11
170=13x12+14
!!! 171 !!!
!!! 172 !!!
!!! 173 !!!
!!! 174 !!!
175=83x2+9
!!! 176 !!!
177=23x7+16
!!! 178 !!!
!!! 179 !!!
180=17x10+10
!!! 181 !!!
!!! 182 !!!
183=59x3+6
183=13x13+14
!!! 184 !!!
!!! 185 !!!
!!! 186 !!!
!!! 187 !!!
!!! 188 !!!
189=103x1+86
!!! 190 !!!
!!! 191 !!!
!!! 192 !!!
193=53x3+34
193=53x2+87
!!! 194 !!!
!!! 195 !!!
196=13x14+14
197=17x11+10
!!! 198 !!!
199=37x5+14
factor((100^5+100^4+100^3+100^2+100+1)*100^14+100^6+100^5+100^4+100^3+100^2+100+1);
factor((101^5+101^4+101^3+101^2+101+1)*101^14+101^6+101^5+101^4+101^3+101^2+101+1);
factor((102^5+102^4+102^3+102^2+102+1)*102^14+102^6+102^5+102^4+102^3+102^2+102+1);
factor((103^5+103^4+103^3+103^2+103+1)*103^14+103^6+103^5+103^4+103^3+103^2+103+1);
factor((104^5+104^4+104^3+104^2+104+1)*104^14+104^6+104^5+104^4+104^3+104^2+104+1);
factor((106^5+106^4+106^3+106^2+106+1)*106^14+106^6+106^5+106^4+106^3+106^2+106+1);
factor((107^5+107^4+107^3+107^2+107+1)*107^14+107^6+107^5+107^4+107^3+107^2+107+1);
factor((109^5+109^4+109^3+109^2+109+1)*109^14+109^6+109^5+109^4+109^3+109^2+109+1);
factor((110^5+110^4+110^3+110^2+110+1)*110^14+110^6+110^5+110^4+110^3+110^2+110+1);
factor((111^5+111^4+111^3+111^2+111+1)*111^14+111^6+111^5+111^4+111^3+111^2+111+1);
factor((113^5+113^4+113^3+113^2+113+1)*113^14+113^6+113^5+113^4+113^3+113^2+113+1);
factor((114^5+114^4+114^3+114^2+114+1)*114^14+114^6+114^5+114^4+114^3+114^2+114+1);
factor((115^5+115^4+115^3+115^2+115+1)*115^14+115^6+115^5+115^4+115^3+115^2+115+1);
factor((116^5+116^4+116^3+116^2+116+1)*116^14+116^6+116^5+116^4+116^3+116^2+116+1);
factor((117^5+117^4+117^3+117^2+117+1)*117^14+117^6+117^5+117^4+117^3+117^2+117+1);
factor((119^5+119^4+119^3+119^2+119+1)*119^14+119^6+119^5+119^4+119^3+119^2+119+1);
factor((120^5+120^4+120^3+120^2+120+1)*120^14+120^6+120^5+120^4+120^3+120^2+120+1);
factor((121^5+121^4+121^3+121^2+121+1)*121^14+121^6+121^5+121^4+121^3+121^2+121+1);
factor((122^5+122^4+122^3+122^2+122+1)*122^14+122^6+122^5+122^4+122^3+122^2+122+1);
factor((123^5+123^4+123^3+123^2+123+1)*123^14+123^6+123^5+123^4+123^3+123^2+123+1);
factor((127^5+127^4+127^3+127^2+127+1)*127^14+127^6+127^5+127^4+127^3+127^2+127+1);
factor((128^5+128^4+128^3+128^2+128+1)*128^14+128^6+128^5+128^4+128^3+128^2+128+1);
factor((130^5+130^4+130^3+130^2+130+1)*130^14+130^6+130^5+130^4+130^3+130^2+130+1);
factor((132^5+132^4+132^3+132^2+132+1)*132^14+132^6+132^5+132^4+132^3+132^2+132+1);
factor((133^5+133^4+133^3+133^2+133+1)*133^14+133^6+133^5+133^4+133^3+133^2+133+1);
factor((134^5+134^4+134^3+134^2+134+1)*134^14+134^6+134^5+134^4+134^3+134^2+134+1);
factor((135^5+135^4+135^3+135^2+135+1)*135^14+135^6+135^5+135^4+135^3+135^2+135+1);
factor((136^5+136^4+136^3+136^2+136+1)*136^14+136^6+136^5+136^4+136^3+136^2+136+1);
factor((137^5+137^4+137^3+137^2+137+1)*137^14+137^6+137^5+137^4+137^3+137^2+137+1);
factor((138^5+138^4+138^3+138^2+138+1)*138^14+138^6+138^5+138^4+138^3+138^2+138+1);
factor((142^5+142^4+142^3+142^2+142+1)*142^14+142^6+142^5+142^4+142^3+142^2+142+1);
factor((145^5+145^4+145^3+145^2+145+1)*145^14+145^6+145^5+145^4+145^3+145^2+145+1);
factor((147^5+147^4+147^3+147^2+147+1)*147^14+147^6+147^5+147^4+147^3+147^2+147+1);
factor((148^5+148^4+148^3+148^2+148+1)*148^14+148^6+148^5+148^4+148^3+148^2+148+1);
factor((149^5+149^4+149^3+149^2+149+1)*149^14+149^6+149^5+149^4+149^3+149^2+149+1);
factor((150^5+150^4+150^3+150^2+150+1)*150^14+150^6+150^5+150^4+150^3+150^2+150+1);
factor((151^5+151^4+151^3+151^2+151+1)*151^14+151^6+151^5+151^4+151^3+151^2+151+1);
factor((152^5+152^4+152^3+152^2+152+1)*152^14+152^6+152^5+152^4+152^3+152^2+152+1);
factor((153^5+153^4+153^3+153^2+153+1)*153^14+153^6+153^5+153^4+153^3+153^2+153+1);
factor((155^5+155^4+155^3+155^2+155+1)*155^14+155^6+155^5+155^4+155^3+155^2+155+1);
factor((156^5+156^4+156^3+156^2+156+1)*156^14+156^6+156^5+156^4+156^3+156^2+156+1);
factor((158^5+158^4+158^3+158^2+158+1)*158^14+158^6+158^5+158^4+158^3+158^2+158+1);
factor((159^5+159^4+159^3+159^2+159+1)*159^14+159^6+159^5+159^4+159^3+159^2+159+1);
factor((160^5+160^4+160^3+160^2+160+1)*160^14+160^6+160^5+160^4+160^3+160^2+160+1);
factor((161^5+161^4+161^3+161^2+161+1)*161^14+161^6+161^5+161^4+161^3+161^2+161+1);
factor((164^5+164^4+164^3+164^2+164+1)*164^14+164^6+164^5+164^4+164^3+164^2+164+1);
factor((165^5+165^4+165^3+165^2+165+1)*165^14+165^6+165^5+165^4+165^3+165^2+165+1);
factor((167^5+167^4+167^3+167^2+167+1)*167^14+167^6+167^5+167^4+167^3+167^2+167+1);
factor((168^5+168^4+168^3+168^2+168+1)*168^14+168^6+168^5+168^4+168^3+168^2+168+1);
factor((171^5+171^4+171^3+171^2+171+1)*171^14+171^6+171^5+171^4+171^3+171^2+171+1);
factor((172^5+172^4+172^3+172^2+172+1)*172^14+172^6+172^5+172^4+172^3+172^2+172+1);
factor((173^5+173^4+173^3+173^2+173+1)*173^14+173^6+173^5+173^4+173^3+173^2+173+1);
factor((174^5+174^4+174^3+174^2+174+1)*174^14+174^6+174^5+174^4+174^3+174^2+174+1);
factor((176^5+176^4+176^3+176^2+176+1)*176^14+176^6+176^5+176^4+176^3+176^2+176+1);
factor((178^5+178^4+178^3+178^2+178+1)*178^14+178^6+178^5+178^4+178^3+178^2+178+1);
factor((179^5+179^4+179^3+179^2+179+1)*179^14+179^6+179^5+179^4+179^3+179^2+179+1);
factor((181^5+181^4+181^3+181^2+181+1)*181^14+181^6+181^5+181^4+181^3+181^2+181+1);
factor((182^5+182^4+182^3+182^2+182+1)*182^14+182^6+182^5+182^4+182^3+182^2+182+1);
factor((184^5+184^4+184^3+184^2+184+1)*184^14+184^6+184^5+184^4+184^3+184^2+184+1);
factor((185^5+185^4+185^3+185^2+185+1)*185^14+185^6+185^5+185^4+185^3+185^2+185+1);
factor((186^5+186^4+186^3+186^2+186+1)*186^14+186^6+186^5+186^4+186^3+186^2+186+1);
factor((187^5+187^4+187^3+187^2+187+1)*187^14+187^6+187^5+187^4+187^3+187^2+187+1);
factor((188^5+188^4+188^3+188^2+188+1)*188^14+188^6+188^5+188^4+188^3+188^2+188+1);
factor((190^5+190^4+190^3+190^2+190+1)*190^14+190^6+190^5+190^4+190^3+190^2+190+1);
factor((191^5+191^4+191^3+191^2+191+1)*191^14+191^6+191^5+191^4+191^3+191^2+191+1);
factor((192^5+192^4+192^3+192^2+192+1)*192^14+192^6+192^5+192^4+192^3+192^2+192+1);
factor((194^5+194^4+194^3+194^2+194+1)*194^14+194^6+194^5+194^4+194^3+194^2+194+1);
factor((195^5+195^4+195^3+195^2+195+1)*195^14+195^6+195^5+195^4+195^3+195^2+195+1);
factor((198^5+198^4+198^3+198^2+198+1)*198^14+198^6+198^5+198^4+198^3+198^2+198+1);
batch("a.bat");
read and interpret file: a.bat
2 3
4 5 6
(%i77) factor(1 + 100 + 100 + 100 + 100 + 100 + 100
2 3
4 5 14
+ (1 + 100 + 100 + 100 + 100 + 100 ) 100 )
(%o77) 217241 15579014025078107 29845787591798023
2 3
4 5 6
(%i78) factor(1 + 101 + 101 + 101 + 101 + 101 + 101
2 3
4 5 14
+ (1 + 101 + 101 + 101 + 101 + 101 ) 101 )
(%o78) 11177 10916972711343091619124196832440469
2 3
4 5 6
(%i79) factor(1 + 102 + 102 + 102 + 102 + 102 + 102
2 3
4 5 14
+ (1 + 102 + 102 + 102 + 102 + 102 ) 102 )
(%o79) 726951209738219 202384290143986460231801
2 3
4 5 6
(%i80) factor(1 + 103 + 103 + 103 + 103 + 103 + 103
2 3
4 5 14
+ (1 + 103 + 103 + 103 + 103 + 103 ) 103 )
(%o80) 383 475837 58638837731 16569217007891462809
2 3
4 5 6
(%i81) factor(1 + 104 + 104 + 104 + 104 + 104 + 104
2 3
4 5 14
+ (1 + 104 + 104 + 104 + 104 + 104 ) 104 )
(%o81) 606059 15743384143 22295466506275855775573
2 3
4 5 6
(%i82) factor(1 + 106 + 106 + 106 + 106 + 106 + 106
2 3
4 5 14
+ (1 + 106 + 106 + 106 + 106 + 106 ) 106 )
(%o82) 53003029 186157317634681 30956168681029987
2 3
4 5 6
(%i83) factor(1 + 107 + 107 + 107 + 107 + 107 + 107
2 3
4 5 14
+ (1 + 107 + 107 + 107 + 107 + 107 ) 107 )
(%o83) 139 1237 2123172050809949495706255376681543
2 3
4 5 6
(%i84) factor(1 + 109 + 109 + 109 + 109 + 109 + 109
2 3
4 5 14
+ (1 + 109 + 109 + 109 + 109 + 109 ) 109 )
(%o84) 7019 73931745682023795338744957940003479
2 3
4 5 6
(%i85) factor(1 + 110 + 110 + 110 + 110 + 110 + 110
2 3
4 5 14
+ (1 + 110 + 110 + 110 + 110 + 110 ) 110 )
(%o85) 83 6029 36299 5197289 18066852599 361867683257
2 3
4 5 6
(%i86) factor(1 + 111 + 111 + 111 + 111 + 111 + 111
2 3
4 5 14
+ (1 + 111 + 111 + 111 + 111 + 111 ) 111 )
(%o86) 761 6571057 94910732417 1544300010978085657
2 3
4 5 6
(%i87) factor(1 + 113 + 113 + 113 + 113 + 113 + 113
2 3
4 5 14
+ (1 + 113 + 113 + 113 + 113 + 113 ) 113 )
(%o87) 1028847121849807126767319462460778512269
素数ですね。
2 3
4 5 6
(%i88) factor(1 + 114 + 114 + 114 + 114 + 114 + 114
2 3
4 5 14
+ (1 + 114 + 114 + 114 + 114 + 114 ) 114 )
(%o88) 2699 335776640745173 1342039253511212001913
2 3
4 5 6
(%i89) factor(1 + 115 + 115 + 115 + 115 + 115 + 115
2 3
4 5 14
+ (1 + 115 + 115 + 115 + 115 + 115 ) 115 )
(%o89) 4818837733 297926855886353582147779146877
2 3
4 5 6
(%i90) factor(1 + 116 + 116 + 116 + 116 + 116 + 116
2 3
4 5 14
+ (1 + 116 + 116 + 116 + 116 + 116 ) 116 )
(%o90) 1771087 955480985658254916981360222483499
2 3
4 5 6
(%i91) factor(1 + 117 + 117 + 117 + 117 + 117 + 117
2 3
4 5 14
+ (1 + 117 + 117 + 117 + 117 + 117 ) 117 )
(%o91) 1991861996865572434808424078430522441309
素数ですね。
2 3
4 5 6
(%i92) factor(1 + 119 + 119 + 119 + 119 + 119 + 119
2 3
4 5 14
+ (1 + 119 + 119 + 119 + 119 + 119 ) 119 )
2
(%o92) 149 123789749390669957107696138850464201
2 3
4 5 6
(%i93) factor(1 + 120 + 120 + 120 + 120 + 120 + 120
2 3
4 5 14
+ (1 + 120 + 120 + 120 + 120 + 120 ) 120 )
(%o93) 157 603791 5580553169 6089959741472664053107
2 3
4 5 6
(%i94) factor(1 + 121 + 121 + 121 + 121 + 121 + 121
2 3
4 5 14
+ (1 + 121 + 121 + 121 + 121 + 121 ) 121 )
(%o94) 521 34537 9143689 105839565331 216587970888791
2 3
4 5 6
(%i95) factor(1 + 122 + 122 + 122 + 122 + 122 + 122
2 3
4 5 14
+ (1 + 122 + 122 + 122 + 122 + 122 ) 122 )
(%o95) 163 2237 3259 94771 147919 9193970153 28791930103
2 3
4 5 6
(%i96) factor(1 + 123 + 123 + 123 + 123 + 123 + 123
2 3
4 5 14
+ (1 + 123 + 123 + 123 + 123 + 123 ) 123 )
(%o96) 313 9967 707717 1959509097983 1190218483029109
2 3
4 5 6
(%i97) factor(1 + 127 + 127 + 127 + 127 + 127 + 127
2 3
4 5 14
+ (1 + 127 + 127 + 127 + 127 + 127 ) 127 )
(%o97) 9455921844483846834089367567522587885569
素数ですね。
2 3
4 5 6
(%i98) factor(1 + 128 + 128 + 128 + 128 + 128 + 128
2 3
4 5 14
+ (1 + 128 + 128 + 128 + 128 + 128 ) 128 )
(%o98) 10974776180376748296818309726402349383809
素数ですね。
2 3
4 5 6
(%i99) factor(1 + 130 + 130 + 130 + 130 + 130 + 130
2 3
4 5 14
+ (1 + 130 + 130 + 130 + 130 + 130 ) 130 )
(%o99) 10136974097 1453345931149623526373641073423
2 3
4 5 6
(%i100) factor(1 + 132 + 132 + 132 + 132 + 132 + 132
2 3
4 5 14
+ (1 + 132 + 132 + 132 + 132 + 132 ) 132 )
(%o100) 2381 60076896188279161 137638663177804032689
2 3
4 5 6
(%i101) factor(1 + 133 + 133 + 133 + 133 + 133 + 133
2 3
4 5 14
+ (1 + 133 + 133 + 133 + 133 + 133 ) 133 )
(%o101) 81047 94379 2970616389928925698750720397953
2 3
4 5 6
(%i102) factor(1 + 134 + 134 + 134 + 134 + 134 + 134
2 3
4 5 14
+ (1 + 134 + 134 + 134 + 134 + 134 ) 134 )
(%o102) 141519361 1003032493 184549751722938032955487
2 3
4 5 6
(%i103) factor(1 + 135 + 135 + 135 + 135 + 135 + 135
2 3
4 5 14
+ (1 + 135 + 135 + 135 + 135 + 135 ) 135 )
(%o103) 1787 34532611 4923027299 99308028123445309627
2 3
4 5 6
(%i104) factor(1 + 136 + 136 + 136 + 136 + 136 + 136
2 3
4 5 14
+ (1 + 136 + 136 + 136 + 136 + 136 ) 136 )
(%o104) 34709183617939117895199898911589256346313
素数ですね。
2 3
4 5 6
(%i105) factor(1 + 137 + 137 + 137 + 137 + 137 + 137
2 3
4 5 14
+ (1 + 137 + 137 + 137 + 137 + 137 ) 137 )
(%o105) 211 313 1457803 414330402890256136256886545701
2 3
4 5 6
(%i106) factor(1 + 138 + 138 + 138 + 138 + 138 + 138
2 3
4 5 14
+ (1 + 138 + 138 + 138 + 138 + 138 ) 138 )
(%o106) 547 10140799937 8256607119579313941653113421
2 3
4 5 6
(%i107) factor(1 + 142 + 142 + 142 + 142 + 142 + 142
2 3
4 5 14
+ (1 + 142 + 142 + 142 + 142 + 142 ) 142 )
(%o107) 1601 1345618727 559154342083 65418821890252399
2 3
4 5 6
(%i108) factor(1 + 145 + 145 + 145 + 145 + 145 + 145
2 3
4 5 14
+ (1 + 145 + 145 + 145 + 145 + 145 ) 145 )
(%o108) 574159 204157517316759275027077626886299619
2 3
4 5 6
(%i109) factor(1 + 147 + 147 + 147 + 147 + 147 + 147
2 3
4 5 14
+ (1 + 147 + 147 + 147 + 147 + 147 ) 147 )
(%o109) 5036933472479 30187533108948288755382656591
2 3
4 5 6
(%i110) factor(1 + 148 + 148 + 148 + 148 + 148 + 148
2 3
4 5 14
+ (1 + 148 + 148 + 148 + 148 + 148 ) 148 )
(%o110) 487 647 34511 15904725849741758326719620765851
2 3
4 5 6
(%i111) factor(1 + 149 + 149 + 149 + 149 + 149 + 149
2 3
4 5 14
+ (1 + 149 + 149 + 149 + 149 + 149 ) 149 )
(%o111) 75997 1833457 782920999169 1801683633817421201
2 3
4 5 6
(%i112) factor(1 + 150 + 150 + 150 + 150 + 150 + 150
2 3
4 5 14
+ (1 + 150 + 150 + 150 + 150 + 150 ) 150 )
(%o112) 277 349 3338523337 691479485660263571161259851
2 3
4 5 6
(%i113) factor(1 + 151 + 151 + 151 + 151 + 151 + 151
2 3
4 5 14
+ (1 + 151 + 151 + 151 + 151 + 151 ) 151 )
(%o113) 588734627233 430059065242565954995058432161
2 3
4 5 6
(%i114) factor(1 + 152 + 152 + 152 + 152 + 152 + 152
2 3
4 5 14
+ (1 + 152 + 152 + 152 + 152 + 152 ) 152 )
(%o114) 571 17377 248958090343 116187032114582766733549
2 3
4 5 6
(%i115) factor(1 + 153 + 153 + 153 + 153 + 153 + 153
2 3
4 5 14
+ (1 + 153 + 153 + 153 + 153 + 153 ) 153 )
(%o115) 14741 22052512768812413336136510191846199449
2 3
4 5 6
(%i116) factor(1 + 155 + 155 + 155 + 155 + 155 + 155
2 3
4 5 14
+ (1 + 155 + 155 + 155 + 155 + 155 ) 155 )
(%o116) 290701 1431089241513439022051199545052496981
2 3
4 5 6
(%i117) factor(1 + 156 + 156 + 156 + 156 + 156 + 156
2 3
4 5 14
+ (1 + 156 + 156 + 156 + 156 + 156 ) 156 )
(%o117) 32887 14293415238700358446238309314044688699
2 3
4 5 6
(%i118) factor(1 + 158 + 158 + 158 + 158 + 158 + 158
2 3
4 5 14
+ (1 + 158 + 158 + 158 + 158 + 158 ) 158 )
(%o118) 266009 5631883541183 399661294249623720735037
2 3
4 5 6
(%i119) factor(1 + 159 + 159 + 159 + 159 + 159 + 159
2 3
4 5 14
+ (1 + 159 + 159 + 159 + 159 + 159 ) 159 )
(%o119) 1706657 2926471003 135143427045740367472076531
2 3
4 5 6
(%i120) factor(1 + 160 + 160 + 160 + 160 + 160 + 160
2 3
4 5 14
+ (1 + 160 + 160 + 160 + 160 + 160 ) 160 )
(%o120) 389 254731 6030053363558897 1272477088633333207
2 3
4 5 6
(%i121) factor(1 + 161 + 161 + 161 + 161 + 161 + 161
2 3
4 5 14
+ (1 + 161 + 161 + 161 + 161 + 161 ) 161 )
(%o121) 13693590089 1080805764457 57827253008861449181
2 3
4 5 6
(%i122) factor(1 + 164 + 164 + 164 + 164 + 164 + 164
2 3
4 5 14
+ (1 + 164 + 164 + 164 + 164 + 164 ) 164 )
(%o122) 271 7569181 592476562722263608131424787258551
2 3
4 5 6
(%i123) factor(1 + 165 + 165 + 165 + 165 + 165 + 165
2 3
4 5 14
+ (1 + 165 + 165 + 165 + 165 + 165 ) 165 )
(%o123) 419 12893 324997 249112247 3118836437178987872297
2 3
4 5 6
(%i124) factor(1 + 167 + 167 + 167 + 167 + 167 + 167
2 3
4 5 14
+ (1 + 167 + 167 + 167 + 167 + 167 ) 167 )
(%o124) 226094768146278079357 7584567522839552425237
2 3
4 5 6
(%i125) factor(1 + 168 + 168 + 168 + 168 + 168 + 168
2 3
4 5 14
+ (1 + 168 + 168 + 168 + 168 + 168 ) 168 )
(%o125) 6907 1577231 1461569561 120632662481358292604077
2 3
4 5 6
(%i126) factor(1 + 171 + 171 + 171 + 171 + 171 + 171
2 3
4 5 14
+ (1 + 171 + 171 + 171 + 171 + 171 ) 171 )
(%o126) 948319747493 2834774335280946960286979111741
2 3
4 5 6
(%i127) factor(1 + 172 + 172 + 172 + 172 + 172 + 172
2 3
4 5 14
+ (1 + 172 + 172 + 172 + 172 + 172 ) 172 )
(%o127) 2663 38241251 158174366837 186437583653204144069
2 3
4 5 6
(%i128) factor(1 + 173 + 173 + 173 + 173 + 173 + 173
2 3
4 5 14
+ (1 + 173 + 173 + 173 + 173 + 173 ) 173 )
(%o128) 1193 2163045840488786483 1299234213701506203991
2 3
4 5 6
(%i129) factor(1 + 174 + 174 + 174 + 174 + 174 + 174
2 3
4 5 14
+ (1 + 174 + 174 + 174 + 174 + 174 ) 174 )
(%o129) 2216692663 1687459579253640164141920502692477
2 3
4 5 6
(%i130) factor(1 + 176 + 176 + 176 + 176 + 176 + 176
2 3
4 5 14
+ (1 + 176 + 176 + 176 + 176 + 176 ) 176 )
(%o130) 1327 1323253 153757825483 17213305201103458514281
2 3
4 5 6
(%i131) factor(1 + 178 + 178 + 178 + 178 + 178 + 178
2 3
4 5 14
+ (1 + 178 + 178 + 178 + 178 + 178 ) 178 )
(%o131) 15647 9498197 55768276741 694971987160128861961
2 3
4 5 6
(%i132) factor(1 + 179 + 179 + 179 + 179 + 179 + 179
2 3
4 5 14
+ (1 + 179 + 179 + 179 + 179 + 179 ) 179 )
(%o132) 487 13155630168275691109143644309286262175623
2 3
4 5 6
(%i133) factor(1 + 181 + 181 + 181 + 181 + 181 + 181
2 3
4 5 14
+ (1 + 181 + 181 + 181 + 181 + 181 ) 181 )
(%o133) 88819119197 89082527429091784877114418876929
2 3
4 5 6
(%i134) factor(1 + 182 + 182 + 182 + 182 + 182 + 182
2 3
4 5 14
+ (1 + 182 + 182 + 182 + 182 + 182 ) 182 )
(%o134) 8785150074392087389846974817291721773782499
素数ですね。
2 3
4 5 6
(%i135) factor(1 + 184 + 184 + 184 + 184 + 184 + 184
2 3
4 5 14
+ (1 + 184 + 184 + 184 + 184 + 184 ) 184 )
(%o135) 5712980876510378249 1892529248597767084033649
2 3
4 5 6
(%i136) factor(1 + 185 + 185 + 185 + 185 + 185 + 185
2 3
4 5 14
+ (1 + 185 + 185 + 185 + 185 + 185 ) 185 )
(%o136) 64399 186096249844019414032317745673622379939
2 3
4 5 6
(%i137) factor(1 + 186 + 186 + 186 + 186 + 186 + 186
2 3
4 5 14
+ (1 + 186 + 186 + 186 + 186 + 186 ) 186 )
(%o137) 12596681 4987526143 211322548461761358087856961
2 3
4 5 6
(%i138) factor(1 + 187 + 187 + 187 + 187 + 187 + 187
2 3
4 5 14
+ (1 + 187 + 187 + 187 + 187 + 187 ) 187 )
(%o138) 664789 2589082965670237 8540619907190779773553
2 3
4 5 6
(%i139) factor(1 + 188 + 188 + 188 + 188 + 188 + 188
2 3
4 5 14
+ (1 + 188 + 188 + 188 + 188 + 188 ) 188 )
(%o139) 109 73727 824390717 2263489981 1084802429039914279
2 3
4 5 6
(%i140) factor(1 + 190 + 190 + 190 + 190 + 190 + 190
2 3
4 5 14
+ (1 + 190 + 190 + 190 + 190 + 190 ) 190 )
(%o140) 359 130096345369 425844134426309255696318680421
2 3
4 5 6
(%i141) factor(1 + 191 + 191 + 191 + 191 + 191 + 191
2 3
4 5 14
+ (1 + 191 + 191 + 191 + 191 + 191 ) 191 )
(%o141) 283 1019 2239 34032905741265610963622570871889271
2 3
4 5 6
(%i142) factor(1 + 192 + 192 + 192 + 192 + 192 + 192
2 3
4 5 14
+ (1 + 192 + 192 + 192 + 192 + 192 ) 192 )
(%o142) 229 1146517063216151729 92421965855748038389949
2 3
4 5 6
(%i143) factor(1 + 194 + 194 + 194 + 194 + 194 + 194
2 3
4 5 14
+ (1 + 194 + 194 + 194 + 194 + 194 ) 194 )
(%o143) 2377 22351745467 556079217849521221566345193189
2 3
4 5 6
(%i144) factor(1 + 195 + 195 + 195 + 195 + 195 + 195
2 3
4 5 14
+ (1 + 195 + 195 + 195 + 195 + 195 ) 195 )
(%o144) 14269991 58605674711 38951763788094783197919121
2 3
4 5 6
(%i145) factor(1 + 198 + 198 + 198 + 198 + 198 + 198
2 3
4 5 14
+ (1 + 198 + 198 + 198 + 198 + 198 ) 198 )
(%o145) 263 29243 5660566623759764945596863756221022031
(%o145)
a.bat
(%i146)
b.txtに追加されるものは、
383,103
139,107
83,110
761,111
149,119
157,120
521,121
163,122
313,123
211,137
313,137
547,138
487,148
647,148
277,150
349,150
571,152
389,160
271,164
419,165
487,179
109,188
339,190
283,191
229,192
263,198
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
223n+3
733n+3
59n+6
83n+9
17n+10
79n+11
113n+11
607n+12
829n+12
13n+14
37n+14
23n+16
37n+18
419n+18
937n+18
61n+19
107n+19
283n+21
619n+26
97n+28
487n+29
613n+30
53n+34
109n+34
521n+34
113n+41
269n+41
389n+43
173n+46
89n+50
317n+58
641n+58
863n+64
199n+69
163n+70
569n+72
307n+75
173n+77
317n+77
373n+83
103n+86
229n+86
53n+87
733n+93
191n+94
383n+103
139n+107
83n+110
761n+111
149n+119
157n+120
521n+121
163n+122
313n+123
211n+137
313n+137
547n+138
487n+148
647n+148
277n+150
349n+150
571n+152
389n+160
271n+164
419n+165
487n+179
109n+188
339n+190
283n+191
229n+192
263n+198
b.txt read! 71 個
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
200=23x8+16
!!! 201 !!!
202=61x3+19
203=37x5+18
!!! 204 !!!
!!! 205 !!!
!!! 206 !!!
!!! 207 !!!
!!! 208 !!!
209=13x15+14
!!! 210 !!!
!!! 211 !!!
!!! 212 !!!
!!! 213 !!!
214=17x12+10
!!! 215 !!!
!!! 216 !!!
!!! 217 !!!
!!! 218 !!!
219=173x1+46
!!! 220 !!!
!!! 221 !!!
222=13x16+14
222=97x2+28
223=23x9+16
!!! 224 !!!
!!! 225 !!!
226=223x1+3
!!! 227 !!!
228=89x2+50
!!! 229 !!!
!!! 230 !!!
231=17x13+10
!!! 232 !!!
233=107x2+19
233=163x1+70
!!! 234 !!!
235=13x17+14
236=37x6+14
237=113x2+11
!!! 238 !!!
!!! 239 !!!
240=37x6+18
!!! 241 !!!
242=59x4+6
!!! 243 !!!
!!! 244 !!!
!!! 245 !!!
246=23x10+16
246=53x4+34
246=53x3+87
246=139x1+107
!!! 247 !!!
248=17x14+10
248=79x3+11
248=13x18+14
!!! 249 !!!
250=173x1+77
!!! 251 !!!
252=109x2+34
!!! 253 !!!
!!! 254 !!!
!!! 255 !!!
!!! 256 !!!
!!! 257 !!!
258=83x3+9
!!! 259 !!!
!!! 260 !!!
261=13x19+14
!!! 262 !!!
263=61x4+19
!!! 264 !!!
265=17x15+10
!!! 266 !!!
267=113x2+41
268=199x1+69
268=149x1+119
269=23x11+16
!!! 270 !!!
!!! 271 !!!
!!! 272 !!!
273=37x7+14
274=13x20+14
!!! 275 !!!
276=83x2+110
277=37x7+18
277=157x1+120
!!! 278 !!!
!!! 279 !!!
!!! 280 !!!
!!! 281 !!!
282=17x16+10
!!! 283 !!!
!!! 284 !!!
285=191x1+94
285=163x1+122
!!! 286 !!!
287=13x21+14
!!! 288 !!!
!!! 289 !!!
!!! 290 !!!
!!! 291 !!!
292=23x12+16
292=103x2+86
!!! 293 !!!
!!! 294 !!!
!!! 295 !!!
!!! 296 !!!
297=109x1+188
!!! 298 !!!
299=17x17+10
299=53x5+34
299=53x4+87
factor((201^5+201^4+201^3+201^2+201+1)*201^14+201^6+201^5+201^4+201^3+201^2+201+1);
factor((204^5+204^4+204^3+204^2+204+1)*204^14+204^6+204^5+204^4+204^3+204^2+204+1);
factor((205^5+205^4+205^3+205^2+205+1)*205^14+205^6+205^5+205^4+205^3+205^2+205+1);
factor((206^5+206^4+206^3+206^2+206+1)*206^14+206^6+206^5+206^4+206^3+206^2+206+1);
factor((207^5+207^4+207^3+207^2+207+1)*207^14+207^6+207^5+207^4+207^3+207^2+207+1);
factor((208^5+208^4+208^3+208^2+208+1)*208^14+208^6+208^5+208^4+208^3+208^2+208+1);
factor((210^5+210^4+210^3+210^2+210+1)*210^14+210^6+210^5+210^4+210^3+210^2+210+1);
factor((211^5+211^4+211^3+211^2+211+1)*211^14+211^6+211^5+211^4+211^3+211^2+211+1);
factor((212^5+212^4+212^3+212^2+212+1)*212^14+212^6+212^5+212^4+212^3+212^2+212+1);
factor((213^5+213^4+213^3+213^2+213+1)*213^14+213^6+213^5+213^4+213^3+213^2+213+1);
factor((215^5+215^4+215^3+215^2+215+1)*215^14+215^6+215^5+215^4+215^3+215^2+215+1);
factor((216^5+216^4+216^3+216^2+216+1)*216^14+216^6+216^5+216^4+216^3+216^2+216+1);
factor((217^5+217^4+217^3+217^2+217+1)*217^14+217^6+217^5+217^4+217^3+217^2+217+1);
factor((218^5+218^4+218^3+218^2+218+1)*218^14+218^6+218^5+218^4+218^3+218^2+218+1);
factor((220^5+220^4+220^3+220^2+220+1)*220^14+220^6+220^5+220^4+220^3+220^2+220+1);
factor((221^5+221^4+221^3+221^2+221+1)*221^14+221^6+221^5+221^4+221^3+221^2+221+1);
factor((224^5+224^4+224^3+224^2+224+1)*224^14+224^6+224^5+224^4+224^3+224^2+224+1);
factor((225^5+225^4+225^3+225^2+225+1)*225^14+225^6+225^5+225^4+225^3+225^2+225+1);
factor((227^5+227^4+227^3+227^2+227+1)*227^14+227^6+227^5+227^4+227^3+227^2+227+1);
factor((229^5+229^4+229^3+229^2+229+1)*229^14+229^6+229^5+229^4+229^3+229^2+229+1);
factor((230^5+230^4+230^3+230^2+230+1)*230^14+230^6+230^5+230^4+230^3+230^2+230+1);
factor((232^5+232^4+232^3+232^2+232+1)*232^14+232^6+232^5+232^4+232^3+232^2+232+1);
factor((234^5+234^4+234^3+234^2+234+1)*234^14+234^6+234^5+234^4+234^3+234^2+234+1);
factor((238^5+238^4+238^3+238^2+238+1)*238^14+238^6+238^5+238^4+238^3+238^2+238+1);
factor((239^5+239^4+239^3+239^2+239+1)*239^14+239^6+239^5+239^4+239^3+239^2+239+1);
factor((241^5+241^4+241^3+241^2+241+1)*241^14+241^6+241^5+241^4+241^3+241^2+241+1);
factor((243^5+243^4+243^3+243^2+243+1)*243^14+243^6+243^5+243^4+243^3+243^2+243+1);
factor((244^5+244^4+244^3+244^2+244+1)*244^14+244^6+244^5+244^4+244^3+244^2+244+1);
factor((245^5+245^4+245^3+245^2+245+1)*245^14+245^6+245^5+245^4+245^3+245^2+245+1);
factor((247^5+247^4+247^3+247^2+247+1)*247^14+247^6+247^5+247^4+247^3+247^2+247+1);
factor((249^5+249^4+249^3+249^2+249+1)*249^14+249^6+249^5+249^4+249^3+249^2+249+1);
factor((251^5+251^4+251^3+251^2+251+1)*251^14+251^6+251^5+251^4+251^3+251^2+251+1);
factor((253^5+253^4+253^3+253^2+253+1)*253^14+253^6+253^5+253^4+253^3+253^2+253+1);
factor((254^5+254^4+254^3+254^2+254+1)*254^14+254^6+254^5+254^4+254^3+254^2+254+1);
factor((255^5+255^4+255^3+255^2+255+1)*255^14+255^6+255^5+255^4+255^3+255^2+255+1);
factor((256^5+256^4+256^3+256^2+256+1)*256^14+256^6+256^5+256^4+256^3+256^2+256+1);
factor((257^5+257^4+257^3+257^2+257+1)*257^14+257^6+257^5+257^4+257^3+257^2+257+1);
factor((259^5+259^4+259^3+259^2+259+1)*259^14+259^6+259^5+259^4+259^3+259^2+259+1);
factor((260^5+260^4+260^3+260^2+260+1)*260^14+260^6+260^5+260^4+260^3+260^2+260+1);
factor((262^5+262^4+262^3+262^2+262+1)*262^14+262^6+262^5+262^4+262^3+262^2+262+1);
factor((264^5+264^4+264^3+264^2+264+1)*264^14+264^6+264^5+264^4+264^3+264^2+264+1);
factor((266^5+266^4+266^3+266^2+266+1)*266^14+266^6+266^5+266^4+266^3+266^2+266+1);
factor((270^5+270^4+270^3+270^2+270+1)*270^14+270^6+270^5+270^4+270^3+270^2+270+1);
factor((271^5+271^4+271^3+271^2+271+1)*271^14+271^6+271^5+271^4+271^3+271^2+271+1);
factor((272^5+272^4+272^3+272^2+272+1)*272^14+272^6+272^5+272^4+272^3+272^2+272+1);
factor((275^5+275^4+275^3+275^2+275+1)*275^14+275^6+275^5+275^4+275^3+275^2+275+1);
factor((278^5+278^4+278^3+278^2+278+1)*278^14+278^6+278^5+278^4+278^3+278^2+278+1);
factor((279^5+279^4+279^3+279^2+279+1)*279^14+279^6+279^5+279^4+279^3+279^2+279+1);
factor((280^5+280^4+280^3+280^2+280+1)*280^14+280^6+280^5+280^4+280^3+280^2+280+1);
factor((281^5+281^4+281^3+281^2+281+1)*281^14+281^6+281^5+281^4+281^3+281^2+281+1);
factor((283^5+283^4+283^3+283^2+283+1)*283^14+283^6+283^5+283^4+283^3+283^2+283+1);
factor((284^5+284^4+284^3+284^2+284+1)*284^14+284^6+284^5+284^4+284^3+284^2+284+1);
factor((286^5+286^4+286^3+286^2+286+1)*286^14+286^6+286^5+286^4+286^3+286^2+286+1);
factor((288^5+288^4+288^3+288^2+288+1)*288^14+288^6+288^5+288^4+288^3+288^2+288+1);
factor((289^5+289^4+289^3+289^2+289+1)*289^14+289^6+289^5+289^4+289^3+289^2+289+1);
factor((290^5+290^4+290^3+290^2+290+1)*290^14+290^6+290^5+290^4+290^3+290^2+290+1);
factor((291^5+291^4+291^3+291^2+291+1)*291^14+291^6+291^5+291^4+291^3+291^2+291+1);
factor((293^5+293^4+293^3+293^2+293+1)*293^14+293^6+293^5+293^4+293^3+293^2+293+1);
factor((294^5+294^4+294^3+294^2+294+1)*294^14+294^6+294^5+294^4+294^3+294^2+294+1);
factor((295^5+295^4+295^3+295^2+295+1)*295^14+295^6+295^5+295^4+295^3+295^2+295+1);
factor((296^5+296^4+296^3+296^2+296+1)*296^14+296^6+296^5+296^4+296^3+296^2+296+1);
factor((298^5+298^4+298^3+298^2+298+1)*298^14+298^6+298^5+298^4+298^3+298^2+298+1);
(%i146) batch("a.bat");
read and interpret file: a.bat
2 3
4 5 6
(%i147) factor(1 + 201 + 201 + 201 + 201 + 201 + 201
2 3
4 5 14
+ (1 + 201 + 201 + 201 + 201 + 201 ) 201 )
(%o147) 50889901 21478316974438189 52997977858637654917
2 3
4 5 6
(%i148) factor(1 + 204 + 204 + 204 + 204 + 204 + 204
2 3
4 5 14
+ (1 + 204 + 204 + 204 + 204 + 204 ) 204 )
(%o148) 7452069491042333 10299838487047329753776279297
2 3
4 5 6
(%i149) factor(1 + 205 + 205 + 205 + 205 + 205 + 205
2 3
4 5 14
+ (1 + 205 + 205 + 205 + 205 + 205 ) 205 )
(%o149) 397 5897 57793 3624134671 171769421366887011572903
2 3
4 5 6
(%i150) factor(1 + 206 + 206 + 206 + 206 + 206 + 206
2 3
4 5 14
+ (1 + 206 + 206 + 206 + 206 + 206 ) 206 )
(%o150) 619 2012713953113 74151141314549410213006059929
2 3
4 5 6
(%i151) factor(1 + 207 + 207 + 207 + 207 + 207 + 207
2 3
4 5 14
+ (1 + 207 + 207 + 207 + 207 + 207 ) 207 )
(%o151) 24970823 4056082991391061367340488003807660663
2 3
4 5 6
(%i152) factor(1 + 208 + 208 + 208 + 208 + 208 + 208
2 3
4 5 14
+ (1 + 208 + 208 + 208 + 208 + 208 ) 208 )
(%o152) 3167 802073 1887773 23146462308905672656111515923
2 3
4 5 6
(%i153) factor(1 + 210 + 210 + 210 + 210 + 210 + 210
2 3
4 5 14
+ (1 + 210 + 210 + 210 + 210 + 210 ) 210 )
(%o153) 353 377107268453513025356498474445286618938287
2 3
4 5 6
(%i154) factor(1 + 211 + 211 + 211 + 211 + 211 + 211
2 3
4 5 14
+ (1 + 211 + 211 + 211 + 211 + 211 ) 211 )
(%o154) 13807 90140690137 212136669271 551815457487590017
2 3
4 5 6
(%i155) factor(1 + 212 + 212 + 212 + 212 + 212 + 212
2 3
4 5 14
+ (1 + 212 + 212 + 212 + 212 + 212 ) 212 )
(%o155) 2023346426147 78770665861678351267815112282007
2 3
4 5 6
(%i156) factor(1 + 213 + 213 + 213 + 213 + 213 + 213
2 3
4 5 14
+ (1 + 213 + 213 + 213 + 213 + 213 ) 213 )
(%o156) 3089 3491 4373 17691253231 208905740650353460468637
2 3
4 5 6
(%i157) factor(1 + 215 + 215 + 215 + 215 + 215 + 215
2 3
4 5 14
+ (1 + 215 + 215 + 215 + 215 + 215 ) 215 )
(%o157) 13177 214663 73583710657824934186257356390404591
2 3
4 5 6
(%i158) factor(1 + 216 + 216 + 216 + 216 + 216 + 216
2 3
4 5 14
+ (1 + 216 + 216 + 216 + 216 + 216 ) 216 )
(%o158) 9957973 3258886611581 7004810141394230567906201
2 3
4 5 6
(%i159) factor(1 + 217 + 217 + 217 + 217 + 217 + 217
2 3
4 5 14
+ (1 + 217 + 217 + 217 + 217 + 217 ) 217 )
(%o159) 1381 161387 51246641 21727676880620555562320113867
2 3
4 5 6
(%i160) factor(1 + 218 + 218 + 218 + 218 + 218 + 218
2 3
4 5 14
+ (1 + 218 + 218 + 218 + 218 + 218 ) 218 )
(%o160) 7561 23227744105457 1541998201977012182633247887
2 3
4 5 6
(%i161) factor(1 + 220 + 220 + 220 + 220 + 220 + 220
2 3
4 5 14
+ (1 + 220 + 220 + 220 + 220 + 220 ) 220 )
(%o161) 15141797038957 21273163648415197166685303346753
2 3
4 5 6
(%i162) factor(1 + 221 + 221 + 221 + 221 + 221 + 221
2 3
4 5 14
+ (1 + 221 + 221 + 221 + 221 + 221 ) 221 )
(%o162) 251 28151720673106601 49687154564566859630849263
2 3
4 5 6
(%i163) factor(1 + 224 + 224 + 224 + 224 + 224 + 224
2 3
4 5 14
+ (1 + 224 + 224 + 224 + 224 + 224 ) 224 )
(%o163) 1907 6563 128588303 281838904072203276259581009287
2 3
4 5 6
(%i164) factor(1 + 225 + 225 + 225 + 225 + 225 + 225
2 3
4 5 14
+ (1 + 225 + 225 + 225 + 225 + 225 ) 225 )
(%o164) 1667 9431 721594898403499 43512651167653639881787
2 3
4 5 6
(%i165) factor(1 + 227 + 227 + 227 + 227 + 227 + 227
2 3
4 5 14
+ (1 + 227 + 227 + 227 + 227 + 227 ) 227 )
(%o165) 583994429704692283925316064985577279827193169
素数ですね。
2 3
4 5 6
(%i166) factor(1 + 229 + 229 + 229 + 229 + 229 + 229
2 3
4 5 14
+ (1 + 229 + 229 + 229 + 229 + 229 ) 229 )
(%o166) 487102094683 1416298524251375664896733732788647
2 3
4 5 6
(%i167) factor(1 + 230 + 230 + 230 + 230 + 230 + 230
2 3
4 5 14
+ (1 + 230 + 230 + 230 + 230 + 230 ) 230 )
(%o167) 457 573205427 4839769049383 591112449920901833663
2 3
4 5 6
(%i168) factor(1 + 232 + 232 + 232 + 232 + 232 + 232
2 3
4 5 14
+ (1 + 232 + 232 + 232 + 232 + 232 ) 232 )
(%o168) 883380316205139837907431106590332098571595049
素数ですね。
2 3
4 5 6
(%i169) factor(1 + 234 + 234 + 234 + 234 + 234 + 234
2 3
4 5 14
+ (1 + 234 + 234 + 234 + 234 + 234 ) 234 )
(%o169) 401 1409467 1839763262744761196369034163720809653
2 3
4 5 6
(%i170) factor(1 + 238 + 238 + 238 + 238 + 238 + 238
2 3
4 5 14
+ (1 + 238 + 238 + 238 + 238 + 238 ) 238 )
(%o170) 36091337 39754639938579368677010309545535269187
2 3
4 5 6
(%i171) factor(1 + 239 + 239 + 239 + 239 + 239 + 239
2 3
4 5 14
+ (1 + 239 + 239 + 239 + 239 + 239 ) 239 )
(%o171) 4943 272933 1088807 4680001 226015150584953709129797
2 3
4 5 6
(%i172) factor(1 + 241 + 241 + 241 + 241 + 241 + 241
2 3
4 5 14
+ (1 + 241 + 241 + 241 + 241 + 241 ) 241 )
(%o172) 1660507 14302467041 2782372686619 27546259979818421
2 3
4 5 6
(%i173) factor(1 + 243 + 243 + 243 + 243 + 243 + 243
2 3
4 5 14
+ (1 + 243 + 243 + 243 + 243 + 243 ) 243 )
(%o173) 2129659176578548875541141060016818135021572049
素数ですね。
2 3
4 5 6
(%i174) factor(1 + 244 + 244 + 244 + 244 + 244 + 244
2 3
4 5 14
+ (1 + 244 + 244 + 244 + 244 + 244 ) 244 )
(%o174) 2302450240390736597314228609683829513065768901
素数ですね。
2 3
4 5 6
(%i175) factor(1 + 245 + 245 + 245 + 245 + 245 + 245
2 3
4 5 14
+ (1 + 245 + 245 + 245 + 245 + 245 ) 245 )
(%o175) 2488466857264862117846714190134085235078717021
素数ですね。
2 3
4 5 6
(%i176) factor(1 + 247 + 247 + 247 + 247 + 247 + 247
2 3
4 5 14
+ (1 + 247 + 247 + 247 + 247 + 247 ) 247 )
(%o176) 24496242751 83733632632061 1415808607359671731499
2 3
4 5 6
(%i177) factor(1 + 249 + 249 + 249 + 249 + 249 + 249
2 3
4 5 14
+ (1 + 249 + 249 + 249 + 249 + 249 ) 249 )
(%o177) 5531 10639 3657761 148304253887249 106038081195879401
2 3
4 5 6
(%i178) factor(1 + 251 + 251 + 251 + 251 + 251 + 251
2 3
4 5 14
+ (1 + 251 + 251 + 251 + 251 + 251 ) 251 )
(%o178) 4931 83437 242736233 39455370871939091931026640463
2 3
4 5 6
(%i179) factor(1 + 253 + 253 + 253 + 253 + 253 + 253
2 3
4 5 14
+ (1 + 253 + 253 + 253 + 253 + 253 ) 253 )
(%o179) 128599 908857 39199157666936468372470788468520963
2 3
4 5 6
(%i180) factor(1 + 254 + 254 + 254 + 254 + 254 + 254
2 3
4 5 14
+ (1 + 254 + 254 + 254 + 254 + 254 ) 254 )
(%o180) 20436967731497226773 241622488022837434561293887
2 3
4 5 6
(%i181) factor(1 + 255 + 255 + 255 + 255 + 255 + 255
2 3
4 5 14
+ (1 + 255 + 255 + 255 + 255 + 255 ) 255 )
(%o181) 131 15443 132150517 19902061248173024982626479798021
2 3
4 5 6
(%i182) factor(1 + 256 + 256 + 256 + 256 + 256 + 256
2 3
4 5 14
+ (1 + 256 + 256 + 256 + 256 + 256 ) 256 )
(%o182) 69607819 82338148964631245251388215221588238627
2 3
4 5 6
(%i183) factor(1 + 257 + 257 + 257 + 257 + 257 + 257
2 3
4 5 14
+ (1 + 257 + 257 + 257 + 257 + 257 ) 257 )
(%o183) 471283 931794593 14054666378237485748635151482271
2 3
4 5 6
(%i184) factor(1 + 259 + 259 + 259 + 259 + 259 + 259
2 3
4 5 14
+ (1 + 259 + 259 + 259 + 259 + 259 ) 259 )
(%o184) 881 5081 189997 97430363 117962676857 731584994193583
2 3
4 5 6
(%i185) factor(1 + 260 + 260 + 260 + 260 + 260 + 260
2 3
4 5 14
+ (1 + 260 + 260 + 260 + 260 + 260 ) 260 )
(%o185) 7806424992821085879697 985632474504280968737413
2 3
4 5 6
(%i186) factor(1 + 262 + 262 + 262 + 262 + 262 + 262
2 3
4 5 14
+ (1 + 262 + 262 + 262 + 262 + 262 ) 262 )
(%o186) 42937 207278196840425157843474309293536512779467
2 3
4 5 6
(%i187) factor(1 + 264 + 264 + 264 + 264 + 264 + 264
2 3
4 5 14
+ (1 + 264 + 264 + 264 + 264 + 264 ) 264 )
(%o187) 98299 104610117318252932644026468802437444457099
2 3
4 5 6
(%i188) factor(1 + 266 + 266 + 266 + 266 + 266 + 266
2 3
4 5 14
+ (1 + 266 + 266 + 266 + 266 + 266 ) 266 )
(%o188) 1597 4243 2848633 614854576183876005277359635132041
2 3
4 5 6
(%i189) factor(1 + 270 + 270 + 270 + 270 + 270 + 270
2 3
4 5 14
+ (1 + 270 + 270 + 270 + 270 + 270 ) 270 )
(%o189) 15758794897849849106061450441874288860713866171
素数ですね。
2 3
4 5 6
(%i190) factor(1 + 271 + 271 + 271 + 271 + 271 + 271
2 3
4 5 14
+ (1 + 271 + 271 + 271 + 271 + 271 ) 271 )
(%o190) 546062104531 30958507463214951810016267245964123
2 3
4 5 6
(%i191) factor(1 + 272 + 272 + 272 + 272 + 272 + 272
2 3
4 5 14
+ (1 + 272 + 272 + 272 + 272 + 272 ) 272 )
(%o191) 1647649 740820191 14853584807498306949162520737071
2 3
4 5 6
(%i192) factor(1 + 275 + 275 + 275 + 275 + 275 + 275
2 3
4 5 14
+ (1 + 275 + 275 + 275 + 275 + 275 ) 275 )
(%o192) 1996728630055421179 11183668067444931207582234019
2 3
4 5 6
(%i193) factor(1 + 278 + 278 + 278 + 278 + 278 + 278
2 3
4 5 14
+ (1 + 278 + 278 + 278 + 278 + 278 ) 278 )
(%o193) 6343 21503 2636873 470885090639 162038505809097297293
2 3
4 5 6
(%i194) factor(1 + 279 + 279 + 279 + 279 + 279 + 279
2 3
4 5 14
+ (1 + 279 + 279 + 279 + 279 + 279 ) 279 )
(%o194) 4177586797346749 7032565529203921861571299611349
2 3
4 5 6
(%i195) factor(1 + 280 + 280 + 280 + 280 + 280 + 280
2 3
4 5 14
+ (1 + 280 + 280 + 280 + 280 + 280 ) 280 )
(%o195) 1291 252913 324361 6681979 142414109 312012701679495917
2 3
4 5 6
(%i196) factor(1 + 281 + 281 + 281 + 281 + 281 + 281
2 3
4 5 14
+ (1 + 281 + 281 + 281 + 281 + 281 ) 281 )
(%o196) 33648705936161882731797517652477051918157504013
素数ですね。
2 3
4 5 6
(%i197) factor(1 + 283 + 283 + 283 + 283 + 283 + 283
2 3
4 5 14
+ (1 + 283 + 283 + 283 + 283 + 283 ) 283 )
(%o197) 53696771 5226871665937 137179619664625244361456107
2 3
4 5 6
(%i198) factor(1 + 284 + 284 + 284 + 284 + 284 + 284
2 3
4 5 14
+ (1 + 284 + 284 + 284 + 284 + 284 ) 284 )
(%o198) 84083600332411550001881 489631180024134187757621
2 3
4 5 6
(%i199) factor(1 + 286 + 286 + 286 + 286 + 286 + 286
2 3
4 5 14
+ (1 + 286 + 286 + 286 + 286 + 286 ) 286 )
(%o199) 863 26386030213 2065812740250737699373893285050577
2 3
4 5 6
(%i200) factor(1 + 288 + 288 + 288 + 288 + 288 + 288
2 3
4 5 14
+ (1 + 288 + 288 + 288 + 288 + 288 ) 288 )
(%o200) 601 89349759208215697020141539190206667599196169
2 3
4 5 6
(%i201) factor(1 + 289 + 289 + 289 + 289 + 289 + 289
2 3
4 5 14
+ (1 + 289 + 289 + 289 + 289 + 289 ) 289 )
(%o201) 4013 4001710211 3571491099789204346927440843663307
2 3
4 5 6
(%i202) factor(1 + 290 + 290 + 290 + 290 + 290 + 290
2 3
4 5 14
+ (1 + 290 + 290 + 290 + 290 + 290 ) 290 )
(%o202) 1711207 73811539937 484881149912919938689987876649
2 3
4 5 6
(%i203) factor(1 + 291 + 291 + 291 + 291 + 291 + 291
2 3
4 5 14
+ (1 + 291 + 291 + 291 + 291 + 291 ) 291 )
(%o203) 266921 2408279 2810707 36187340314028845356663651301
2 3
4 5 6
(%i204) factor(1 + 293 + 293 + 293 + 293 + 293 + 293
2 3
4 5 14
+ (1 + 293 + 293 + 293 + 293 + 293 ) 293 )
(%o204) 4157 17913874656494063425123521681862083051108257
2 3
4 5 6
(%i205) factor(1 + 294 + 294 + 294 + 294 + 294 + 294
2 3
4 5 14
+ (1 + 294 + 294 + 294 + 294 + 294 ) 294 )
(%o205) 449 30646219 73758241 78278986681187301086636244281
2 3
4 5 6
(%i206) factor(1 + 295 + 295 + 295 + 295 + 295 + 295
2 3
4 5 14
+ (1 + 295 + 295 + 295 + 295 + 295 ) 295 )
(%o206) 8867 361642027 58992435881 447961878041573085481849
2 3
4 5 6
(%i207) factor(1 + 296 + 296 + 296 + 296 + 296 + 296
2 3
4 5 14
+ (1 + 296 + 296 + 296 + 296 + 296 ) 296 )
(%o207) 90367486980387076043429885205800563796064510313
素数ですね。
2 3
4 5 6
(%i208) factor(1 + 298 + 298 + 298 + 298 + 298 + 298
2 3
4 5 14
+ (1 + 298 + 298 + 298 + 298 + 298 ) 298 )
(%o208) 102699618946613699799004627670375651792128786279
素数ですね。
(%o208)
a.bat
(%i209)
b.txtに追加されるものは、
397,205
619,206
353,210
251,221
457,230
401,234
131,255
881,259
863,286
601,288
449,294
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
223n+3
733n+3
59n+6
83n+9
17n+10
79n+11
113n+11
607n+12
829n+12
13n+14
37n+14
23n+16
37n+18
419n+18
937n+18
61n+19
107n+19
283n+21
619n+26
97n+28
487n+29
613n+30
53n+34
109n+34
521n+34
113n+41
269n+41
389n+43
173n+46
89n+50
317n+58
641n+58
863n+64
199n+69
163n+70
569n+72
307n+75
173n+77
317n+77
373n+83
103n+86
229n+86
53n+87
733n+93
191n+94
383n+103
139n+107
83n+110
761n+111
149n+119
157n+120
521n+121
163n+122
313n+123
211n+137
313n+137
547n+138
487n+148
647n+148
277n+150
349n+150
571n+152
389n+160
271n+164
419n+165
487n+179
109n+188
339n+190
283n+191
229n+192
263n+198
397n+205
619n+206
353n+210
251n+221
457n+230
401n+234
131n+255
881n+259
863n+286
601n+288
449n+294
b.txt read! 82 個
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
300=13x22+14
301=59x5+6
!!! 302 !!!
!!! 303 !!!
304=283x1+21
!!! 305 !!!
!!! 306 !!!
!!! 307 !!!
!!! 308 !!!
!!! 309 !!!
310=37x8+14
310=269x1+41
!!! 311 !!!
!!! 312 !!!
313=13x23+14
314=37x8+18
315=23x13+16
315=229x1+86
316=17x18+10
317=89x3+50
!!! 318 !!!
319=97x3+28
!!! 320 !!!
!!! 321 !!!
!!! 322 !!!
!!! 323 !!!
324=61x5+19
!!! 325 !!!
326=13x24+14
327=79x4+11
!!! 328 !!!
!!! 329 !!!
!!! 330 !!!
!!! 331 !!!
!!! 332 !!!
333=17x19+10
!!! 334 !!!
!!! 335 !!!
!!! 336 !!!
!!! 337 !!!
338=23x14+16
339=13x25+14
340=107x3+19
341=83x4+9
!!! 342 !!!
!!! 343 !!!
!!! 344 !!!
!!! 345 !!!
!!! 346 !!!
347=37x9+14
348=211x1+137
!!! 349 !!!
350=17x20+10
350=113x3+11
351=37x9+18
352=13x26+14
352=53x6+34
352=53x5+87
!!! 353 !!!
!!! 354 !!!
!!! 355 !!!
!!! 356 !!!
!!! 357 !!!
!!! 358 !!!
359=83x3+110
360=59x6+6
361=23x15+16
361=109x3+34
!!! 362 !!!
!!! 363 !!!
!!! 364 !!!
365=13x27+14
!!! 366 !!!
367=17x21+10
!!! 368 !!!
!!! 369 !!!
!!! 370 !!!
!!! 371 !!!
!!! 372 !!!
!!! 373 !!!
!!! 374 !!!
375=317x1+58
!!! 376 !!!
!!! 377 !!!
378=13x28+14
!!! 379 !!!
380=113x3+41
!!! 381 !!!
382=307x1+75
!!! 383 !!!
384=17x22+10
384=37x10+14
384=23x16+16
385=61x6+19
385=139x2+107
386=131x1+255
!!! 387 !!!
388=37x10+18
!!! 389 !!!
!!! 390 !!!
391=13x29+14
392=173x2+46
!!! 393 !!!
394=317x1+77
395=103x3+86
396=163x2+70
!!! 397 !!!
!!! 398 !!!
!!! 399 !!!
factor((302^5+302^4+302^3+302^2+302+1)*302^14+302^6+302^5+302^4+302^3+302^2+302+1);
factor((303^5+303^4+303^3+303^2+303+1)*303^14+303^6+303^5+303^4+303^3+303^2+303+1);
factor((305^5+305^4+305^3+305^2+305+1)*305^14+305^6+305^5+305^4+305^3+305^2+305+1);
factor((306^5+306^4+306^3+306^2+306+1)*306^14+306^6+306^5+306^4+306^3+306^2+306+1);
factor((307^5+307^4+307^3+307^2+307+1)*307^14+307^6+307^5+307^4+307^3+307^2+307+1);
factor((308^5+308^4+308^3+308^2+308+1)*308^14+308^6+308^5+308^4+308^3+308^2+308+1);
factor((309^5+309^4+309^3+309^2+309+1)*309^14+309^6+309^5+309^4+309^3+309^2+309+1);
factor((311^5+311^4+311^3+311^2+311+1)*311^14+311^6+311^5+311^4+311^3+311^2+311+1);
factor((312^5+312^4+312^3+312^2+312+1)*312^14+312^6+312^5+312^4+312^3+312^2+312+1);
factor((318^5+318^4+318^3+318^2+318+1)*318^14+318^6+318^5+318^4+318^3+318^2+318+1);
factor((320^5+320^4+320^3+320^2+320+1)*320^14+320^6+320^5+320^4+320^3+320^2+320+1);
factor((321^5+321^4+321^3+321^2+321+1)*321^14+321^6+321^5+321^4+321^3+321^2+321+1);
factor((322^5+322^4+322^3+322^2+322+1)*322^14+322^6+322^5+322^4+322^3+322^2+322+1);
factor((323^5+323^4+323^3+323^2+323+1)*323^14+323^6+323^5+323^4+323^3+323^2+323+1);
factor((325^5+325^4+325^3+325^2+325+1)*325^14+325^6+325^5+325^4+325^3+325^2+325+1);
factor((328^5+328^4+328^3+328^2+328+1)*328^14+328^6+328^5+328^4+328^3+328^2+328+1);
factor((329^5+329^4+329^3+329^2+329+1)*329^14+329^6+329^5+329^4+329^3+329^2+329+1);
factor((330^5+330^4+330^3+330^2+330+1)*330^14+330^6+330^5+330^4+330^3+330^2+330+1);
factor((331^5+331^4+331^3+331^2+331+1)*331^14+331^6+331^5+331^4+331^3+331^2+331+1);
factor((332^5+332^4+332^3+332^2+332+1)*332^14+332^6+332^5+332^4+332^3+332^2+332+1);
factor((334^5+334^4+334^3+334^2+334+1)*334^14+334^6+334^5+334^4+334^3+334^2+334+1);
factor((335^5+335^4+335^3+335^2+335+1)*335^14+335^6+335^5+335^4+335^3+335^2+335+1);
factor((336^5+336^4+336^3+336^2+336+1)*336^14+336^6+336^5+336^4+336^3+336^2+336+1);
factor((337^5+337^4+337^3+337^2+337+1)*337^14+337^6+337^5+337^4+337^3+337^2+337+1);
factor((342^5+342^4+342^3+342^2+342+1)*342^14+342^6+342^5+342^4+342^3+342^2+342+1);
factor((343^5+343^4+343^3+343^2+343+1)*343^14+343^6+343^5+343^4+343^3+343^2+343+1);
factor((344^5+344^4+344^3+344^2+344+1)*344^14+344^6+344^5+344^4+344^3+344^2+344+1);
factor((345^5+345^4+345^3+345^2+345+1)*345^14+345^6+345^5+345^4+345^3+345^2+345+1);
factor((346^5+346^4+346^3+346^2+346+1)*346^14+346^6+346^5+346^4+346^3+346^2+346+1);
factor((349^5+349^4+349^3+349^2+349+1)*349^14+349^6+349^5+349^4+349^3+349^2+349+1);
factor((353^5+353^4+353^3+353^2+353+1)*353^14+353^6+353^5+353^4+353^3+353^2+353+1);
factor((354^5+354^4+354^3+354^2+354+1)*354^14+354^6+354^5+354^4+354^3+354^2+354+1);
factor((355^5+355^4+355^3+355^2+355+1)*355^14+355^6+355^5+355^4+355^3+355^2+355+1);
factor((356^5+356^4+356^3+356^2+356+1)*356^14+356^6+356^5+356^4+356^3+356^2+356+1);
factor((357^5+357^4+357^3+357^2+357+1)*357^14+357^6+357^5+357^4+357^3+357^2+357+1);
factor((358^5+358^4+358^3+358^2+358+1)*358^14+358^6+358^5+358^4+358^3+358^2+358+1);
factor((362^5+362^4+362^3+362^2+362+1)*362^14+362^6+362^5+362^4+362^3+362^2+362+1);
factor((363^5+363^4+363^3+363^2+363+1)*363^14+363^6+363^5+363^4+363^3+363^2+363+1);
factor((364^5+364^4+364^3+364^2+364+1)*364^14+364^6+364^5+364^4+364^3+364^2+364+1);
factor((366^5+366^4+366^3+366^2+366+1)*366^14+366^6+366^5+366^4+366^3+366^2+366+1);
factor((368^5+368^4+368^3+368^2+368+1)*368^14+368^6+368^5+368^4+368^3+368^2+368+1);
factor((369^5+369^4+369^3+369^2+369+1)*369^14+369^6+369^5+369^4+369^3+369^2+369+1);
factor((370^5+370^4+370^3+370^2+370+1)*370^14+370^6+370^5+370^4+370^3+370^2+370+1);
factor((371^5+371^4+371^3+371^2+371+1)*371^14+371^6+371^5+371^4+371^3+371^2+371+1);
factor((372^5+372^4+372^3+372^2+372+1)*372^14+372^6+372^5+372^4+372^3+372^2+372+1);
factor((373^5+373^4+373^3+373^2+373+1)*373^14+373^6+373^5+373^4+373^3+373^2+373+1);
factor((374^5+374^4+374^3+374^2+374+1)*374^14+374^6+374^5+374^4+374^3+374^2+374+1);
factor((376^5+376^4+376^3+376^2+376+1)*376^14+376^6+376^5+376^4+376^3+376^2+376+1);
factor((377^5+377^4+377^3+377^2+377+1)*377^14+377^6+377^5+377^4+377^3+377^2+377+1);
factor((379^5+379^4+379^3+379^2+379+1)*379^14+379^6+379^5+379^4+379^3+379^2+379+1);
factor((381^5+381^4+381^3+381^2+381+1)*381^14+381^6+381^5+381^4+381^3+381^2+381+1);
factor((383^5+383^4+383^3+383^2+383+1)*383^14+383^6+383^5+383^4+383^3+383^2+383+1);
factor((387^5+387^4+387^3+387^2+387+1)*387^14+387^6+387^5+387^4+387^3+387^2+387+1);
factor((389^5+389^4+389^3+389^2+389+1)*389^14+389^6+389^5+389^4+389^3+389^2+389+1);
factor((390^5+390^4+390^3+390^2+390+1)*390^14+390^6+390^5+390^4+390^3+390^2+390+1);
factor((393^5+393^4+393^3+393^2+393+1)*393^14+393^6+393^5+393^4+393^3+393^2+393+1);
factor((397^5+397^4+397^3+397^2+397+1)*397^14+397^6+397^5+397^4+397^3+397^2+397+1);
factor((398^5+398^4+398^3+398^2+398+1)*398^14+398^6+398^5+398^4+398^3+398^2+398+1);
factor((399^5+399^4+399^3+399^2+399+1)*399^14+399^6+399^5+399^4+399^3+399^2+399+1);
(%i209) batch("a.bat");
read and interpret file: a.bat
2 3
4 5 6
(%i210) factor(1 + 302 + 302 + 302 + 302 + 302 + 302
2 3
4 5 14
+ (1 + 302 + 302 + 302 + 302 + 302 ) 302 )
(%o210) 3929 108301 19511269333 50281215929291 316932351243337
2 3
4 5 6
(%i211) factor(1 + 303 + 303 + 303 + 303 + 303 + 303
2 3
4 5 14
+ (1 + 303 + 303 + 303 + 303 + 303 ) 303 )
(%o211) 419 336226240144947136620811630584114883343136011
2 3
4 5 6
(%i212) factor(1 + 305 + 305 + 305 + 305 + 305 + 305
2 3
4 5 14
+ (1 + 305 + 305 + 305 + 305 + 305 ) 305 )
(%o212) 45497 354205046777353 9905712011786607427021654541
2 3
4 5 6
(%i213) factor(1 + 306 + 306 + 306 + 306 + 306 + 306
2 3
4 5 14
+ (1 + 306 + 306 + 306 + 306 + 306 ) 306 )
(%o213) 65079251 2610274281043609904168737562502061417013
2 3
4 5 6
(%i214) factor(1 + 307 + 307 + 307 + 307 + 307 + 307
2 3
4 5 14
+ (1 + 307 + 307 + 307 + 307 + 307 ) 307 )
(%o214) 727 3968442433 62645746316360019921715577429844439
2 3
4 5 6
(%i215) factor(1 + 308 + 308 + 308 + 308 + 308 + 308
2 3
4 5 14
+ (1 + 308 + 308 + 308 + 308 + 308 ) 308 )
(%o215) 59023 3257276864610146391379440820825283062963243
2 3
4 5 6
(%i216) factor(1 + 309 + 309 + 309 + 309 + 309 + 309
2 3
4 5 14
+ (1 + 309 + 309 + 309 + 309 + 309 ) 309 )
(%o216) 2539 2301960307 34983103934707535404181288414356237
2 3
4 5 6
(%i217) factor(1 + 311 + 311 + 311 + 311 + 311 + 311
2 3
4 5 14
+ (1 + 311 + 311 + 311 + 311 + 311 ) 311 )
(%o217) 463 13099 82019389 2408289847 192930846179163065816503
2 3
4 5 6
(%i218) factor(1 + 312 + 312 + 312 + 312 + 312 + 312
2 3
4 5 14
+ (1 + 312 + 312 + 312 + 312 + 312 ) 312 )
(%o218) 41563391 46085449 128249799694783010430962338289231
2 3
4 5 6
(%i219) factor(1 + 318 + 318 + 318 + 318 + 318 + 318
2 3
4 5 14
+ (1 + 318 + 318 + 318 + 318 + 318 ) 318 )
(%o219) 2179 2879 31077315707 1708781863511 1058897972469031907
2 3
4 5 6
(%i220) factor(1 + 320 + 320 + 320 + 320 + 320 + 320
2 3
4 5 14
+ (1 + 320 + 320 + 320 + 320 + 320 ) 320 )
(%o220) 397382633300385022227298585568871477107785830721
素数ですね。
2 3
4 5 6
(%i221) factor(1 + 321 + 321 + 321 + 321 + 321 + 321
2 3
4 5 14
+ (1 + 321 + 321 + 321 + 321 + 321 ) 321 )
(%o221) 85103 3256927 46121111 32983596965294513549508504043
2 3
4 5 6
(%i222) factor(1 + 322 + 322 + 322 + 322 + 322 + 322
2 3
4 5 14
+ (1 + 322 + 322 + 322 + 322 + 322 ) 322 )
(%o222) 3217 3459719 85376250419 470742529414672834473562147
2 3
4 5 6
(%i223) factor(1 + 323 + 323 + 323 + 323 + 323 + 323
2 3
4 5 14
+ (1 + 323 + 323 + 323 + 323 + 323 ) 323 )
(%o223) 397 6619 252573481 977872699 731040799979460306901237
2 3
4 5 6
(%i224) factor(1 + 325 + 325 + 325 + 325 + 325 + 325
2 3
4 5 14
+ (1 + 325 + 325 + 325 + 325 + 325 ) 325 )
(%o224) 185402051341038211 2877449261429480047684487122591
2 3
4 5 6
(%i225) factor(1 + 328 + 328 + 328 + 328 + 328 + 328
2 3
4 5 14
+ (1 + 328 + 328 + 328 + 328 + 328 ) 328 )
(%o225) 2719 250358429 75121548197 12422046953219471191904647
2 3
4 5 6
(%i226) factor(1 + 329 + 329 + 329 + 329 + 329 + 329
2 3
4 5 14
+ (1 + 329 + 329 + 329 + 329 + 329 ) 329 )
(%o226) 23610911 61270719879308749 465241436682278123504159
2 3
4 5 6
(%i227) factor(1 + 330 + 330 + 330 + 330 + 330 + 330
2 3
4 5 14
+ (1 + 330 + 330 + 330 + 330 + 330 ) 330 )
(%o227) 2647 269357429136807680513098098070578464447829073
2 3
4 5 6
(%i228) factor(1 + 331 + 331 + 331 + 331 + 331 + 331
2 3
4 5 14
+ (1 + 331 + 331 + 331 + 331 + 331 ) 331 )
(%o228) 1373 124260940287707 4426299155607530860092244023583
2 3
4 5 6
(%i229) factor(1 + 332 + 332 + 332 + 332 + 332 + 332
2 3
4 5 14
+ (1 + 332 + 332 + 332 + 332 + 332 ) 332 )
(%o229) 21914999710273 2515425443151893 14507105241140371241
2 3
4 5 6
(%i230) factor(1 + 334 + 334 + 334 + 334 + 334 + 334
2 3
4 5 14
+ (1 + 334 + 334 + 334 + 334 + 334 ) 334 )
(%o230) 1103 140977 10860391 3743998289 141768656273343318057379
2 3
4 5 6
(%i231) factor(1 + 335 + 335 + 335 + 335 + 335 + 335
2 3
4 5 14
+ (1 + 335 + 335 + 335 + 335 + 335 ) 335 )
(%o231) 133051 68374334022043661 104288980430462754924020351
2 3
4 5 6
(%i232) factor(1 + 336 + 336 + 336 + 336 + 336 + 336
2 3
4 5 14
+ (1 + 336 + 336 + 336 + 336 + 336 ) 336 )
(%o232) 1004016247316568799759712503150306913836517919313
素数ですね。
2 3
4 5 6
(%i233) factor(1 + 337 + 337 + 337 + 337 + 337 + 337
2 3
4 5 14
+ (1 + 337 + 337 + 337 + 337 + 337 ) 337 )
(%o233) 52914905429 20076163122980751602189910378211533401
2 3
4 5 6
(%i234) factor(1 + 342 + 342 + 342 + 342 + 342 + 342
2 3
4 5 14
+ (1 + 342 + 342 + 342 + 342 + 342 ) 342 )
(%o234) 577 1348577 2221479389 812968825566220346640208259839
2 3
4 5 6
(%i235) factor(1 + 343 + 343 + 343 + 343 + 343 + 343
2 3
4 5 14
+ (1 + 343 + 343 + 343 + 343 + 343 ) 343 )
(%o235) 9241 37907152100067143027 4240491204149361083536307
2 3
4 5 6
(%i236) factor(1 + 344 + 344 + 344 + 344 + 344 + 344
2 3
4 5 14
+ (1 + 344 + 344 + 344 + 344 + 344 ) 344 )
(%o236) 18661 84127855507858290197915275120437199219442341
2 3
4 5 6
(%i237) factor(1 + 345 + 345 + 345 + 345 + 345 + 345
2 3
4 5 14
+ (1 + 345 + 345 + 345 + 345 + 345 ) 345 )
(%o237) 1445921 52790459 3121166491 6963162329577511034723029
2 3
4 5 6
(%i238) factor(1 + 346 + 346 + 346 + 346 + 346 + 346
2 3
4 5 14
+ (1 + 346 + 346 + 346 + 346 + 346 ) 346 )
(%o238) 379 157287531397 29401492335208029750762516826645201
2 3
4 5 6
(%i239) factor(1 + 349 + 349 + 349 + 349 + 349 + 349
2 3
4 5 14
+ (1 + 349 + 349 + 349 + 349 + 349 ) 349 )
(%o239) 535147871 1742296163 2214794891112960623558039533537
2 3
4 5 6
(%i240) factor(1 + 353 + 353 + 353 + 353 + 353 + 353
2 3
4 5 14
+ (1 + 353 + 353 + 353 + 353 + 353 ) 353 )
(%o240) 100607491 925634639 37344385801369 737320325911350089
2 3
4 5 6
(%i241) factor(1 + 354 + 354 + 354 + 354 + 354 + 354
2 3
4 5 14
+ (1 + 354 + 354 + 354 + 354 + 354 ) 354 )
(%o241) 5483 14537639 69316489262759 489713245286975686353197
2 3
4 5 6
(%i242) factor(1 + 355 + 355 + 355 + 355 + 355 + 355
2 3
4 5 14
+ (1 + 355 + 355 + 355 + 355 + 355 ) 355 )
(%o242) 6086879 1269817793 13469661290651 27420227090054098973
2 3
4 5 6
(%i243) factor(1 + 356 + 356 + 356 + 356 + 356 + 356
2 3
4 5 14
+ (1 + 356 + 356 + 356 + 356 + 356 ) 356 )
(%o243) 3151861 955442487428690225558020467173382786877633
2 3
4 5 6
(%i244) factor(1 + 357 + 357 + 357 + 357 + 357 + 357
2 3
4 5 14
+ (1 + 357 + 357 + 357 + 357 + 357 ) 357 )
(%o244) 439063 7234149569757052850462532616325522257399723
2 3
4 5 6
(%i245) factor(1 + 358 + 358 + 358 + 358 + 358 + 358
2 3
4 5 14
+ (1 + 358 + 358 + 358 + 358 + 358 ) 358 )
(%o245) 8298833467831 403622406129748320889745886064532869
2 3
4 5 6
(%i246) factor(1 + 362 + 362 + 362 + 362 + 362 + 362
2 3
4 5 14
+ (1 + 362 + 362 + 362 + 362 + 362 ) 362 )
(%o246) 991 104597 39909044107513730491764113343260516608277
2 3
4 5 6
(%i247) factor(1 + 363 + 363 + 363 + 363 + 363 + 363
2 3
4 5 14
+ (1 + 363 + 363 + 363 + 363 + 363 ) 363 )
(%o247) 1187993 3669526670341687975256020785512292194375033
2 3
4 5 6
(%i248) factor(1 + 364 + 364 + 364 + 364 + 364 + 364
2 3
4 5 14
+ (1 + 364 + 364 + 364 + 364 + 364 ) 364 )
(%o248) 1093 1627 6491 291007 1367408540660380039624295284489343
2 3
4 5 6
(%i249) factor(1 + 366 + 366 + 366 + 366 + 366 + 366
2 3
4 5 14
+ (1 + 366 + 366 + 366 + 366 + 366 ) 366 )
(%o249) 25620387003059 198949640095701577385033022147339257
2 3
4 5 6
(%i250) factor(1 + 368 + 368 + 368 + 368 + 368 + 368
2 3
4 5 14
+ (1 + 368 + 368 + 368 + 368 + 368 ) 368 )
(%o250) 450601981 11277426271 1112467202441121973715421311899
2 3
4 5 6
(%i251) factor(1 + 369 + 369 + 369 + 369 + 369 + 369
2 3
4 5 14
+ (1 + 369 + 369 + 369 + 369 + 369 ) 369 )
(%o251) 28723 52333524542192767 3959767819128386409943728961
2 3
4 5 6
(%i252) factor(1 + 370 + 370 + 370 + 370 + 370 + 370
2 3
4 5 14
+ (1 + 370 + 370 + 370 + 370 + 370 ) 370 )
(%o252) 463 1121085188434857623569 12072258029527663500234193
2 3
4 5 6
(%i253) factor(1 + 371 + 371 + 371 + 371 + 371 + 371
2 3
4 5 14
+ (1 + 371 + 371 + 371 + 371 + 371 ) 371 )
(%o253) 47713 5025061386381557761 27510492965060915723741041
2 3
4 5 6
(%i254) factor(1 + 372 + 372 + 372 + 372 + 372 + 372
2 3
4 5 14
+ (1 + 372 + 372 + 372 + 372 + 372 ) 372 )
(%o254) 6004715195047 1156092209072765462639758982424814387
2 3
4 5 6
(%i255) factor(1 + 373 + 373 + 373 + 373 + 373 + 373
2 3
4 5 14
+ (1 + 373 + 373 + 373 + 373 + 373 ) 373 )
(%o255) 1009 12841 23857 667371363261751321 35412801597804389053
2 3
4 5 6
(%i256) factor(1 + 374 + 374 + 374 + 374 + 374 + 374
2 3
4 5 14
+ (1 + 374 + 374 + 374 + 374 + 374 ) 374 )
(%o256) 3241727809 1396320908300819 1698092815331994504260081
2 3
4 5 6
(%i257) factor(1 + 376 + 376 + 376 + 376 + 376 + 376
2 3
4 5 14
+ (1 + 376 + 376 + 376 + 376 + 376 ) 376 )
(%o257) 7914873049 1074686213123720617037978286095567610337
2 3
4 5 6
(%i258) factor(1 + 377 + 377 + 377 + 377 + 377 + 377
2 3
4 5 14
+ (1 + 377 + 377 + 377 + 377 + 377 ) 377 )
(%o258) 90806413 98519599686408406388091452181062680374913
2 3
4 5 6
(%i259) factor(1 + 379 + 379 + 379 + 379 + 379 + 379
2 3
4 5 14
+ (1 + 379 + 379 + 379 + 379 + 379 ) 379 )
(%o259) 3709 20186396339793907 132122496200174260532356105927
2 3
4 5 6
(%i260) factor(1 + 381 + 381 + 381 + 381 + 381 + 381
2 3
4 5 14
+ (1 + 381 + 381 + 381 + 381 + 381 ) 381 )
(%o260) 269 911 56050363 168652877 10123634723 466161722178119659
2 3
4 5 6
(%i261) factor(1 + 383 + 383 + 383 + 383 + 383 + 383
2 3
4 5 14
+ (1 + 383 + 383 + 383 + 383 + 383 ) 383 )
(%o261) 683 9929 5534281 1147727611 280340514484124128282141897
2 3
4 5 6
(%i262) factor(1 + 387 + 387 + 387 + 387 + 387 + 387
2 3
4 5 14
+ (1 + 387 + 387 + 387 + 387 + 387 ) 387 )
(%o262) 31618168512181132925707 465259538927085496873235347
2 3
4 5 6
(%i263) factor(1 + 389 + 389 + 389 + 389 + 389 + 389
2 3
4 5 14
+ (1 + 389 + 389 + 389 + 389 + 389 ) 389 )
(%o263) 271 81912427 30016499352189863 24349002511268561267231
2 3
4 5 6
(%i264) factor(1 + 390 + 390 + 390 + 390 + 390 + 390
2 3
4 5 14
+ (1 + 390 + 390 + 390 + 390 + 390 ) 390 )
(%o264) 12721 1565600279 30128792471 28389560586316840060130419
2 3
4 5 6
(%i265) factor(1 + 393 + 393 + 393 + 393 + 393 + 393
2 3
4 5 14
+ (1 + 393 + 393 + 393 + 393 + 393 ) 393 )
(%o265) 18152871151 90318068587 12018353491983356367899824777
2 3
4 5 6
(%i266) factor(1 + 397 + 397 + 397 + 397 + 397 + 397
2 3
4 5 14
+ (1 + 397 + 397 + 397 + 397 + 397 ) 397 )
(%o266) 4903 1860351473 15251927507 171685382833624844878184233
2 3
4 5 6
(%i267) factor(1 + 398 + 398 + 398 + 398 + 398 + 398
2 3
4 5 14
+ (1 + 398 + 398 + 398 + 398 + 398 ) 398 )
(%o267) 6421 445877 8750909538517324189237908231264051681587
2 3
4 5 6
(%i268) factor(1 + 399 + 399 + 399 + 399 + 399 + 399
2 3
4 5 14
+ (1 + 399 + 399 + 399 + 399 + 399 ) 399 )
(%o268) 51893 96799 5231126138848928162765423195479055752643
(%o268)
a.bat
(%i269)
b.txtに追加されるものは、
419,303
727,307
463,311
397,323
577,342
379,346
991,362
463,370
269,381
683,383
271,389
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
223n+3
733n+3
59n+6
83n+9
17n+10
79n+11
113n+11
607n+12
829n+12
13n+14
37n+14
23n+16
37n+18
419n+18
937n+18
61n+19
107n+19
283n+21
619n+26
97n+28
487n+29
613n+30
53n+34
109n+34
521n+34
113n+41
269n+41
389n+43
173n+46
89n+50
317n+58
641n+58
863n+64
199n+69
163n+70
569n+72
307n+75
173n+77
317n+77
373n+83
103n+86
229n+86
53n+87
733n+93
191n+94
383n+103
139n+107
83n+110
761n+111
149n+119
157n+120
521n+121
163n+122
313n+123
211n+137
313n+137
547n+138
487n+148
647n+148
277n+150
349n+150
571n+152
389n+160
271n+164
419n+165
487n+179
109n+188
339n+190
283n+191
229n+192
263n+198
397n+205
619n+206
353n+210
251n+221
457n+230
401n+234
131n+255
881n+259
863n+286
601n+288
449n+294
419n+303
727n+307
463n+311
397n+323
577n+342
379n+346
991n+362
463n+370
269n+381
683n+383
271n+389
b.txt read! 93 個
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 400 !!!
401=17x23+10
!!! 402 !!!
!!! 403 !!!
404=13x30+14
405=53x7+34
405=53x6+87
406=79x5+11
406=89x4+50
406=109x2+188
407=23x17+16
!!! 408 !!!
!!! 409 !!!
!!! 410 !!!
!!! 411 !!!
!!! 412 !!!
!!! 413 !!!
!!! 414 !!!
!!! 415 !!!
416=97x4+28
417=13x31+14
417=149x2+119
418=17x24+10
419=59x7+6
!!! 420 !!!
421=37x11+14
421=229x1+192
!!! 422 !!!
423=173x2+77
424=83x5+9
425=37x11+18
!!! 426 !!!
427=277x1+150
!!! 428 !!!
!!! 429 !!!
430=13x32+14
430=23x18+16
!!! 431 !!!
432=389x1+43
!!! 433 !!!
434=157x2+120
435=17x25+10
435=271x1+164
436=313x1+123
437=419x1+18
!!! 438 !!!
!!! 439 !!!
!!! 440 !!!
!!! 441 !!!
442=83x4+110
443=13x33+14
!!! 444 !!!
!!! 445 !!!
446=61x7+19
447=107x4+19
448=163x2+122
449=223x2+3
450=313x1+137
!!! 451 !!!
452=17x26+10
453=23x19+16
!!! 454 !!!
!!! 455 !!!
456=13x34+14
456=373x1+83
!!! 457 !!!
458=37x12+14
458=53x8+34
458=53x7+87
!!! 459 !!!
!!! 460 !!!
461=263x1+198
462=37x12+18
463=113x4+11
!!! 464 !!!
!!! 465 !!!
!!! 466 !!!
467=199x2+69
!!! 468 !!!
469=17x27+10
469=13x35+14
470=109x4+34
!!! 471 !!!
472=251x1+221
!!! 473 !!!
474=283x1+191
!!! 475 !!!
476=23x20+16
476=191x2+94
!!! 477 !!!
478=59x8+6
!!! 479 !!!
!!! 480 !!!
!!! 481 !!!
482=13x36+14
!!! 483 !!!
!!! 484 !!!
485=79x6+11
486=17x28+10
486=383x1+103
!!! 487 !!!
!!! 488 !!!
!!! 489 !!!
!!! 490 !!!
!!! 491 !!!
!!! 492 !!!
493=113x4+41
!!! 494 !!!
495=13x37+14
495=37x13+14
495=89x5+50
!!! 496 !!!
!!! 497 !!!
498=103x4+86
499=23x21+16
499=37x13+18
499=349x1+150
factor((400^5+400^4+400^3+400^2+400+1)*400^14+400^6+400^5+400^4+400^3+400^2+400+1);
factor((402^5+402^4+402^3+402^2+402+1)*402^14+402^6+402^5+402^4+402^3+402^2+402+1);
factor((403^5+403^4+403^3+403^2+403+1)*403^14+403^6+403^5+403^4+403^3+403^2+403+1);
factor((408^5+408^4+408^3+408^2+408+1)*408^14+408^6+408^5+408^4+408^3+408^2+408+1);
factor((409^5+409^4+409^3+409^2+409+1)*409^14+409^6+409^5+409^4+409^3+409^2+409+1);
factor((410^5+410^4+410^3+410^2+410+1)*410^14+410^6+410^5+410^4+410^3+410^2+410+1);
factor((411^5+411^4+411^3+411^2+411+1)*411^14+411^6+411^5+411^4+411^3+411^2+411+1);
factor((412^5+412^4+412^3+412^2+412+1)*412^14+412^6+412^5+412^4+412^3+412^2+412+1);
factor((413^5+413^4+413^3+413^2+413+1)*413^14+413^6+413^5+413^4+413^3+413^2+413+1);
factor((414^5+414^4+414^3+414^2+414+1)*414^14+414^6+414^5+414^4+414^3+414^2+414+1);
factor((415^5+415^4+415^3+415^2+415+1)*415^14+415^6+415^5+415^4+415^3+415^2+415+1);
factor((420^5+420^4+420^3+420^2+420+1)*420^14+420^6+420^5+420^4+420^3+420^2+420+1);
factor((422^5+422^4+422^3+422^2+422+1)*422^14+422^6+422^5+422^4+422^3+422^2+422+1);
factor((426^5+426^4+426^3+426^2+426+1)*426^14+426^6+426^5+426^4+426^3+426^2+426+1);
factor((428^5+428^4+428^3+428^2+428+1)*428^14+428^6+428^5+428^4+428^3+428^2+428+1);
factor((429^5+429^4+429^3+429^2+429+1)*429^14+429^6+429^5+429^4+429^3+429^2+429+1);
factor((431^5+431^4+431^3+431^2+431+1)*431^14+431^6+431^5+431^4+431^3+431^2+431+1);
factor((433^5+433^4+433^3+433^2+433+1)*433^14+433^6+433^5+433^4+433^3+433^2+433+1);
factor((438^5+438^4+438^3+438^2+438+1)*438^14+438^6+438^5+438^4+438^3+438^2+438+1);
factor((439^5+439^4+439^3+439^2+439+1)*439^14+439^6+439^5+439^4+439^3+439^2+439+1);
factor((440^5+440^4+440^3+440^2+440+1)*440^14+440^6+440^5+440^4+440^3+440^2+440+1);
factor((441^5+441^4+441^3+441^2+441+1)*441^14+441^6+441^5+441^4+441^3+441^2+441+1);
factor((444^5+444^4+444^3+444^2+444+1)*444^14+444^6+444^5+444^4+444^3+444^2+444+1);
factor((445^5+445^4+445^3+445^2+445+1)*445^14+445^6+445^5+445^4+445^3+445^2+445+1);
factor((451^5+451^4+451^3+451^2+451+1)*451^14+451^6+451^5+451^4+451^3+451^2+451+1);
factor((454^5+454^4+454^3+454^2+454+1)*454^14+454^6+454^5+454^4+454^3+454^2+454+1);
factor((455^5+455^4+455^3+455^2+455+1)*455^14+455^6+455^5+455^4+455^3+455^2+455+1);
factor((457^5+457^4+457^3+457^2+457+1)*457^14+457^6+457^5+457^4+457^3+457^2+457+1);
factor((459^5+459^4+459^3+459^2+459+1)*459^14+459^6+459^5+459^4+459^3+459^2+459+1);
factor((460^5+460^4+460^3+460^2+460+1)*460^14+460^6+460^5+460^4+460^3+460^2+460+1);
factor((464^5+464^4+464^3+464^2+464+1)*464^14+464^6+464^5+464^4+464^3+464^2+464+1);
factor((465^5+465^4+465^3+465^2+465+1)*465^14+465^6+465^5+465^4+465^3+465^2+465+1);
factor((466^5+466^4+466^3+466^2+466+1)*466^14+466^6+466^5+466^4+466^3+466^2+466+1);
factor((468^5+468^4+468^3+468^2+468+1)*468^14+468^6+468^5+468^4+468^3+468^2+468+1);
factor((471^5+471^4+471^3+471^2+471+1)*471^14+471^6+471^5+471^4+471^3+471^2+471+1);
factor((473^5+473^4+473^3+473^2+473+1)*473^14+473^6+473^5+473^4+473^3+473^2+473+1);
factor((475^5+475^4+475^3+475^2+475+1)*475^14+475^6+475^5+475^4+475^3+475^2+475+1);
factor((477^5+477^4+477^3+477^2+477+1)*477^14+477^6+477^5+477^4+477^3+477^2+477+1);
factor((479^5+479^4+479^3+479^2+479+1)*479^14+479^6+479^5+479^4+479^3+479^2+479+1);
factor((480^5+480^4+480^3+480^2+480+1)*480^14+480^6+480^5+480^4+480^3+480^2+480+1);
factor((481^5+481^4+481^3+481^2+481+1)*481^14+481^6+481^5+481^4+481^3+481^2+481+1);
factor((483^5+483^4+483^3+483^2+483+1)*483^14+483^6+483^5+483^4+483^3+483^2+483+1);
factor((484^5+484^4+484^3+484^2+484+1)*484^14+484^6+484^5+484^4+484^3+484^2+484+1);
factor((487^5+487^4+487^3+487^2+487+1)*487^14+487^6+487^5+487^4+487^3+487^2+487+1);
factor((488^5+488^4+488^3+488^2+488+1)*488^14+488^6+488^5+488^4+488^3+488^2+488+1);
factor((489^5+489^4+489^3+489^2+489+1)*489^14+489^6+489^5+489^4+489^3+489^2+489+1);
factor((490^5+490^4+490^3+490^2+490+1)*490^14+490^6+490^5+490^4+490^3+490^2+490+1);
factor((491^5+491^4+491^3+491^2+491+1)*491^14+491^6+491^5+491^4+491^3+491^2+491+1);
factor((492^5+492^4+492^3+492^2+492+1)*492^14+492^6+492^5+492^4+492^3+492^2+492+1);
factor((494^5+494^4+494^3+494^2+494+1)*494^14+494^6+494^5+494^4+494^3+494^2+494+1);
factor((496^5+496^4+496^3+496^2+496+1)*496^14+496^6+496^5+496^4+496^3+496^2+496+1);
factor((497^5+497^4+497^3+497^2+497+1)*497^14+497^6+497^5+497^4+497^3+497^2+497+1);
(%i269) batch("a.bat");
read and interpret file: a.bat
2 3
4 5 6
(%i270) factor(1 + 400 + 400 + 400 + 400 + 400 + 400
2 3
4 5 14
+ (1 + 400 + 400 + 400 + 400 + 400 ) 400 )
(%o270) 44777 615420470339705558178529155593273423995927913
2 3
4 5 6
(%i271) factor(1 + 402 + 402 + 402 + 402 + 402 + 402
2 3
4 5 14
+ (1 + 402 + 402 + 402 + 402 + 402 ) 402 )
(%o271) 20287 60564483046443020677 24657034637494825968155581
2 3
4 5 6
(%i272) factor(1 + 403 + 403 + 403 + 403 + 403 + 403
2 3
4 5 14
+ (1 + 403 + 403 + 403 + 403 + 403 ) 403 )
(%o272) 1181 522100597 2015541487 234376149113 109034924213897527
2 3
4 5 6
(%i273) factor(1 + 408 + 408 + 408 + 408 + 408 + 408
2 3
4 5 14
+ (1 + 408 + 408 + 408 + 408 + 408 ) 408 )
(%o273) 259603 1491199 2186941 99894808309 474661008234290147773
2 3
4 5 6
(%i274) factor(1 + 409 + 409 + 409 + 409 + 409 + 409
2 3
4 5 14
+ (1 + 409 + 409 + 409 + 409 + 409 ) 409 )
(%o274) 14484046139 2903461672584788975045727873561810851159
2 3
4 5 6
(%i275) factor(1 + 410 + 410 + 410 + 410 + 410 + 410
2 3
4 5 14
+ (1 + 410 + 410 + 410 + 410 + 410 ) 410 )
(%o275) 5776288729 7626142796095592096263023745060845600559
2 3
4 5 6
(%i276) factor(1 + 411 + 411 + 411 + 411 + 411 + 411
2 3
4 5 14
+ (1 + 411 + 411 + 411 + 411 + 411 ) 411 )
(%o276) 27823 6007516237 276028338814595656919771027350503163
2 3
4 5 6
(%i277) factor(1 + 412 + 412 + 412 + 412 + 412 + 412
2 3
4 5 14
+ (1 + 412 + 412 + 412 + 412 + 412 ) 412 )
(%o277) 675929 71482777518714826772207771814819624064059701
2 3
4 5 6
(%i278) factor(1 + 413 + 413 + 413 + 413 + 413 + 413
2 3
4 5 14
+ (1 + 413 + 413 + 413 + 413 + 413 ) 413 )
(%o278) 3448517 381391412313710093 38468082246185110435397149
2 3
4 5 6
(%i279) factor(1 + 414 + 414 + 414 + 414 + 414 + 414
2 3
4 5 14
+ (1 + 414 + 414 + 414 + 414 + 414 ) 414 )
(%o279) 52973268576268495771952624260459213160280264347851
素数ですね。
2 3
4 5 6
(%i280) factor(1 + 415 + 415 + 415 + 415 + 415 + 415
2 3
4 5 14
+ (1 + 415 + 415 + 415 + 415 + 415 ) 415 )
(%o280) 4901898461601680471 11313507839594919083651072359271
2 3
4 5 6
(%i281) factor(1 + 420 + 420 + 420 + 420 + 420 + 420
2 3
4 5 14
+ (1 + 420 + 420 + 420 + 420 + 420 ) 420 )
(%o281) 13285289323121 5240838395927973178751821639690677701
2 3
4 5 6
(%i282) factor(1 + 422 + 422 + 422 + 422 + 422 + 422
2 3
4 5 14
+ (1 + 422 + 422 + 422 + 422 + 422 ) 422 )
(%o282) 215399 405236285730709 873001348543959610025120688929
2 3
4 5 6
(%i283) factor(1 + 426 + 426 + 426 + 426 + 426 + 426
2 3
4 5 14
+ (1 + 426 + 426 + 426 + 426 + 426 ) 426 )
(%o283) 568269133 68235641626403 2350919214293861942920555937
2 3
4 5 6
(%i284) factor(1 + 428 + 428 + 428 + 428 + 428 + 428
2 3
4 5 14
+ (1 + 428 + 428 + 428 + 428 + 428 ) 428 )
(%o284) 2207 209257 28643359 3337624351 2256855616324789841913899
2 3
4 5 6
(%i285) factor(1 + 429 + 429 + 429 + 429 + 429 + 429
2 3
4 5 14
+ (1 + 429 + 429 + 429 + 429 + 429 ) 429 )
(%o285) 2670680818217 3089320614539 12624584836325058688183327
2 3
4 5 6
(%i286) factor(1 + 431 + 431 + 431 + 431 + 431 + 431
2 3
4 5 14
+ (1 + 431 + 431 + 431 + 431 + 431 ) 431 )
(%o286) 307 2397703154317 154576388945968992865500134971017127
2 3
4 5 6
(%i287) factor(1 + 433 + 433 + 433 + 433 + 433 + 433
2 3
4 5 14
+ (1 + 433 + 433 + 433 + 433 + 433 ) 433 )
(%o287) 4957 7260959 67548277 81187751 1855019351 339318896331539
2 3
4 5 6
(%i288) factor(1 + 438 + 438 + 438 + 438 + 438 + 438
2 3
4 5 14
+ (1 + 438 + 438 + 438 + 438 + 438 ) 438 )
(%o288) 2226787 749844409 39678300996689 2332372276747129095737
2 3
4 5 6
(%i289) factor(1 + 439 + 439 + 439 + 439 + 439 + 439
2 3
4 5 14
+ (1 + 439 + 439 + 439 + 439 + 439 ) 439 )
(%o289) 6491 24860203834908886711814488275688615740583864211
2 3
4 5 6
(%i290) factor(1 + 440 + 440 + 440 + 440 + 440 + 440
2 3
4 5 14
+ (1 + 440 + 440 + 440 + 440 + 440 ) 440 )
(%o290) 1303 1278779 101122802730521606883584620459634018604893
2 3
4 5 6
(%i291) factor(1 + 441 + 441 + 441 + 441 + 441 + 441
2 3
4 5 14
+ (1 + 441 + 441 + 441 + 441 + 441 ) 441 )
(%o291) 6271 22549 1244099242024659031545578834043295841862247
2 3
4 5 6
(%i292) factor(1 + 444 + 444 + 444 + 444 + 444 + 444
2 3
4 5 14
+ (1 + 444 + 444 + 444 + 444 + 444 ) 444 )
(%o292) 9035661329 16251696403505332087 1362689880640440122987
2 3
4 5 6
(%i293) factor(1 + 445 + 445 + 445 + 445 + 445 + 445
2 3
4 5 14
+ (1 + 445 + 445 + 445 + 445 + 445 ) 445 )
(%o293) 4139 50457046218551715581131011669762790276248129239
2 3
4 5 6
(%i294) factor(1 + 451 + 451 + 451 + 451 + 451 + 451
2 3
4 5 14
+ (1 + 451 + 451 + 451 + 451 + 451 ) 451 )
(%o294) 509 74673373 25629496173647 276499724994967990035335047
2 3
4 5 6
(%i295) factor(1 + 454 + 454 + 454 + 454 + 454 + 454
2 3
4 5 14
+ (1 + 454 + 454 + 454 + 454 + 454 ) 454 )
(%o295) 13159 23216458295790170346837715935342969417868557589
2 3
4 5 6
(%i296) factor(1 + 455 + 455 + 455 + 455 + 455 + 455
2 3
4 5 14
+ (1 + 455 + 455 + 455 + 455 + 455 ) 455 )
(%o296) 1013 3279641 8604366637 11143392305786934411476661203161
2 3
4 5 6
(%i297) factor(1 + 457 + 457 + 457 + 457 + 457 + 457
2 3
4 5 14
+ (1 + 457 + 457 + 457 + 457 + 457 ) 457 )
(%o297) 21368843051 6464951224534919 2506183675470510206625121
2 3
4 5 6
(%i298) factor(1 + 459 + 459 + 459 + 459 + 459 + 459
2 3
4 5 14
+ (1 + 459 + 459 + 459 + 459 + 459 ) 459 )
(%o298) 105138375724414559 3577889876998349999655887396796239
2 3
4 5 6
(%i299) factor(1 + 460 + 460 + 460 + 460 + 460 + 460
2 3
4 5 14
+ (1 + 460 + 460 + 460 + 460 + 460 ) 460 )
(%o299) 12347 154729404585209 8372604177256421 24510325885675667
2 3
4 5 6
(%i300) factor(1 + 464 + 464 + 464 + 464 + 464 + 464
2 3
4 5 14
+ (1 + 464 + 464 + 464 + 464 + 464 ) 464 )
(%o300) 2963971 32153769607 4849229900778925710958855280051533
2 3
4 5 6
(%i301) factor(1 + 465 + 465 + 465 + 465 + 465 + 465
2 3
4 5 14
+ (1 + 465 + 465 + 465 + 465 + 465 ) 465 )
(%o301) 13666857545994307 35226736399401276095565137557850863
2 3
4 5 6
(%i302) factor(1 + 466 + 466 + 466 + 466 + 466 + 466
2 3
4 5 14
+ (1 + 466 + 466 + 466 + 466 + 466 ) 466 )
(%o302) 883 32321 52081228999 337395016901478251109977144543459
2 3
4 5 6
(%i303) factor(1 + 468 + 468 + 468 + 468 + 468 + 468
2 3
4 5 14
+ (1 + 468 + 468 + 468 + 468 + 468 ) 468 )
(%o303) 37781911 14398467162349990487953697922334323207079459
2 3
4 5 6
(%i304) factor(1 + 471 + 471 + 471 + 471 + 471 + 471
2 3
4 5 14
+ (1 + 471 + 471 + 471 + 471 + 471 ) 471 )
(%o304) 148387 334783 12364057988053887818062900227324179403253
2 3
4 5 6
(%i305) factor(1 + 473 + 473 + 473 + 473 + 473 + 473
2 3
4 5 14
+ (1 + 473 + 473 + 473 + 473 + 473 ) 473 )
(%o305) 821 5510960470476569 147133092458478031421413772980321
2 3
4 5 6
(%i306) factor(1 + 475 + 475 + 475 + 475 + 475 + 475
2 3
4 5 14
+ (1 + 475 + 475 + 475 + 475 + 475 ) 475 )
(%o306) 10227360915901 46973457733513 1501335447663916064764477
2 3
4 5 6
(%i307) factor(1 + 477 + 477 + 477 + 477 + 477 + 477
2 3
4 5 14
+ (1 + 477 + 477 + 477 + 477 + 477 ) 477 )
(%o307) 781197110204903653886115256403536968348260455024669
素数ですね。
2 3
4 5 6
(%i308) factor(1 + 479 + 479 + 479 + 479 + 479 + 479
2 3
4 5 14
+ (1 + 479 + 479 + 479 + 479 + 479 ) 479 )
(%o308) 481087 915727 7216364317 266056749191480539730363571397
2 3
4 5 6
(%i309) factor(1 + 480 + 480 + 480 + 480 + 480 + 480
2 3
4 5 14
+ (1 + 480 + 480 + 480 + 480 + 480 ) 480 )
(%o309) 787 1931 40503517861007 14296821115325649565881717129439
2 3
4 5 6
(%i310) factor(1 + 481 + 481 + 481 + 481 + 481 + 481
2 3
4 5 14
+ (1 + 481 + 481 + 481 + 481 + 481 ) 481 )
(%o310) 3677 248981259898336646885447446013811575158699961969
2 3
4 5 6
(%i311) factor(1 + 483 + 483 + 483 + 483 + 483 + 483
2 3
4 5 14
+ (1 + 483 + 483 + 483 + 483 + 483 ) 483 )
(%o311) 1889 2634557756063 1900152701853793 104753222393053311439
2 3
4 5 6
(%i312) factor(1 + 484 + 484 + 484 + 484 + 484 + 484
2 3
4 5 14
+ (1 + 484 + 484 + 484 + 484 + 484 ) 484 )
(%o312) 372539 1293137 12750264589 112193066760563 1495059933345401
2 3
4 5 6
(%i313) factor(1 + 487 + 487 + 487 + 487 + 487 + 487
2 3
4 5 14
+ (1 + 487 + 487 + 487 + 487 + 487 ) 487 )
(%o313) 5791 45317 88266289 31655317477302443 1580107727730212041
2 3
4 5 6
(%i314) factor(1 + 488 + 488 + 488 + 488 + 488 + 488
2 3
4 5 14
+ (1 + 488 + 488 + 488 + 488 + 488 ) 488 )
(%o314) 19321441 531023139077 3528655500778099 33274018931297783
2 3
4 5 6
(%i315) factor(1 + 489 + 489 + 489 + 489 + 489 + 489
2 3
4 5 14
+ (1 + 489 + 489 + 489 + 489 + 489 ) 489 )
(%o315) 59086063 21196897867599133631558147466603182636117827
2 3
4 5 6
(%i316) factor(1 + 490 + 490 + 490 + 490 + 490 + 490
2 3
4 5 14
+ (1 + 490 + 490 + 490 + 490 + 490 ) 490 )
(%o316) 6449 201892583048465766977550096366743503329135135959
2 3
4 5 6
(%i317) factor(1 + 491 + 491 + 491 + 491 + 491 + 491
2 3
4 5 14
+ (1 + 491 + 491 + 491 + 491 + 491 ) 491 )
(%o317) 1580633 856254205719196655793462739697297508087903161
2 3
4 5 6
(%i318) factor(1 + 492 + 492 + 492 + 492 + 492 + 492
2 3
4 5 14
+ (1 + 492 + 492 + 492 + 492 + 492 ) 492 )
(%o318) 165397 71546089 118879518339678040549456110435597159073
2 3
4 5 6
(%i319) factor(1 + 494 + 494 + 494 + 494 + 494 + 494
2 3
4 5 14
+ (1 + 494 + 494 + 494 + 494 + 494 ) 494 )
(%o319) 1519469752594209835937058308786056227981244125322651
素数ですね。
2 3
4 5 6
(%i320) factor(1 + 496 + 496 + 496 + 496 + 496 + 496
2 3
4 5 14
+ (1 + 496 + 496 + 496 + 496 + 496 ) 496 )
(%o320) 313 145879 114971807933 312535860055742658471050167217243
2 3
4 5 6
(%i321) factor(1 + 497 + 497 + 497 + 497 + 497 + 497
2 3
4 5 14
+ (1 + 497 + 497 + 497 + 497 + 497 ) 497 )
(%o321) 101513 16792851038058608902753172090805961824499566053
(%o321)
a.bat
b.txtに追加されるのは、
307,431
509,451
821,473
787,480
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
223n+3
733n+3
59n+6
83n+9
17n+10
79n+11
113n+11
607n+12
829n+12
13n+14
37n+14
23n+16
37n+18
419n+18
937n+18
61n+19
107n+19
283n+21
619n+26
97n+28
487n+29
613n+30
53n+34
109n+34
521n+34
113n+41
269n+41
389n+43
173n+46
89n+50
317n+58
641n+58
863n+64
199n+69
163n+70
569n+72
307n+75
173n+77
317n+77
373n+83
103n+86
229n+86
53n+87
733n+93
191n+94
383n+103
139n+107
83n+110
761n+111
149n+119
157n+120
521n+121
163n+122
313n+123
211n+137
313n+137
547n+138
487n+148
647n+148
277n+150
349n+150
571n+152
389n+160
271n+164
419n+165
487n+179
109n+188
339n+190
283n+191
229n+192
263n+198
397n+205
619n+206
353n+210
251n+221
457n+230
401n+234
131n+255
881n+259
863n+286
601n+288
449n+294
419n+303
727n+307
463n+311
397n+323
577n+342
379n+346
991n+362
463n+370
269n+381
683n+383
271n+389
307n+431
509n+451
821n+473
787n+480
b.txt read! 97 個
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 500 !!!
!!! 501 !!!
!!! 502 !!!
503=17x29+10
!!! 504 !!!
!!! 505 !!!
!!! 506 !!!
507=83x6+9
507=61x8+19
508=13x38+14
!!! 509 !!!
!!! 510 !!!
511=53x9+34
511=53x8+87
!!! 512 !!!
513=97x5+28
!!! 514 !!!
515=109x3+188
516=487x1+29
517=131x2+255
!!! 518 !!!
!!! 519 !!!
520=17x30+10
521=13x39+14
522=23x22+16
!!! 523 !!!
524=139x3+107
525=83x5+110
!!! 526 !!!
!!! 527 !!!
!!! 528 !!!
529=339x1+190
!!! 530 !!!
!!! 531 !!!
532=37x14+14
!!! 533 !!!
534=13x40+14
!!! 535 !!!
536=37x14+18
537=59x9+6
537=17x31+10
!!! 538 !!!
!!! 539 !!!
!!! 540 !!!
!!! 541 !!!
!!! 542 !!!
!!! 543 !!!
544=229x2+86
545=23x23+16
!!! 546 !!!
547=13x41+14
!!! 548 !!!
549=389x1+160
!!! 550 !!!
!!! 551 !!!
!!! 552 !!!
!!! 553 !!!
554=17x32+10
554=107x5+19
555=521x1+34
!!! 556 !!!
!!! 557 !!!
!!! 558 !!!
559=163x3+70
559=211x2+137
560=13x42+14
!!! 561 !!!
!!! 562 !!!
563=353x1+210
564=79x7+11
564=53x10+34
564=53x9+87
565=173x3+46
566=149x3+119
!!! 567 !!!
568=23x24+16
568=61x9+19
569=37x15+14
!!! 570 !!!
571=17x33+10
!!! 572 !!!
573=13x43+14
573=37x15+18
!!! 574 !!!
!!! 575 !!!
576=113x5+11
!!! 577 !!!
!!! 578 !!!
579=109x5+34
579=269x2+41
!!! 580 !!!
!!! 581 !!!
!!! 582 !!!
!!! 583 !!!
584=89x6+50
584=419x1+165
!!! 585 !!!
586=13x44+14
587=283x2+21
588=17x34+10
!!! 589 !!!
590=83x7+9
591=23x25+16
591=157x3+120
!!! 592 !!!
!!! 593 !!!
!!! 594 !!!
!!! 595 !!!
596=59x10+6
596=173x3+77
!!! 597 !!!
!!! 598 !!!
599=13x45+14
factor((500^5+500^4+500^3+500^2+500+1)*500^14+500^6+500^5+500^4+500^3+500^2+500+1);
factor((501^5+501^4+501^3+501^2+501+1)*501^14+501^6+501^5+501^4+501^3+501^2+501+1);
factor((502^5+502^4+502^3+502^2+502+1)*502^14+502^6+502^5+502^4+502^3+502^2+502+1);
factor((504^5+504^4+504^3+504^2+504+1)*504^14+504^6+504^5+504^4+504^3+504^2+504+1);
factor((505^5+505^4+505^3+505^2+505+1)*505^14+505^6+505^5+505^4+505^3+505^2+505+1);
factor((506^5+506^4+506^3+506^2+506+1)*506^14+506^6+506^5+506^4+506^3+506^2+506+1);
factor((509^5+509^4+509^3+509^2+509+1)*509^14+509^6+509^5+509^4+509^3+509^2+509+1);
factor((510^5+510^4+510^3+510^2+510+1)*510^14+510^6+510^5+510^4+510^3+510^2+510+1);
factor((512^5+512^4+512^3+512^2+512+1)*512^14+512^6+512^5+512^4+512^3+512^2+512+1);
factor((514^5+514^4+514^3+514^2+514+1)*514^14+514^6+514^5+514^4+514^3+514^2+514+1);
factor((518^5+518^4+518^3+518^2+518+1)*518^14+518^6+518^5+518^4+518^3+518^2+518+1);
factor((519^5+519^4+519^3+519^2+519+1)*519^14+519^6+519^5+519^4+519^3+519^2+519+1);
factor((523^5+523^4+523^3+523^2+523+1)*523^14+523^6+523^5+523^4+523^3+523^2+523+1);
factor((526^5+526^4+526^3+526^2+526+1)*526^14+526^6+526^5+526^4+526^3+526^2+526+1);
factor((527^5+527^4+527^3+527^2+527+1)*527^14+527^6+527^5+527^4+527^3+527^2+527+1);
factor((528^5+528^4+528^3+528^2+528+1)*528^14+528^6+528^5+528^4+528^3+528^2+528+1);
factor((530^5+530^4+530^3+530^2+530+1)*530^14+530^6+530^5+530^4+530^3+530^2+530+1);
factor((531^5+531^4+531^3+531^2+531+1)*531^14+531^6+531^5+531^4+531^3+531^2+531+1);
factor((533^5+533^4+533^3+533^2+533+1)*533^14+533^6+533^5+533^4+533^3+533^2+533+1);
factor((535^5+535^4+535^3+535^2+535+1)*535^14+535^6+535^5+535^4+535^3+535^2+535+1);
factor((538^5+538^4+538^3+538^2+538+1)*538^14+538^6+538^5+538^4+538^3+538^2+538+1);
factor((539^5+539^4+539^3+539^2+539+1)*539^14+539^6+539^5+539^4+539^3+539^2+539+1);
factor((540^5+540^4+540^3+540^2+540+1)*540^14+540^6+540^5+540^4+540^3+540^2+540+1);
factor((541^5+541^4+541^3+541^2+541+1)*541^14+541^6+541^5+541^4+541^3+541^2+541+1);
factor((542^5+542^4+542^3+542^2+542+1)*542^14+542^6+542^5+542^4+542^3+542^2+542+1);
factor((543^5+543^4+543^3+543^2+543+1)*543^14+543^6+543^5+543^4+543^3+543^2+543+1);
factor((546^5+546^4+546^3+546^2+546+1)*546^14+546^6+546^5+546^4+546^3+546^2+546+1);
factor((548^5+548^4+548^3+548^2+548+1)*548^14+548^6+548^5+548^4+548^3+548^2+548+1);
factor((550^5+550^4+550^3+550^2+550+1)*550^14+550^6+550^5+550^4+550^3+550^2+550+1);
factor((551^5+551^4+551^3+551^2+551+1)*551^14+551^6+551^5+551^4+551^3+551^2+551+1);
factor((552^5+552^4+552^3+552^2+552+1)*552^14+552^6+552^5+552^4+552^3+552^2+552+1);
factor((553^5+553^4+553^3+553^2+553+1)*553^14+553^6+553^5+553^4+553^3+553^2+553+1);
factor((556^5+556^4+556^3+556^2+556+1)*556^14+556^6+556^5+556^4+556^3+556^2+556+1);
factor((557^5+557^4+557^3+557^2+557+1)*557^14+557^6+557^5+557^4+557^3+557^2+557+1);
factor((558^5+558^4+558^3+558^2+558+1)*558^14+558^6+558^5+558^4+558^3+558^2+558+1);
factor((561^5+561^4+561^3+561^2+561+1)*561^14+561^6+561^5+561^4+561^3+561^2+561+1);
factor((562^5+562^4+562^3+562^2+562+1)*562^14+562^6+562^5+562^4+562^3+562^2+562+1);
factor((567^5+567^4+567^3+567^2+567+1)*567^14+567^6+567^5+567^4+567^3+567^2+567+1);
factor((570^5+570^4+570^3+570^2+570+1)*570^14+570^6+570^5+570^4+570^3+570^2+570+1);
factor((572^5+572^4+572^3+572^2+572+1)*572^14+572^6+572^5+572^4+572^3+572^2+572+1);
factor((574^5+574^4+574^3+574^2+574+1)*574^14+574^6+574^5+574^4+574^3+574^2+574+1);
factor((575^5+575^4+575^3+575^2+575+1)*575^14+575^6+575^5+575^4+575^3+575^2+575+1);
factor((577^5+577^4+577^3+577^2+577+1)*577^14+577^6+577^5+577^4+577^3+577^2+577+1);
factor((578^5+578^4+578^3+578^2+578+1)*578^14+578^6+578^5+578^4+578^3+578^2+578+1);
factor((580^5+580^4+580^3+580^2+580+1)*580^14+580^6+580^5+580^4+580^3+580^2+580+1);
factor((581^5+581^4+581^3+581^2+581+1)*581^14+581^6+581^5+581^4+581^3+581^2+581+1);
factor((582^5+582^4+582^3+582^2+582+1)*582^14+582^6+582^5+582^4+582^3+582^2+582+1);
factor((583^5+583^4+583^3+583^2+583+1)*583^14+583^6+583^5+583^4+583^3+583^2+583+1);
factor((585^5+585^4+585^3+585^2+585+1)*585^14+585^6+585^5+585^4+585^3+585^2+585+1);
factor((589^5+589^4+589^3+589^2+589+1)*589^14+589^6+589^5+589^4+589^3+589^2+589+1);
factor((592^5+592^4+592^3+592^2+592+1)*592^14+592^6+592^5+592^4+592^3+592^2+592+1);
factor((593^5+593^4+593^3+593^2+593+1)*593^14+593^6+593^5+593^4+593^3+593^2+593+1);
factor((594^5+594^4+594^3+594^2+594+1)*594^14+594^6+594^5+594^4+594^3+594^2+594+1);
factor((595^5+595^4+595^3+595^2+595+1)*595^14+595^6+595^5+595^4+595^3+595^2+595+1);
factor((597^5+597^4+597^3+597^2+597+1)*597^14+597^6+597^5+597^4+597^3+597^2+597+1);
factor((598^5+598^4+598^3+598^2+598+1)*598^14+598^6+598^5+598^4+598^3+598^2+598+1);
(%i1) batch("a.bat");
read and interpret file: a.bat
2 3
4 5 6
(%i2) factor(1 + 500 + 500 + 500 + 500 + 500 + 500
2 3
4 5 14
+ (1 + 500 + 500 + 500 + 500 + 500 ) 500 )
(%o2) 116167 213079 80784059 943693123 17941738091 56448855866911
2 3
4 5 6
(%i3) factor(1 + 501 + 501 + 501 + 501 + 501 + 501
2 3
4 5 14
+ (1 + 501 + 501 + 501 + 501 + 501 ) 501 )
(%o3) 1985109706914174135358851733219650946595672577810013
素数ですね。
2 3
4 5 6
(%i4) factor(1 + 502 + 502 + 502 + 502 + 502 + 502
2 3
4 5 14
+ (1 + 502 + 502 + 502 + 502 + 502 ) 502 )
(%o4) 229 7201753679 7110363559250053 175821128966892702127253
2 3
4 5 6
(%i5) factor(1 + 504 + 504 + 504 + 504 + 504 + 504
2 3
4 5 14
+ (1 + 504 + 504 + 504 + 504 + 504 ) 504 )
(%o5) 839 11923 17749 12523373972622800743670830154185002292817
2 3
4 5 6
(%i6) factor(1 + 505 + 505 + 505 + 505 + 505 + 505
2 3
4 5 14
+ (1 + 505 + 505 + 505 + 505 + 505 ) 505 )
(%o6) 257 601 75407 198233827987578452317833236515535079472219
2 3
4 5 6
(%i7) factor(1 + 506 + 506 + 506 + 506 + 506 + 506
2 3
4 5 14
+ (1 + 506 + 506 + 506 + 506 + 506 ) 506 )
(%o7) 3677 6983 10762061 461992871 15556290563657 1207109080790279
2 3
4 5 6
(%i8) factor(1 + 509 + 509 + 509 + 509 + 509 + 509
2 3
4 5 14
+ (1 + 509 + 509 + 509 + 509 + 509 ) 509 )
(%o8) 5475250939 489877966171949149806187340099831836220359
2 3
4 5 6
(%i9) factor(1 + 510 + 510 + 510 + 510 + 510 + 510
2 3
4 5 14
+ (1 + 510 + 510 + 510 + 510 + 510 ) 510 )
(%o9) 498146963081175064126633 5588924625785352915393548467
2 3
4 5 6
(%i10) factor(1 + 512 + 512 + 512 + 512 + 512 + 512
2 3
4 5 14
+ (1 + 512 + 512 + 512 + 512 + 512 ) 512 )
(%o10) 215232013 13933860294885319164492706029267423319579333
2 3
4 5 6
(%i11) factor(1 + 514 + 514 + 514 + 514 + 514 + 514
2 3
4 5 14
+ (1 + 514 + 514 + 514 + 514 + 514 ) 514 )
(%o11) 221951 34918530157697 416708111395038544498379879519233
2 3
4 5 6
(%i12) factor(1 + 518 + 518 + 518 + 518 + 518 + 518
2 3
4 5 14
+ (1 + 518 + 518 + 518 + 518 + 518 ) 518 )
(%o12) 3742007484505186856018229750126600521404972911979699
素数ですね。
2 3
4 5 6
(%i13) factor(1 + 519 + 519 + 519 + 519 + 519 + 519
2 3
4 5 14
+ (1 + 519 + 519 + 519 + 519 + 519 ) 519 )
(%o13) 1873 2072428804366564387178192090623513166723801354737
2 3
4 5 6
(%i14) factor(1 + 523 + 523 + 523 + 523 + 523 + 523
2 3
4 5 14
+ (1 + 523 + 523 + 523 + 523 + 523 ) 523 )
(%o14) 617 6049727 1203212494725487116039800663215351651438231
2 3
4 5 6
(%i15) factor(1 + 526 + 526 + 526 + 526 + 526 + 526
2 3
4 5 14
+ (1 + 526 + 526 + 526 + 526 + 526 ) 526 )
(%o15) 1087 10782643 544892129 783953447953065873053387239303367
2 3
4 5 6
(%i16) factor(1 + 527 + 527 + 527 + 527 + 527 + 527
2 3
4 5 14
+ (1 + 527 + 527 + 527 + 527 + 527 ) 527 )
(%o16) 13873 374158980736838340219046309554928829892652415953
2 3
4 5 6
(%i17) factor(1 + 528 + 528 + 528 + 528 + 528 + 528
2 3
4 5 14
+ (1 + 528 + 528 + 528 + 528 + 528 ) 528 )
(%o17) 5381060011292783825955223109472003374428177640936209
素数ですね。
2 3
4 5 6
(%i18) factor(1 + 530 + 530 + 530 + 530 + 530 + 530
2 3
4 5 14
+ (1 + 530 + 530 + 530 + 530 + 530 ) 530 )
(%o18) 2557 2261158426503190658420569571954716599963339746683
2 3
4 5 6
(%i19) factor(1 + 531 + 531 + 531 + 531 + 531 + 531
2 3
4 5 14
+ (1 + 531 + 531 + 531 + 531 + 531 ) 531 )
(%o19) 1063666894770092324731 5633897085022674163368975826723
2 3
4 5 6
(%i20) factor(1 + 533 + 533 + 533 + 533 + 533 + 533
2 3
4 5 14
+ (1 + 533 + 533 + 533 + 533 + 533 ) 533 )
(%o20) 537913 33495438955819 357219233667329059808791728772687
2 3
4 5 6
(%i21) factor(1 + 535 + 535 + 535 + 535 + 535 + 535
2 3
4 5 14
+ (1 + 535 + 535 + 535 + 535 + 535 ) 535 )
(%o21) 269061469 3723273783460879 6898551360919978700462534011
2 3
4 5 6
(%i22) factor(1 + 538 + 538 + 538 + 538 + 538 + 538
2 3
4 5 14
+ (1 + 538 + 538 + 538 + 538 + 538 ) 538 )
(%o22) 1399121 5493080359752868727128314797561079200514617639
2 3
4 5 6
(%i23) factor(1 + 539 + 539 + 539 + 539 + 539 + 539
2 3
4 5 14
+ (1 + 539 + 539 + 539 + 539 + 539 ) 539 )
(%o23) 991 259453 33434707 19496432411 358107964927 132645959672453
2 3
4 5 6
(%i24) factor(1 + 540 + 540 + 540 + 540 + 540 + 540
2 3
4 5 14
+ (1 + 540 + 540 + 540 + 540 + 540 ) 540 )
(%o24) 6462361036361 1276130868310394547822555994242603086981
2 3
4 5 6
(%i25) factor(1 + 541 + 541 + 541 + 541 + 541 + 541
2 3
4 5 14
+ (1 + 541 + 541 + 541 + 541 + 541 ) 541 )
(%o25) 54978775433 59136653996297 2627239904048323485156297613
2 3
4 5 6
(%i26) factor(1 + 542 + 542 + 542 + 542 + 542 + 542
2 3
4 5 14
+ (1 + 542 + 542 + 542 + 542 + 542 ) 542 )
(%o26) 1295139009918223 6830808041648583486599482414498454533
2 3
4 5 6
(%i27) factor(1 + 543 + 543 + 543 + 543 + 543 + 543
2 3
4 5 14
+ (1 + 543 + 543 + 543 + 543 + 543 ) 543 )
(%o27) 403516829 498808216328707723 45519979171368950461030847
2 3
4 5 6
(%i28) factor(1 + 546 + 546 + 546 + 546 + 546 + 546
2 3
4 5 14
+ (1 + 546 + 546 + 546 + 546 + 546 ) 546 )
(%o28) 389 1297 70607 192778982356949 1481355627793343267010446777
2 3
4 5 6
(%i29) factor(1 + 548 + 548 + 548 + 548 + 548 + 548
2 3
4 5 14
+ (1 + 548 + 548 + 548 + 548 + 548 ) 548 )
(%o29) 5283071 2064131664276521851838904608521596341606825099
2 3
4 5 6
(%i30) factor(1 + 550 + 550 + 550 + 550 + 550 + 550
2 3
4 5 14
+ (1 + 550 + 550 + 550 + 550 + 550 ) 550 )
(%o30) 5036350120799 39093515715231743 59355477435272753363443
2 3
4 5 6
(%i31) factor(1 + 551 + 551 + 551 + 551 + 551 + 551
2 3
4 5 14
+ (1 + 551 + 551 + 551 + 551 + 551 ) 551 )
(%o31) 38569 905681007464597647 346302517104388080154115149591
2 3
4 5 6
(%i32) factor(1 + 552 + 552 + 552 + 552 + 552 + 552
2 3
4 5 14
+ (1 + 552 + 552 + 552 + 552 + 552 ) 552 )
(%o32) 10321 13826689 3794329670321149 23123571947696221210633549
2 3
4 5 6
(%i33) factor(1 + 553 + 553 + 553 + 553 + 553 + 553
2 3
4 5 14
+ (1 + 553 + 553 + 553 + 553 + 553 ) 553 )
(%o33) 5698921 4086722131 4896562591504027 113633004993615662917
2 3
4 5 6
(%i34) factor(1 + 556 + 556 + 556 + 556 + 556 + 556
2 3
4 5 14
+ (1 + 556 + 556 + 556 + 556 + 556 ) 556 )
(%o34) 1537651446770323645217453 9339958516633037385111381521
2 3
4 5 6
(%i35) factor(1 + 557 + 557 + 557 + 557 + 557 + 557
2 3
4 5 14
+ (1 + 557 + 557 + 557 + 557 + 557 ) 557 )
(%o35) 51047 318589 913751517468166891289825507720802451694903
2 3
4 5 6
(%i36) factor(1 + 558 + 558 + 558 + 558 + 558 + 558
2 3
4 5 14
+ (1 + 558 + 558 + 558 + 558 + 558 ) 558 )
(%o36) 22433 693323 997961 990586146855119860724397766308033161
2 3
4 5 6
(%i37) factor(1 + 561 + 561 + 561 + 561 + 561 + 561
2 3
4 5 14
+ (1 + 561 + 561 + 561 + 561 + 561 ) 561 )
(%o37) 33001871939 47666190474887952953 10822315217022704776039
2 3
4 5 6
(%i38) factor(1 + 562 + 562 + 562 + 562 + 562 + 562
2 3
4 5 14
+ (1 + 562 + 562 + 562 + 562 + 562 ) 562 )
(%o38) 1187 143470446599 1518899413268863 68080269558189215980141
2 3
4 5 6
(%i39) factor(1 + 567 + 567 + 567 + 567 + 567 + 567
2 3
4 5 14
+ (1 + 567 + 567 + 567 + 567 + 567 ) 567 )
(%o39) 69474001211 13664672405453 21949428165849440004931908223
2 3
4 5 6
(%i40) factor(1 + 570 + 570 + 570 + 570 + 570 + 570
2 3
4 5 14
+ (1 + 570 + 570 + 570 + 570 + 570 ) 570 )
(%o40) 1627 12619 304411 12841173431000559391 287016788342478152467
2 3
4 5 6
(%i41) factor(1 + 572 + 572 + 572 + 572 + 572 + 572
2 3
4 5 14
+ (1 + 572 + 572 + 572 + 572 + 572 ) 572 )
(%o41) 15889 117679 72613630519636589 181330467938389033192145471
2 3
4 5 6
(%i42) factor(1 + 574 + 574 + 574 + 574 + 574 + 574
2 3
4 5 14
+ (1 + 574 + 574 + 574 + 574 + 574 ) 574 )
(%o42) 45557 294479594713772574619061 1960978814998888533972163
2 3
4 5 6
(%i43) factor(1 + 575 + 575 + 575 + 575 + 575 + 575
2 3
4 5 14
+ (1 + 575 + 575 + 575 + 575 + 575 ) 575 )
(%o43) 28151 33275990557 60143766825966349 482646940558335340607
2 3
4 5 6
(%i44) factor(1 + 577 + 577 + 577 + 577 + 577 + 577
2 3
4 5 14
+ (1 + 577 + 577 + 577 + 577 + 577 ) 577 )
(%o44) 4099 62327 27457960138497734831 4140677131247478225224263
2 3
4 5 6
(%i45) factor(1 + 578 + 578 + 578 + 578 + 578 + 578
2 3
4 5 14
+ (1 + 578 + 578 + 578 + 578 + 578 ) 578 )
(%o45) 3809624633 579284400581143897 13602130444052813064124559
2 3
4 5 6
(%i46) factor(1 + 580 + 580 + 580 + 580 + 580 + 580
2 3
4 5 14
+ (1 + 580 + 580 + 580 + 580 + 580 ) 580 )
(%o46) 303283 2555549 11859997 2042542433 1707235217152292381860543
2 3
4 5 6
(%i47) factor(1 + 581 + 581 + 581 + 581 + 581 + 581
2 3
4 5 14
+ (1 + 581 + 581 + 581 + 581 + 581 ) 581 )
(%o47) 613 54029901989203205776911055345108839342641769979801
2 3
4 5 6
(%i48) factor(1 + 582 + 582 + 582 + 582 + 582 + 582
2 3
4 5 14
+ (1 + 582 + 582 + 582 + 582 + 582 ) 582 )
(%o48) 16111321758596849 2123989617977968855471016327374396451
2 3
4 5 6
(%i49) factor(1 + 583 + 583 + 583 + 583 + 583 + 583
2 3
4 5 14
+ (1 + 583 + 583 + 583 + 583 + 583 ) 583 )
(%o49) 1386787 125470901 2529426941 80329153808036021714868292267
2 3
4 5 6
(%i50) factor(1 + 585 + 585 + 585 + 585 + 585 + 585
2 3
4 5 14
+ (1 + 585 + 585 + 585 + 585 + 585 ) 585 )
(%o50) 150893 2563009 97563023382474914368127719249026318288353
2 3
4 5 6
(%i51) factor(1 + 589 + 589 + 589 + 589 + 589 + 589
2 3
4 5 14
+ (1 + 589 + 589 + 589 + 589 + 589 ) 589 )
(%o51) 72271 594243589847530263205793567688474527889266123731
2 3
4 5 6
(%i52) factor(1 + 592 + 592 + 592 + 592 + 592 + 592
2 3
4 5 14
+ (1 + 592 + 592 + 592 + 592 + 592 ) 592 )
(%o52) 266184643 177690274178179099605460542118648550865814363
2 3
4 5 6
(%i53) factor(1 + 593 + 593 + 593 + 593 + 593 + 593
2 3
4 5 14
+ (1 + 593 + 593 + 593 + 593 + 593 ) 593 )
(%o53) 1901 2459 11831 459551791 1921655784691495918307945290262891
2 3
4 5 6
(%i54) factor(1 + 594 + 594 + 594 + 594 + 594 + 594
2 3
4 5 14
+ (1 + 594 + 594 + 594 + 594 + 594 ) 594 )
(%o54) 29567 641085700746581371 2660423986475101469888252949443
2 3
4 5 6
(%i55) factor(1 + 595 + 595 + 595 + 595 + 595 + 595
2 3
4 5 14
+ (1 + 595 + 595 + 595 + 595 + 595 ) 595 )
(%o55) 350879443 6040908406212767 24563638300709907346948637141
2 3
4 5 6
(%i56) factor(1 + 597 + 597 + 597 + 597 + 597 + 597
2 3
4 5 14
+ (1 + 597 + 597 + 597 + 597 + 597 ) 597 )
(%o56) 55493275879621903441327706281070152800897405285085789
素数ですね。
2 3
4 5 6
(%i57) factor(1 + 598 + 598 + 598 + 598 + 598 + 598
2 3
4 5 14
+ (1 + 598 + 598 + 598 + 598 + 598 ) 598 )
(%o57) 26833 4238579 503685949118425597657752170912077459782497
(%o57)
a.bat
(%i58)
b.txtに追加されるものは、
229,502
839,504
257,505
601,505
617,523
991,539
389,546
613,581
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
223n+3
733n+3
59n+6
83n+9
17n+10
79n+11
113n+11
607n+12
829n+12
13n+14
37n+14
23n+16
37n+18
419n+18
937n+18
61n+19
107n+19
283n+21
619n+26
97n+28
487n+29
613n+30
53n+34
109n+34
521n+34
113n+41
269n+41
389n+43
173n+46
89n+50
317n+58
641n+58
863n+64
199n+69
163n+70
569n+72
307n+75
173n+77
317n+77
373n+83
103n+86
229n+86
53n+87
733n+93
191n+94
383n+103
139n+107
83n+110
761n+111
149n+119
157n+120
521n+121
163n+122
313n+123
211n+137
313n+137
547n+138
487n+148
647n+148
277n+150
349n+150
571n+152
389n+160
271n+164
419n+165
487n+179
109n+188
339n+190
283n+191
229n+192
263n+198
397n+205
619n+206
353n+210
251n+221
457n+230
401n+234
131n+255
881n+259
863n+286
601n+288
449n+294
419n+303
727n+307
463n+311
397n+323
577n+342
379n+346
991n+362
463n+370
269n+381
683n+383
271n+389
307n+431
509n+451
821n+473
787n+480
229n+502
839n+504
257n+505
601n+505
617n+523
991n+539
389n+546
613n+581
b.txt read! 105 個
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 600 !!!
601=103x5+86
602=397x1+205
!!! 603 !!!
!!! 604 !!!
605=17x35+10
606=37x16+14
606=113x5+41
!!! 607 !!!
608=83x6+110
!!! 609 !!!
610=37x16+18
610=97x6+28
611=163x3+122
612=13x46+14
!!! 613 !!!
614=23x26+16
!!! 615 !!!
!!! 616 !!!
617=53x11+34
617=53x10+87
!!! 618 !!!
619=607x1+12
!!! 620 !!!
!!! 621 !!!
622=17x36+10
!!! 623 !!!
624=109x4+188
625=13x47+14
!!! 626 !!!
!!! 627 !!!
!!! 628 !!!
629=61x10+19
!!! 630 !!!
!!! 631 !!!
!!! 632 !!!
!!! 633 !!!
!!! 634 !!!
635=487x1+148
635=401x1+234
!!! 636 !!!
637=23x27+16
638=13x48+14
639=17x37+10
!!! 640 !!!
641=569x1+72
642=521x1+121
643=79x8+11
643=37x17+14
643=613x1+30
!!! 644 !!!
645=619x1+26
!!! 646 !!!
647=37x17+18
648=131x3+255
!!! 649 !!!
650=229x2+192
650=269x1+381
651=13x49+14
!!! 652 !!!
!!! 653 !!!
!!! 654 !!!
655=59x11+6
656=17x38+10
!!! 657 !!!
!!! 658 !!!
!!! 659 !!!
660=23x28+16
660=271x1+389
661=107x6+19
!!! 662 !!!
663=139x4+107
664=13x50+14
!!! 665 !!!
666=199x3+69
666=487x1+179
667=191x3+94
!!! 668 !!!
!!! 669 !!!
670=53x12+34
670=53x11+87
!!! 671 !!!
672=223x3+3
673=83x8+9
673=17x39+10
673=89x7+50
!!! 674 !!!
!!! 675 !!!
!!! 676 !!!
677=13x51+14
!!! 678 !!!
!!! 679 !!!
680=37x18+14
!!! 681 !!!
!!! 682 !!!
683=23x29+16
684=37x18+18
685=547x1+138
!!! 686 !!!
687=457x1+230
688=109x6+34
689=113x6+11
689=307x2+75
690=17x40+10
690=13x52+14
690=61x11+19
691=83x7+110
692=317x2+58
!!! 693 !!!
!!! 694 !!!
!!! 695 !!!
!!! 696 !!!
!!! 697 !!!
!!! 698 !!!
699=641x1+58
factor((600^5+600^4+600^3+600^2+600+1)*600^14+600^6+600^5+600^4+600^3+600^2+600+1);
factor((603^5+603^4+603^3+603^2+603+1)*603^14+603^6+603^5+603^4+603^3+603^2+603+1);
factor((604^5+604^4+604^3+604^2+604+1)*604^14+604^6+604^5+604^4+604^3+604^2+604+1);
factor((607^5+607^4+607^3+607^2+607+1)*607^14+607^6+607^5+607^4+607^3+607^2+607+1);
factor((609^5+609^4+609^3+609^2+609+1)*609^14+609^6+609^5+609^4+609^3+609^2+609+1);
factor((613^5+613^4+613^3+613^2+613+1)*613^14+613^6+613^5+613^4+613^3+613^2+613+1);
factor((615^5+615^4+615^3+615^2+615+1)*615^14+615^6+615^5+615^4+615^3+615^2+615+1);
factor((616^5+616^4+616^3+616^2+616+1)*616^14+616^6+616^5+616^4+616^3+616^2+616+1);
factor((618^5+618^4+618^3+618^2+618+1)*618^14+618^6+618^5+618^4+618^3+618^2+618+1);
factor((620^5+620^4+620^3+620^2+620+1)*620^14+620^6+620^5+620^4+620^3+620^2+620+1);
factor((621^5+621^4+621^3+621^2+621+1)*621^14+621^6+621^5+621^4+621^3+621^2+621+1);
factor((623^5+623^4+623^3+623^2+623+1)*623^14+623^6+623^5+623^4+623^3+623^2+623+1);
factor((626^5+626^4+626^3+626^2+626+1)*626^14+626^6+626^5+626^4+626^3+626^2+626+1);
factor((627^5+627^4+627^3+627^2+627+1)*627^14+627^6+627^5+627^4+627^3+627^2+627+1);
factor((628^5+628^4+628^3+628^2+628+1)*628^14+628^6+628^5+628^4+628^3+628^2+628+1);
factor((630^5+630^4+630^3+630^2+630+1)*630^14+630^6+630^5+630^4+630^3+630^2+630+1);
factor((631^5+631^4+631^3+631^2+631+1)*631^14+631^6+631^5+631^4+631^3+631^2+631+1);
factor((632^5+632^4+632^3+632^2+632+1)*632^14+632^6+632^5+632^4+632^3+632^2+632+1);
factor((633^5+633^4+633^3+633^2+633+1)*633^14+633^6+633^5+633^4+633^3+633^2+633+1);
factor((634^5+634^4+634^3+634^2+634+1)*634^14+634^6+634^5+634^4+634^3+634^2+634+1);
factor((636^5+636^4+636^3+636^2+636+1)*636^14+636^6+636^5+636^4+636^3+636^2+636+1);
factor((640^5+640^4+640^3+640^2+640+1)*640^14+640^6+640^5+640^4+640^3+640^2+640+1);
factor((644^5+644^4+644^3+644^2+644+1)*644^14+644^6+644^5+644^4+644^3+644^2+644+1);
factor((646^5+646^4+646^3+646^2+646+1)*646^14+646^6+646^5+646^4+646^3+646^2+646+1);
factor((649^5+649^4+649^3+649^2+649+1)*649^14+649^6+649^5+649^4+649^3+649^2+649+1);
factor((652^5+652^4+652^3+652^2+652+1)*652^14+652^6+652^5+652^4+652^3+652^2+652+1);
factor((653^5+653^4+653^3+653^2+653+1)*653^14+653^6+653^5+653^4+653^3+653^2+653+1);
factor((654^5+654^4+654^3+654^2+654+1)*654^14+654^6+654^5+654^4+654^3+654^2+654+1);
factor((657^5+657^4+657^3+657^2+657+1)*657^14+657^6+657^5+657^4+657^3+657^2+657+1);
factor((658^5+658^4+658^3+658^2+658+1)*658^14+658^6+658^5+658^4+658^3+658^2+658+1);
factor((659^5+659^4+659^3+659^2+659+1)*659^14+659^6+659^5+659^4+659^3+659^2+659+1);
factor((662^5+662^4+662^3+662^2+662+1)*662^14+662^6+662^5+662^4+662^3+662^2+662+1);
factor((665^5+665^4+665^3+665^2+665+1)*665^14+665^6+665^5+665^4+665^3+665^2+665+1);
factor((668^5+668^4+668^3+668^2+668+1)*668^14+668^6+668^5+668^4+668^3+668^2+668+1);
factor((669^5+669^4+669^3+669^2+669+1)*669^14+669^6+669^5+669^4+669^3+669^2+669+1);
factor((671^5+671^4+671^3+671^2+671+1)*671^14+671^6+671^5+671^4+671^3+671^2+671+1);
factor((674^5+674^4+674^3+674^2+674+1)*674^14+674^6+674^5+674^4+674^3+674^2+674+1);
factor((675^5+675^4+675^3+675^2+675+1)*675^14+675^6+675^5+675^4+675^3+675^2+675+1);
factor((676^5+676^4+676^3+676^2+676+1)*676^14+676^6+676^5+676^4+676^3+676^2+676+1);
factor((678^5+678^4+678^3+678^2+678+1)*678^14+678^6+678^5+678^4+678^3+678^2+678+1);
factor((679^5+679^4+679^3+679^2+679+1)*679^14+679^6+679^5+679^4+679^3+679^2+679+1);
factor((681^5+681^4+681^3+681^2+681+1)*681^14+681^6+681^5+681^4+681^3+681^2+681+1);
factor((682^5+682^4+682^3+682^2+682+1)*682^14+682^6+682^5+682^4+682^3+682^2+682+1);
factor((686^5+686^4+686^3+686^2+686+1)*686^14+686^6+686^5+686^4+686^3+686^2+686+1);
factor((693^5+693^4+693^3+693^2+693+1)*693^14+693^6+693^5+693^4+693^3+693^2+693+1);
factor((694^5+694^4+694^3+694^2+694+1)*694^14+694^6+694^5+694^4+694^3+694^2+694+1);
factor((695^5+695^4+695^3+695^2+695+1)*695^14+695^6+695^5+695^4+695^3+695^2+695+1);
factor((696^5+696^4+696^3+696^2+696+1)*696^14+696^6+696^5+696^4+696^3+696^2+696+1);
factor((697^5+697^4+697^3+697^2+697+1)*697^14+697^6+697^5+697^4+697^3+697^2+697+1);
factor((698^5+698^4+698^3+698^2+698+1)*698^14+698^6+698^5+698^4+698^3+698^2+698+1);
(%i58) batch("a.bat");
read and interpret file:a.bat
2 3
4 5 6
(%i59) factor(1 + 600 + 600 + 600 + 600 + 600 + 600
2 3
4 5 14
+ (1 + 600 + 600 + 600 + 600 + 600 ) 600 )
(%o59) 422101249 6460056318512567 22384388969680246552253280047
2 3
4 5 6
(%i60) factor(1 + 603 + 603 + 603 + 603 + 603 + 603
2 3
4 5 14
+ (1 + 603 + 603 + 603 + 603 + 603 ) 603 )
(%o60) 49678590989 1350767123983137964958724303679352686477781
2 3
4 5 6
(%i61) factor(1 + 604 + 604 + 604 + 604 + 604 + 604
2 3
4 5 14
+ (1 + 604 + 604 + 604 + 604 + 604 ) 604 )
(%o61) 100944281 17217588115393 39844412444161530907322745841397
2 3
4 5 6
(%i62) factor(1 + 607 + 607 + 607 + 607 + 607 + 607
2 3
4 5 14
+ (1 + 607 + 607 + 607 + 607 + 607 ) 607 )
(%o62) 459072896004601 1529671181604386393 108348139952606887793
2 3
4 5 6
(%i63) factor(1 + 609 + 609 + 609 + 609 + 609 + 609
2 3
4 5 14
+ (1 + 609 + 609 + 609 + 609 + 609 ) 609 )
(%o63) 20477 124239053 2590548677 22449769457681 547411816682812033
2 3
4 5 6
(%i64) factor(1 + 613 + 613 + 613 + 613 + 613 + 613
2 3
4 5 14
+ (1 + 613 + 613 + 613 + 613 + 613 ) 613 )
(%o64) 1031 165014659 539109365664403889141212320646817258785961
2 3
4 5 6
(%i65) factor(1 + 615 + 615 + 615 + 615 + 615 + 615
2 3
4 5 14
+ (1 + 615 + 615 + 615 + 615 + 615 ) 615 )
(%o65) 2476681 23450681 116922451 35983523413 399306901167999699887
2 3
4 5 6
(%i66) factor(1 + 616 + 616 + 616 + 616 + 616 + 616
2 3
4 5 14
+ (1 + 616 + 616 + 616 + 616 + 616 ) 616 )
(%o66) 10427077 36915244003277 261439258731376040035776123973097
2 3
4 5 6
(%i67) factor(1 + 618 + 618 + 618 + 618 + 618 + 618
2 3
4 5 14
+ (1 + 618 + 618 + 618 + 618 + 618 ) 618 )
(%o67) 12211169 418104687594840569 20962450941314711894157119359
2 3
4 5 6
(%i68) factor(1 + 620 + 620 + 620 + 620 + 620 + 620
2 3
4 5 14
+ (1 + 620 + 620 + 620 + 620 + 620 ) 620 )
(%o68) 29059 231169 101863691 166308127214060638083520591303938461
2 3
4 5 6
(%i69) factor(1 + 621 + 621 + 621 + 621 + 621 + 621
2 3
4 5 14
+ (1 + 621 + 621 + 621 + 621 + 621 ) 621 )
(%o69) 1523 3463 22247843411765970878896309845561448276817283737
2 3
4 5 6
(%i70) factor(1 + 623 + 623 + 623 + 623 + 623 + 623
2 3
4 5 14
+ (1 + 623 + 623 + 623 + 623 + 623 ) 623 )
(%o70) 19949 656865919 1005487220324598203 9466645922047778005153
2 3
4 5 6
(%i71) factor(1 + 626 + 626 + 626 + 626 + 626 + 626
2 3
4 5 14
+ (1 + 626 + 626 + 626 + 626 + 626 ) 626 )
(%o71) 10867 31153 206558357 1954133969086243117565041266458505809
2 3
4 5 6
(%i72) factor(1 + 627 + 627 + 627 + 627 + 627 + 627
2 3
4 5 14
+ (1 + 627 + 627 + 627 + 627 + 627 ) 627 )
(%o72) 140856367203315368871387400079445698270597137613423569
素数ですね。
2 3
4 5 6
(%i73) factor(1 + 628 + 628 + 628 + 628 + 628 + 628
2 3
4 5 14
+ (1 + 628 + 628 + 628 + 628 + 628 ) 628 )
(%o73) 362161 400888550874016173561493216435739568381331373269
2 3
4 5 6
(%i74) factor(1 + 630 + 630 + 630 + 630 + 630 + 630
2 3
4 5 14
+ (1 + 630 + 630 + 630 + 630 + 630 ) 630 )
(%o74) 19963 581977693404030327672949 13274806458096735120369013
2 3
4 5 6
(%i75) factor(1 + 631 + 631 + 631 + 631 + 631 + 631
2 3
4 5 14
+ (1 + 631 + 631 + 631 + 631 + 631 ) 631 )
(%o75) 26591 38136901013076161 156735208451837833529086959484063
2 3
4 5 6
(%i76) factor(1 + 632 + 632 + 632 + 632 + 632 + 632
2 3
4 5 14
+ (1 + 632 + 632 + 632 + 632 + 632 ) 632 )
(%o76) 17483 9369064932220438204002132887481914506217613221003
2 3
4 5 6
(%i77) factor(1 + 633 + 633 + 633 + 633 + 633 + 633
2 3
4 5 14
+ (1 + 633 + 633 + 633 + 633 + 633 ) 633 )
(%o77) 821 137507 139999 4082048557 2616291063502580236184960827009
2 3
4 5 6
(%i78) factor(1 + 634 + 634 + 634 + 634 + 634 + 634
2 3
4 5 14
+ (1 + 634 + 634 + 634 + 634 + 634 ) 634 )
(%o78) 16919970091 19225414157113 534695036207245093872938184397
2 3
4 5 6
(%i79) factor(1 + 636 + 636 + 636 + 636 + 636 + 636
2 3
4 5 14
+ (1 + 636 + 636 + 636 + 636 + 636 ) 636 )
(%o79) 9114925991 1517727640262551 13348165955930783676665126093
2 3
4 5 6
(%i80) factor(1 + 640 + 640 + 640 + 640 + 640 + 640
2 3
4 5 14
+ (1 + 640 + 640 + 640 + 640 + 640 ) 640 )
(%o80) 208016900748813122623003747487680403934427018953114241
素数ですね。
2 3
4 5 6
(%i81) factor(1 + 644 + 644 + 644 + 644 + 644 + 644
2 3
4 5 14
+ (1 + 644 + 644 + 644 + 644 + 644 ) 644 )
(%o81) 239 5011 130706809951 4338831117729499 344757012788585186981
2 3
4 5 6
(%i82) factor(1 + 646 + 646 + 646 + 646 + 646 + 646
2 3
4 5 14
+ (1 + 646 + 646 + 646 + 646 + 646 ) 646 )
(%o82) 66194203759086053204507351 3752067845836598353030987013
2 3
4 5 6
(%i83) factor(1 + 649 + 649 + 649 + 649 + 649 + 649
2 3
4 5 14
+ (1 + 649 + 649 + 649 + 649 + 649 ) 649 )
(%o83) 913397 243012113025568546514453 1221888078494581216762261
2 3
4 5 6
(%i84) factor(1 + 652 + 652 + 652 + 652 + 652 + 652
2 3
4 5 14
+ (1 + 652 + 652 + 652 + 652 + 652 ) 652 )
(%o84) 2339 1846861 109657913 624980572688054514115068709500568147
2 3
4 5 6
(%i85) factor(1 + 653 + 653 + 653 + 653 + 653 + 653
2 3
4 5 14
+ (1 + 653 + 653 + 653 + 653 + 653 ) 653 )
(%o85) 5779913 1658218851727 31801886273787766075652264366030459
2 3
4 5 6
(%i86) factor(1 + 654 + 654 + 654 + 654 + 654 + 654
2 3
4 5 14
+ (1 + 654 + 654 + 654 + 654 + 654 ) 654 )
(%o86) 8191 763579 6623009 1362460486647638519 5559959424834232729
2 3
4 5 6
(%i87) factor(1 + 657 + 657 + 657 + 657 + 657 + 657
2 3
4 5 14
+ (1 + 657 + 657 + 657 + 657 + 657 ) 657 )
(%o87) 81704060719638870257 4189477961356676363626358533816157
2 3
4 5 6
(%i88) factor(1 + 658 + 658 + 658 + 658 + 658 + 658
2 3
4 5 14
+ (1 + 658 + 658 + 658 + 658 + 658 ) 658 )
(%o88) 307 1399273457 2586586886031997 317091397359861546504540713
2 3
4 5 6
(%i89) factor(1 + 659 + 659 + 659 + 659 + 659 + 659
2 3
4 5 14
+ (1 + 659 + 659 + 659 + 659 + 659 ) 659 )
(%o89) 4817 54577 3256860407 423542453214513868759909238425572727
2 3
4 5 6
(%i90) factor(1 + 662 + 662 + 662 + 662 + 662 + 662
2 3
4 5 14
+ (1 + 662 + 662 + 662 + 662 + 662 ) 662 )
(%o90) 18371 21519170776600880718204628719439921085444030318849
2 3
4 5 6
(%i91) factor(1 + 665 + 665 + 665 + 665 + 665 + 665
2 3
4 5 14
+ (1 + 665 + 665 + 665 + 665 + 665 ) 665 )
(%o91) 2029 79687667 32400723569 82231262580434922500426835950923
2 3
4 5 6
(%i92) factor(1 + 668 + 668 + 668 + 668 + 668 + 668
2 3
4 5 14
+ (1 + 668 + 668 + 668 + 668 + 668 ) 668 )
(%o92) 3299 681823 4136101777 3521357289099593 14323466728486262617
2 3
4 5 6
(%i93) factor(1 + 669 + 669 + 669 + 669 + 669 + 669
2 3
4 5 14
+ (1 + 669 + 669 + 669 + 669 + 669 ) 669 )
(%o93) 482776245428248743579686296838032969427820487838415901
素数ですね。
2 3
4 5 6
(%i94) factor(1 + 671 + 671 + 671 + 671 + 671 + 671
2 3
4 5 14
+ (1 + 671 + 671 + 671 + 671 + 671 ) 671 )
(%o94) 9442035871531 54114039539944069958023222229002515637123
2 3
4 5 6
(%i95) factor(1 + 674 + 674 + 674 + 674 + 674 + 674
2 3
4 5 14
+ (1 + 674 + 674 + 674 + 674 + 674 ) 674 )
(%o95) 1153 482340311133631442178353274529901217892067382385567
2 3
4 5 6
(%i96) factor(1 + 675 + 675 + 675 + 675 + 675 + 675
2 3
4 5 14
+ (1 + 675 + 675 + 675 + 675 + 675 ) 675 )
(%o96) 4951 6151 4065947 23500627 259902077 70494340207 10729308771211
2 3
4 5 6
(%i97) factor(1 + 676 + 676 + 676 + 676 + 676 + 676
2 3
4 5 14
+ (1 + 676 + 676 + 676 + 676 + 676 ) 676 )
(%o97) 588342397614275541332043552560411995552763644893921013
素数ですね。
2 3
4 5 6
(%i98) factor(1 + 678 + 678 + 678 + 678 + 678 + 678
2 3
4 5 14
+ (1 + 678 + 678 + 678 + 678 + 678 ) 678 )
(%o98) 1723 6779 72421 312371 98170943899607 23990323559534697283571
2 3
4 5 6
(%i99) factor(1 + 679 + 679 + 679 + 679 + 679 + 679
2 3
4 5 14
+ (1 + 679 + 679 + 679 + 679 + 679 ) 679 )
(%o99) 11681 54788040460463311660035886490661181393134274345121
2 3
4 5 6
(%i100) factor(1 + 681 + 681 + 681 + 681 + 681 + 681
2 3
4 5 14
+ (1 + 681 + 681 + 681 + 681 + 681 ) 681 )
(%o100) 57689 3869683 171055733 17722594095159224623934855482778203
2 3
4 5 6
(%i101) factor(1 + 682 + 682 + 682 + 682 + 682 + 682
2 3
4 5 14
+ (1 + 682 + 682 + 682 + 682 + 682 ) 682 )
(%o101) 695889656339382493641548580791535484962808157984032999
素数ですね。
2 3
4 5 6
(%i102) factor(1 + 686 + 686 + 686 + 686 + 686 + 686
2 3
4 5 14
+ (1 + 686 + 686 + 686 + 686 + 686 ) 686 )
(%o102) 8601490986877 90410319510432105642647785083101396225719
2 3
4 5 6
(%i103) factor(1 + 693 + 693 + 693 + 693 + 693 + 693
2 3
4 5 14
+ (1 + 693 + 693 + 693 + 693 + 693 ) 693 )
(%o103) 10009 94225382374681523990104213913295882452339677285861
2 3
4 5 6
(%i104) factor(1 + 694 + 694 + 694 + 694 + 694 + 694
2 3
4 5 14
+ (1 + 694 + 694 + 694 + 694 + 694 ) 694 )
(%o104) 14924854159 64945053433584112229327935450633704033684589
2 3
4 5 6
(%i105) factor(1 + 695 + 695 + 695 + 695 + 695 + 695
2 3
4 5 14
+ (1 + 695 + 695 + 695 + 695 + 695 ) 695 )
(%o105) 348415526653 2859164354833709690002830906902662157297557
2 3
4 5 6
(%i106) factor(1 + 696 + 696 + 696 + 696 + 696 + 696
2 3
4 5 14
+ (1 + 696 + 696 + 696 + 696 + 696 ) 696 )
(%o106) 6271 79801 2045760803093102957418178943180063299338711103
2 3
4 5 6
(%i107) factor(1 + 697 + 697 + 697 + 697 + 697 + 697
2 3
4 5 14
+ (1 + 697 + 697 + 697 + 697 + 697 ) 697 )
(%o107) 1051 1001021963151608717368350221449259609643882544872439
2 3
4 5 6
(%i108) factor(1 + 698 + 698 + 698 + 698 + 698 + 698
2 3
4 5 14
+ (1 + 698 + 698 + 698 + 698 + 698 ) 698 )
(%o108) 6362141 152444003 256575708007 8135557343687 534022054958897
(%o108)
a.bat
(%i109)
b.txtに追加されるのは、
821,633
239,644
307,658
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
223n+3
733n+3
59n+6
83n+9
17n+10
79n+11
113n+11
607n+12
829n+12
13n+14
37n+14
23n+16
37n+18
419n+18
937n+18
61n+19
107n+19
283n+21
619n+26
97n+28
487n+29
613n+30
53n+34
109n+34
521n+34
113n+41
269n+41
389n+43
173n+46
89n+50
317n+58
641n+58
863n+64
199n+69
163n+70
569n+72
307n+75
173n+77
317n+77
373n+83
103n+86
229n+86
53n+87
733n+93
191n+94
383n+103
139n+107
83n+110
761n+111
149n+119
157n+120
521n+121
163n+122
313n+123
211n+137
313n+137
547n+138
487n+148
647n+148
277n+150
349n+150
571n+152
389n+160
271n+164
419n+165
487n+179
109n+188
339n+190
283n+191
229n+192
263n+198
397n+205
619n+206
353n+210
251n+221
457n+230
401n+234
131n+255
881n+259
863n+286
601n+288
449n+294
419n+303
727n+307
463n+311
397n+323
577n+342
379n+346
991n+362
463n+370
269n+381
683n+383
271n+389
307n+431
509n+451
821n+473
787n+480
229n+502
839n+504
257n+505
601n+505
617n+523
991n+539
389n+546
613n+581
821n+633
239n+644
307n+658
b.txt read! 108 個
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 700 !!!
!!! 701 !!!
!!! 702 !!!
703=13x53+14
704=103x6+86
704=277x2+150
!!! 705 !!!
706=23x30+16
706=271x2+164
707=17x41+10
707=97x7+28
!!! 708 !!!
!!! 709 !!!
!!! 710 !!!
711=317x2+77
!!! 712 !!!
!!! 713 !!!
714=59x12+6
715=149x4+119
716=13x54+14
717=37x19+14
!!! 718 !!!
719=113x6+41
720=397x1+323
721=37x19+18
722=79x9+11
722=163x4+70
722=419x1+303
723=53x13+34
723=53x12+87
723=571x1+152
723=251x2+221
724=17x42+10
724=263x2+198
725=379x1+346
!!! 726 !!!
!!! 727 !!!
!!! 728 !!!
729=13x55+14
729=23x31+16
!!! 730 !!!
731=229x1+502
!!! 732 !!!
733=109x5+188
!!! 734 !!!
!!! 735 !!!
736=733x1+3
!!! 737 !!!
738=173x4+46
738=307x1+431
!!! 739 !!!
!!! 740 !!!
741=17x43+10
742=13x56+14
743=449x1+294
!!! 744 !!!
!!! 745 !!!
!!! 746 !!!
!!! 747 !!!
748=157x4+120
749=313x2+123
!!! 750 !!!
751=61x12+19
752=23x32+16
!!! 753 !!!
754=37x20+14
755=13x57+14
756=83x9+9
757=283x2+191
758=17x44+10
758=37x20+18
!!! 759 !!!
!!! 760 !!!
!!! 761 !!!
762=89x8+50
762=257x1+505
763=313x2+137
!!! 764 !!!
!!! 765 !!!
!!! 766 !!!
!!! 767 !!!
768=13x58+14
768=107x7+19
769=173x4+77
770=211x3+137
!!! 771 !!!
!!! 772 !!!
773=59x13+6
773=229x3+86
774=83x8+110
774=163x4+122
774=463x1+311
775=17x45+10
775=23x33+16
776=53x14+34
776=53x13+87
!!! 777 !!!
!!! 778 !!!
779=131x4+255
!!! 780 !!!
781=13x59+14
!!! 782 !!!
!!! 783 !!!
!!! 784 !!!
!!! 785 !!!
!!! 786 !!!
!!! 787 !!!
!!! 788 !!!
!!! 789 !!!
!!! 790 !!!
791=37x21+14
792=17x46+10
!!! 793 !!!
794=13x60+14
795=37x21+18
795=647x1+148
!!! 796 !!!
797=109x7+34
798=23x34+16
!!! 799 !!!
factor((700^5+700^4+700^3+700^2+700+1)*700^14+700^6+700^5+700^4+700^3+700^2+700+1);
factor((701^5+701^4+701^3+701^2+701+1)*701^14+701^6+701^5+701^4+701^3+701^2+701+1);
factor((702^5+702^4+702^3+702^2+702+1)*702^14+702^6+702^5+702^4+702^3+702^2+702+1);
factor((705^5+705^4+705^3+705^2+705+1)*705^14+705^6+705^5+705^4+705^3+705^2+705+1);
factor((708^5+708^4+708^3+708^2+708+1)*708^14+708^6+708^5+708^4+708^3+708^2+708+1);
factor((709^5+709^4+709^3+709^2+709+1)*709^14+709^6+709^5+709^4+709^3+709^2+709+1);
factor((710^5+710^4+710^3+710^2+710+1)*710^14+710^6+710^5+710^4+710^3+710^2+710+1);
factor((712^5+712^4+712^3+712^2+712+1)*712^14+712^6+712^5+712^4+712^3+712^2+712+1);
factor((713^5+713^4+713^3+713^2+713+1)*713^14+713^6+713^5+713^4+713^3+713^2+713+1);
factor((718^5+718^4+718^3+718^2+718+1)*718^14+718^6+718^5+718^4+718^3+718^2+718+1);
factor((726^5+726^4+726^3+726^2+726+1)*726^14+726^6+726^5+726^4+726^3+726^2+726+1);
factor((727^5+727^4+727^3+727^2+727+1)*727^14+727^6+727^5+727^4+727^3+727^2+727+1);
factor((728^5+728^4+728^3+728^2+728+1)*728^14+728^6+728^5+728^4+728^3+728^2+728+1);
factor((730^5+730^4+730^3+730^2+730+1)*730^14+730^6+730^5+730^4+730^3+730^2+730+1);
factor((732^5+732^4+732^3+732^2+732+1)*732^14+732^6+732^5+732^4+732^3+732^2+732+1);
factor((734^5+734^4+734^3+734^2+734+1)*734^14+734^6+734^5+734^4+734^3+734^2+734+1);
factor((735^5+735^4+735^3+735^2+735+1)*735^14+735^6+735^5+735^4+735^3+735^2+735+1);
factor((737^5+737^4+737^3+737^2+737+1)*737^14+737^6+737^5+737^4+737^3+737^2+737+1);
factor((739^5+739^4+739^3+739^2+739+1)*739^14+739^6+739^5+739^4+739^3+739^2+739+1);
factor((740^5+740^4+740^3+740^2+740+1)*740^14+740^6+740^5+740^4+740^3+740^2+740+1);
factor((744^5+744^4+744^3+744^2+744+1)*744^14+744^6+744^5+744^4+744^3+744^2+744+1);
factor((745^5+745^4+745^3+745^2+745+1)*745^14+745^6+745^5+745^4+745^3+745^2+745+1);
factor((746^5+746^4+746^3+746^2+746+1)*746^14+746^6+746^5+746^4+746^3+746^2+746+1);
factor((747^5+747^4+747^3+747^2+747+1)*747^14+747^6+747^5+747^4+747^3+747^2+747+1);
factor((750^5+750^4+750^3+750^2+750+1)*750^14+750^6+750^5+750^4+750^3+750^2+750+1);
factor((753^5+753^4+753^3+753^2+753+1)*753^14+753^6+753^5+753^4+753^3+753^2+753+1);
factor((759^5+759^4+759^3+759^2+759+1)*759^14+759^6+759^5+759^4+759^3+759^2+759+1);
factor((760^5+760^4+760^3+760^2+760+1)*760^14+760^6+760^5+760^4+760^3+760^2+760+1);
factor((761^5+761^4+761^3+761^2+761+1)*761^14+761^6+761^5+761^4+761^3+761^2+761+1);
factor((764^5+764^4+764^3+764^2+764+1)*764^14+764^6+764^5+764^4+764^3+764^2+764+1);
factor((765^5+765^4+765^3+765^2+765+1)*765^14+765^6+765^5+765^4+765^3+765^2+765+1);
factor((766^5+766^4+766^3+766^2+766+1)*766^14+766^6+766^5+766^4+766^3+766^2+766+1);
factor((767^5+767^4+767^3+767^2+767+1)*767^14+767^6+767^5+767^4+767^3+767^2+767+1);
factor((771^5+771^4+771^3+771^2+771+1)*771^14+771^6+771^5+771^4+771^3+771^2+771+1);
factor((772^5+772^4+772^3+772^2+772+1)*772^14+772^6+772^5+772^4+772^3+772^2+772+1);
factor((777^5+777^4+777^3+777^2+777+1)*777^14+777^6+777^5+777^4+777^3+777^2+777+1);
factor((778^5+778^4+778^3+778^2+778+1)*778^14+778^6+778^5+778^4+778^3+778^2+778+1);
factor((780^5+780^4+780^3+780^2+780+1)*780^14+780^6+780^5+780^4+780^3+780^2+780+1);
factor((782^5+782^4+782^3+782^2+782+1)*782^14+782^6+782^5+782^4+782^3+782^2+782+1);
factor((783^5+783^4+783^3+783^2+783+1)*783^14+783^6+783^5+783^4+783^3+783^2+783+1);
factor((784^5+784^4+784^3+784^2+784+1)*784^14+784^6+784^5+784^4+784^3+784^2+784+1);
factor((785^5+785^4+785^3+785^2+785+1)*785^14+785^6+785^5+785^4+785^3+785^2+785+1);
factor((786^5+786^4+786^3+786^2+786+1)*786^14+786^6+786^5+786^4+786^3+786^2+786+1);
factor((787^5+787^4+787^3+787^2+787+1)*787^14+787^6+787^5+787^4+787^3+787^2+787+1);
factor((788^5+788^4+788^3+788^2+788+1)*788^14+788^6+788^5+788^4+788^3+788^2+788+1);
factor((789^5+789^4+789^3+789^2+789+1)*789^14+789^6+789^5+789^4+789^3+789^2+789+1);
factor((790^5+790^4+790^3+790^2+790+1)*790^14+790^6+790^5+790^4+790^3+790^2+790+1);
factor((793^5+793^4+793^3+793^2+793+1)*793^14+793^6+793^5+793^4+793^3+793^2+793+1);
factor((796^5+796^4+796^3+796^2+796+1)*796^14+796^6+796^5+796^4+796^3+796^2+796+1);
factor((799^5+799^4+799^3+799^2+799+1)*799^14+799^6+799^5+799^4+799^3+799^2+799+1);
(%i1) batch("a.bat");
read and interpret file: a.bat
2 3
4 5 6
(%i2) factor(1 + 700 + 700 + 700 + 700 + 700 + 700
2 3
4 5 14
+ (1 + 700 + 700 + 700 + 700 + 700 ) 700 )
(%o2) 1434913 18569712149287829252579 42840337399060658451815663
2 3
4 5 6
(%i3) factor(1 + 701 + 701 + 701 + 701 + 701 + 701
2 3
4 5 14
+ (1 + 701 + 701 + 701 + 701 + 701 ) 701 )
(%o3) 1616754658847 3230390595985243 224575906254222470415178553
2 3
4 5 6
(%i4) factor(1 + 702 + 702 + 702 + 702 + 702 + 702
2 3
4 5 14
+ (1 + 702 + 702 + 702 + 702 + 702 ) 702 )
(%o4) 2011 4231 8597969 26044457 632496237655112203784707898945023
2 3
4 5 6
(%i5) factor(1 + 705 + 705 + 705 + 705 + 705 + 705
2 3
4 5 14
+ (1 + 705 + 705 + 705 + 705 + 705 ) 705 )
(%o5) 379 6073 8641 107507 118790543096510339 5144990457526083574951
2 3
4 5 6
(%i6) factor(1 + 708 + 708 + 708 + 708 + 708 + 708
2 3
4 5 14
+ (1 + 708 + 708 + 708 + 708 + 708 ) 708 )
(%o6) 613 1279 1471 12342088753 99520691080382442026673109425909889
2 3
4 5 6
(%i7) factor(1 + 709 + 709 + 709 + 709 + 709 + 709
2 3
4 5 14
+ (1 + 709 + 709 + 709 + 709 + 709 ) 709 )
(%o7) 2453198119650379 932611154531628899 636001613298326866781
2 3
4 5 6
(%i8) factor(1 + 710 + 710 + 710 + 710 + 710 + 710
2 3
4 5 14
+ (1 + 710 + 710 + 710 + 710 + 710 ) 710 )
(%o8) 3892199 34169556230477033 11237931069852039778805206576333
2 3
4 5 6
(%i9) factor(1 + 712 + 712 + 712 + 712 + 712 + 712
2 3
4 5 14
+ (1 + 712 + 712 + 712 + 712 + 712 ) 712 )
(%o9) 2179 3625195345999 28185364558331 7081381164707480354528279
2 3
4 5 6
(%i10) factor(1 + 713 + 713 + 713 + 713 + 713 + 713
2 3
4 5 14
+ (1 + 713 + 713 + 713 + 713 + 713 ) 713 )
(%o10) 55582253028019 29132278726432675617269087551402382409151
2 3
4 5 6
(%i11) factor(1 + 718 + 718 + 718 + 718 + 718 + 718
2 3
4 5 14
+ (1 + 718 + 718 + 718 + 718 + 718 ) 718 )
(%o11) 449 74082009751 55591786719384100430606980177735955554301
2 3
4 5 6
(%i12) factor(1 + 726 + 726 + 726 + 726 + 726 + 726
2 3
4 5 14
+ (1 + 726 + 726 + 726 + 726 + 726 ) 726 )
(%o12) 2282413920504189618602868272851625759514464462022165763
素数ですね。
2 3
4 5 6
(%i13) factor(1 + 727 + 727 + 727 + 727 + 727 + 727
2 3
4 5 14
+ (1 + 727 + 727 + 727 + 727 + 727 ) 727 )
(%o13) 134909 6333813293 336576445690794619 8146324322681918338123
2 3
4 5 6
(%i14) factor(1 + 728 + 728 + 728 + 728 + 728 + 728
2 3
4 5 14
+ (1 + 728 + 728 + 728 + 728 + 728 ) 728 )
(%o14) 620481437 3875826985713096831741279306024343530349776557
2 3
4 5 6
(%i15) factor(1 + 730 + 730 + 730 + 730 + 730 + 730
2 3
4 5 14
+ (1 + 730 + 730 + 730 + 730 + 730 ) 730 )
(%o15) 853 2970165456885838598944065947783714788346356175639227
2 3
4 5 6
(%i16) factor(1 + 732 + 732 + 732 + 732 + 732 + 732
2 3
4 5 14
+ (1 + 732 + 732 + 732 + 732 + 732 ) 732 )
(%o16) 7561 352959606145869050522157007799392193321715829877509
2 3
4 5 6
(%i17) factor(1 + 734 + 734 + 734 + 734 + 734 + 734
2 3
4 5 14
+ (1 + 734 + 734 + 734 + 734 + 734 ) 734 )
(%o17) 705307 31664966307203 251067536145227801 501267374054882131
2 3
4 5 6
(%i18) factor(1 + 735 + 735 + 735 + 735 + 735 + 735
2 3
4 5 14
+ (1 + 735 + 735 + 735 + 735 + 735 ) 735 )
(%o18) 46677347599251718477892791 61793750086692836811593796871
2 3
4 5 6
(%i19) factor(1 + 737 + 737 + 737 + 737 + 737 + 737
2 3
4 5 14
+ (1 + 737 + 737 + 737 + 737 + 737 ) 737 )
(%o19) 197927 191016761333 80333265918471734414944269728733900319
2 3
4 5 6
(%i20) factor(1 + 739 + 739 + 739 + 739 + 739 + 739
2 3
4 5 14
+ (1 + 739 + 739 + 739 + 739 + 739 ) 739 )
(%o20) 3197660896537996792215279953972121204545904870063627601
素数ですね。
2 3
4 5 6
(%i21) factor(1 + 740 + 740 + 740 + 740 + 740 + 740
2 3
4 5 14
+ (1 + 740 + 740 + 740 + 740 + 740 ) 740 )
(%o21) 467 48095564250546806347 146072361859162982416849134499109
2 3
4 5 6
(%i22) factor(1 + 744 + 744 + 744 + 744 + 744 + 744
2 3
4 5 14
+ (1 + 744 + 744 + 744 + 744 + 744 ) 744 )
(%o22) 7393 79481 289369803949 21376306028512181499052792599100853
2 3
4 5 6
(%i23) factor(1 + 745 + 745 + 745 + 745 + 745 + 745
2 3
4 5 14
+ (1 + 745 + 745 + 745 + 745 + 745 ) 745 )
(%o23) 6595958329 565294312726128433375533085496286805461596149
2 3
4 5 6
(%i24) factor(1 + 746 + 746 + 746 + 746 + 746 + 746
2 3
4 5 14
+ (1 + 746 + 746 + 746 + 746 + 746 ) 746 )
(%o24) 2039 12983 8840379437 16343952374431656038980066025493498227
2 3
4 5 6
(%i25) factor(1 + 747 + 747 + 747 + 747 + 747 + 747
2 3
4 5 14
+ (1 + 747 + 747 + 747 + 747 + 747 ) 747 )
(%o25) 76404567786123770506471 51351588856224473481388702109959
2 3
4 5 6
(%i26) factor(1 + 750 + 750 + 750 + 750 + 750 + 750
2 3
4 5 14
+ (1 + 750 + 750 + 750 + 750 + 750 ) 750 )
(%o26) 2473 6166987 7797487 376161404077 94649300484846132238756099
2 3
4 5 6
(%i27) factor(1 + 753 + 753 + 753 + 753 + 753 + 753
2 3
4 5 14
+ (1 + 753 + 753 + 753 + 753 + 753 ) 753 )
(%o27) 75091341419 60826359002622297493686005968696933903950311
2 3
4 5 6
(%i28) factor(1 + 759 + 759 + 759 + 759 + 759 + 759
2 3
4 5 14
+ (1 + 759 + 759 + 759 + 759 + 759 ) 759 )
(%o28) 2187613 2427704463220166141500592681713209325922489421877
2 3
4 5 6
(%i29) factor(1 + 760 + 760 + 760 + 760 + 760 + 760
2 3
4 5 14
+ (1 + 760 + 760 + 760 + 760 + 760 ) 760 )
(%o29) 814314451 1167095208396853 5729696811250135916254540686487
2 3
4 5 6
(%i30) factor(1 + 761 + 761 + 761 + 761 + 761 + 761
2 3
4 5 14
+ (1 + 761 + 761 + 761 + 761 + 761 ) 761 )
(%o30) 5309 19727582532131 53308068710083847142551748991070050747
2 3
4 5 6
(%i31) factor(1 + 764 + 764 + 764 + 764 + 764 + 764
2 3
4 5 14
+ (1 + 764 + 764 + 764 + 764 + 764 ) 764 )
(%o31) 2982461 2017287791505119457790147066809998767773413164241
2 3
4 5 6
(%i32) factor(1 + 765 + 765 + 765 + 765 + 765 + 765
2 3
4 5 14
+ (1 + 765 + 765 + 765 + 765 + 765 ) 765 )
(%o32) 844603 12821559106032846067 569563153681381436767310381341
2 3
4 5 6
(%i33) factor(1 + 766 + 766 + 766 + 766 + 766 + 766
2 3
4 5 14
+ (1 + 766 + 766 + 766 + 766 + 766 ) 766 )
(%o33) 948909074920459876153899907 6663299856092866028735134009
2 3
4 5 6
(%i34) factor(1 + 767 + 767 + 767 + 767 + 767 + 767
2 3
4 5 14
+ (1 + 767 + 767 + 767 + 767 + 767 ) 767 )
(%o34) 1783 218655937 16625162244345655497248889047154751261606279
2 3
4 5 6
(%i35) factor(1 + 771 + 771 + 771 + 771 + 771 + 771
2 3
4 5 14
+ (1 + 771 + 771 + 771 + 771 + 771 ) 771 )
(%o35) 26821 266760713101711863009939280982188800987638750733853
2 3
4 5 6
(%i36) factor(1 + 772 + 772 + 772 + 772 + 772 + 772
2 3
4 5 14
+ (1 + 772 + 772 + 772 + 772 + 772 ) 772 )
(%o36) 209449 2408869 14534501959620705462957882834885972875724169
2 3
4 5 6
(%i37) factor(1 + 777 + 777 + 777 + 777 + 777 + 777
2 3
4 5 14
+ (1 + 777 + 777 + 777 + 777 + 777 ) 777 )
(%o37) 2909 10691 223735333 1792376477 664710889600836580761235754411
2 3
4 5 6
(%i38) factor(1 + 778 + 778 + 778 + 778 + 778 + 778
2 3
4 5 14
+ (1 + 778 + 778 + 778 + 778 + 778 ) 778 )
(%o38) 189925975894567529 3281769065131902937 13629456487036307783
2 3
4 5 6
(%i39) factor(1 + 780 + 780 + 780 + 780 + 780 + 780
2 3
4 5 14
+ (1 + 780 + 780 + 780 + 780 + 780 ) 780 )
(%o39) 23197 190291292641 140698735862012437 14361958317101440826269
2 3
4 5 6
(%i40) factor(1 + 782 + 782 + 782 + 782 + 782 + 782
2 3
4 5 14
+ (1 + 782 + 782 + 782 + 782 + 782 ) 782 )
(%o40) 17839 6034595900824954602057733 86989198307402290311995377
2 3
4 5 6
(%i41) factor(1 + 783 + 783 + 783 + 783 + 783 + 783
2 3
4 5 14
+ (1 + 783 + 783 + 783 + 783 + 783 ) 783 )
(%o41) 352847781619 27191996568111899905562776585387755741961531
2 3
4 5 6
(%i42) factor(1 + 784 + 784 + 784 + 784 + 784 + 784
2 3
4 5 14
+ (1 + 784 + 784 + 784 + 784 + 784 ) 784 )
(%o42) 2957 3872633958407 858423736113570274039000204769251232899
2 3
4 5 6
(%i43) factor(1 + 785 + 785 + 785 + 785 + 785 + 785
2 3
4 5 14
+ (1 + 785 + 785 + 785 + 785 + 785 ) 785 )
(%o43) 183361 222963765318979237773793 246340497091900363747294957
2 3
4 5 6
(%i44) factor(1 + 786 + 786 + 786 + 786 + 786 + 786
2 3
4 5 14
+ (1 + 786 + 786 + 786 + 786 + 786 ) 786 )
(%o44) 1549 4481 14033 770669 109551307 5601807397 223970464786999265969
2 3
4 5 6
(%i45) factor(1 + 787 + 787 + 787 + 787 + 787 + 787
2 3
4 5 14
+ (1 + 787 + 787 + 787 + 787 + 787 ) 787 )
(%o45) 601806781 69885117613 251321893901467462989402469163083993
2 3
4 5 6
(%i46) factor(1 + 788 + 788 + 788 + 788 + 788 + 788
2 3
4 5 14
+ (1 + 788 + 788 + 788 + 788 + 788 ) 788 )
(%o46) 3994411 22870327 3311536347461857051 35792741835743253365227
2 3
4 5 6
(%i47) factor(1 + 789 + 789 + 789 + 789 + 789 + 789
2 3
4 5 14
+ (1 + 789 + 789 + 789 + 789 + 789 ) 789 )
(%o47) 967 11470632677055381022423728181468237240081520368828603
2 3
4 5 6
(%i48) factor(1 + 790 + 790 + 790 + 790 + 790 + 790
2 3
4 5 14
+ (1 + 790 + 790 + 790 + 790 + 790 ) 790 )
(%o48) 39229 291299 390938083 2543376254512772931527847716460791687
2 3
4 5 6
(%i49) factor(1 + 793 + 793 + 793 + 793 + 793 + 793
2 3
4 5 14
+ (1 + 793 + 793 + 793 + 793 + 793 ) 793 )
(%o49) 12917 2003731271 471777722148493134350671130735698521761407
2 3
4 5 6
(%i50) factor(1 + 796 + 796 + 796 + 796 + 796 + 796
2 3
4 5 14
+ (1 + 796 + 796 + 796 + 796 + 796 ) 796 )
(%o50) 1743092424093329 16455509393953667 457364529200665852618591
2 3
4 5 6
(%i51) factor(1 + 799 + 799 + 799 + 799 + 799 + 799
2 3
4 5 14
+ (1 + 799 + 799 + 799 + 799 + 799 ) 799 )
(%o51) 14090704098930465763316003364145779197959811661287040001
素数ですね。
(%o51)
a.bat
(%i52)
b.txtに追加されるのは、
379,705
613,708
449,718
853,730
467,740
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
223n+3
733n+3
59n+6
83n+9
17n+10
79n+11
113n+11
607n+12
829n+12
13n+14
37n+14
23n+16
37n+18
419n+18
937n+18
61n+19
107n+19
283n+21
619n+26
97n+28
487n+29
613n+30
53n+34
109n+34
521n+34
113n+41
269n+41
389n+43
173n+46
89n+50
317n+58
641n+58
863n+64
199n+69
163n+70
569n+72
307n+75
173n+77
317n+77
373n+83
103n+86
229n+86
53n+87
733n+93
191n+94
383n+103
139n+107
83n+110
761n+111
149n+119
157n+120
521n+121
163n+122
313n+123
211n+137
313n+137
547n+138
487n+148
647n+148
277n+150
349n+150
571n+152
389n+160
271n+164
419n+165
487n+179
109n+188
339n+190
283n+191
229n+192
263n+198
397n+205
619n+206
353n+210
251n+221
457n+230
401n+234
131n+255
881n+259
863n+286
601n+288
449n+294
419n+303
727n+307
463n+311
397n+323
577n+342
379n+346
991n+362
463n+370
269n+381
683n+383
271n+389
307n+431
509n+451
821n+473
787n+480
229n+502
839n+504
257n+505
601n+505
617n+523
991n+539
389n+546
613n+581
821n+633
239n+644
307n+658
379n+705
613n+708
449n+718
853n+730
467n+740
b.txt read! 113 個
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 800 !!!
801=79x10+11
802=113x7+11
802=139x5+107
!!! 803 !!!
804=97x8+28
!!! 805 !!!
!!! 806 !!!
807=13x61+14
807=103x7+86
!!! 808 !!!
809=17x47+10
!!! 810 !!!
!!! 811 !!!
812=61x13+19
!!! 813 !!!
!!! 814 !!!
!!! 815 !!!
!!! 816 !!!
!!! 817 !!!
!!! 818 !!!
!!! 819 !!!
820=13x62+14
821=23x35+16
821=389x2+43
!!! 822 !!!
!!! 823 !!!
!!! 824 !!!
825=619x1+206
826=17x48+10
826=733x1+93
!!! 827 !!!
828=37x22+14
829=53x15+34
829=373x2+83
829=53x14+87
!!! 830 !!!
!!! 831 !!!
832=59x14+6
832=37x22+18
832=113x7+41
833=13x63+14
833=463x1+370
!!! 834 !!!
!!! 835 !!!
!!! 836 !!!
!!! 837 !!!
!!! 838 !!!
839=83x10+9
!!! 840 !!!
841=829x1+12
842=109x6+188
843=17x49+10
844=23x36+16
!!! 845 !!!
846=13x64+14
!!! 847 !!!
848=269x3+41
848=349x2+150
!!! 849 !!!
!!! 850 !!!
851=89x9+50
!!! 852 !!!
!!! 853 !!!
!!! 854 !!!
!!! 855 !!!
856=419x2+18
857=83x9+110
858=191x4+94
859=13x65+14
860=17x50+10
!!! 861 !!!
!!! 862 !!!
!!! 863 !!!
864=149x5+119
865=37x23+14
865=199x4+69
!!! 866 !!!
867=23x37+16
868=339x2+190
869=37x23+18
869=383x2+103
870=283x3+21
!!! 871 !!!
872=13x66+14
872=761x1+111
873=61x14+19
!!! 874 !!!
875=107x8+19
!!! 876 !!!
877=17x51+10
!!! 878 !!!
879=229x3+192
880=79x11+11
!!! 881 !!!
882=53x16+34
882=53x15+87
883=239x1+644
!!! 884 !!!
885=13x67+14
885=163x5+70
!!! 886 !!!
!!! 887 !!!
!!! 888 !!!
889=601x1+288
890=23x38+16
891=59x15+6
!!! 892 !!!
!!! 893 !!!
894=17x52+10
895=223x4+3
!!! 896 !!!
!!! 897 !!!
898=13x68+14
!!! 899 !!!
factor((800^5+800^4+800^3+800^2+800+1)*800^14+800^6+800^5+800^4+800^3+800^2+800+1);
factor((803^5+803^4+803^3+803^2+803+1)*803^14+803^6+803^5+803^4+803^3+803^2+803+1);
factor((805^5+805^4+805^3+805^2+805+1)*805^14+805^6+805^5+805^4+805^3+805^2+805+1);
factor((806^5+806^4+806^3+806^2+806+1)*806^14+806^6+806^5+806^4+806^3+806^2+806+1);
factor((808^5+808^4+808^3+808^2+808+1)*808^14+808^6+808^5+808^4+808^3+808^2+808+1);
factor((810^5+810^4+810^3+810^2+810+1)*810^14+810^6+810^5+810^4+810^3+810^2+810+1);
factor((811^5+811^4+811^3+811^2+811+1)*811^14+811^6+811^5+811^4+811^3+811^2+811+1);
factor((813^5+813^4+813^3+813^2+813+1)*813^14+813^6+813^5+813^4+813^3+813^2+813+1);
factor((814^5+814^4+814^3+814^2+814+1)*814^14+814^6+814^5+814^4+814^3+814^2+814+1);
factor((815^5+815^4+815^3+815^2+815+1)*815^14+815^6+815^5+815^4+815^3+815^2+815+1);
factor((816^5+816^4+816^3+816^2+816+1)*816^14+816^6+816^5+816^4+816^3+816^2+816+1);
factor((817^5+817^4+817^3+817^2+817+1)*817^14+817^6+817^5+817^4+817^3+817^2+817+1);
factor((818^5+818^4+818^3+818^2+818+1)*818^14+818^6+818^5+818^4+818^3+818^2+818+1);
factor((819^5+819^4+819^3+819^2+819+1)*819^14+819^6+819^5+819^4+819^3+819^2+819+1);
factor((822^5+822^4+822^3+822^2+822+1)*822^14+822^6+822^5+822^4+822^3+822^2+822+1);
factor((823^5+823^4+823^3+823^2+823+1)*823^14+823^6+823^5+823^4+823^3+823^2+823+1);
factor((824^5+824^4+824^3+824^2+824+1)*824^14+824^6+824^5+824^4+824^3+824^2+824+1);
factor((827^5+827^4+827^3+827^2+827+1)*827^14+827^6+827^5+827^4+827^3+827^2+827+1);
factor((830^5+830^4+830^3+830^2+830+1)*830^14+830^6+830^5+830^4+830^3+830^2+830+1);
factor((831^5+831^4+831^3+831^2+831+1)*831^14+831^6+831^5+831^4+831^3+831^2+831+1);
factor((834^5+834^4+834^3+834^2+834+1)*834^14+834^6+834^5+834^4+834^3+834^2+834+1);
factor((835^5+835^4+835^3+835^2+835+1)*835^14+835^6+835^5+835^4+835^3+835^2+835+1);
factor((836^5+836^4+836^3+836^2+836+1)*836^14+836^6+836^5+836^4+836^3+836^2+836+1);
factor((837^5+837^4+837^3+837^2+837+1)*837^14+837^6+837^5+837^4+837^3+837^2+837+1);
factor((838^5+838^4+838^3+838^2+838+1)*838^14+838^6+838^5+838^4+838^3+838^2+838+1);
factor((840^5+840^4+840^3+840^2+840+1)*840^14+840^6+840^5+840^4+840^3+840^2+840+1);
factor((845^5+845^4+845^3+845^2+845+1)*845^14+845^6+845^5+845^4+845^3+845^2+845+1);
factor((847^5+847^4+847^3+847^2+847+1)*847^14+847^6+847^5+847^4+847^3+847^2+847+1);
factor((849^5+849^4+849^3+849^2+849+1)*849^14+849^6+849^5+849^4+849^3+849^2+849+1);
factor((850^5+850^4+850^3+850^2+850+1)*850^14+850^6+850^5+850^4+850^3+850^2+850+1);
factor((852^5+852^4+852^3+852^2+852+1)*852^14+852^6+852^5+852^4+852^3+852^2+852+1);
factor((853^5+853^4+853^3+853^2+853+1)*853^14+853^6+853^5+853^4+853^3+853^2+853+1);
factor((854^5+854^4+854^3+854^2+854+1)*854^14+854^6+854^5+854^4+854^3+854^2+854+1);
factor((855^5+855^4+855^3+855^2+855+1)*855^14+855^6+855^5+855^4+855^3+855^2+855+1);
factor((861^5+861^4+861^3+861^2+861+1)*861^14+861^6+861^5+861^4+861^3+861^2+861+1);
factor((862^5+862^4+862^3+862^2+862+1)*862^14+862^6+862^5+862^4+862^3+862^2+862+1);
factor((863^5+863^4+863^3+863^2+863+1)*863^14+863^6+863^5+863^4+863^3+863^2+863+1);
factor((866^5+866^4+866^3+866^2+866+1)*866^14+866^6+866^5+866^4+866^3+866^2+866+1);
factor((871^5+871^4+871^3+871^2+871+1)*871^14+871^6+871^5+871^4+871^3+871^2+871+1);
factor((874^5+874^4+874^3+874^2+874+1)*874^14+874^6+874^5+874^4+874^3+874^2+874+1);
factor((876^5+876^4+876^3+876^2+876+1)*876^14+876^6+876^5+876^4+876^3+876^2+876+1);
factor((878^5+878^4+878^3+878^2+878+1)*878^14+878^6+878^5+878^4+878^3+878^2+878+1);
factor((881^5+881^4+881^3+881^2+881+1)*881^14+881^6+881^5+881^4+881^3+881^2+881+1);
factor((884^5+884^4+884^3+884^2+884+1)*884^14+884^6+884^5+884^4+884^3+884^2+884+1);
factor((886^5+886^4+886^3+886^2+886+1)*886^14+886^6+886^5+886^4+886^3+886^2+886+1);
factor((887^5+887^4+887^3+887^2+887+1)*887^14+887^6+887^5+887^4+887^3+887^2+887+1);
factor((888^5+888^4+888^3+888^2+888+1)*888^14+888^6+888^5+888^4+888^3+888^2+888+1);
factor((892^5+892^4+892^3+892^2+892+1)*892^14+892^6+892^5+892^4+892^3+892^2+892+1);
factor((893^5+893^4+893^3+893^2+893+1)*893^14+893^6+893^5+893^4+893^3+893^2+893+1);
factor((896^5+896^4+896^3+896^2+896+1)*896^14+896^6+896^5+896^4+896^3+896^2+896+1);
factor((897^5+897^4+897^3+897^2+897+1)*897^14+897^6+897^5+897^4+897^3+897^2+897+1);
factor((899^5+899^4+899^3+899^2+899+1)*899^14+899^6+899^5+899^4+899^3+899^2+899+1);
(%i1) batch("a.bat");
read and interpret file: a.bat
2 3
4 5 6
(%i2) factor(1 + 800 + 800 + 800 + 800 + 800 + 800
2 3
4 5 14
+ (1 + 800 + 800 + 800 + 800 + 800 ) 800 )
(%o2) 991 9173 242449 6547078005223413433182048217540650857391443
2 3
4 5 6
(%i3) factor(1 + 803 + 803 + 803 + 803 + 803 + 803
2 3
4 5 14
+ (1 + 803 + 803 + 803 + 803 + 803 ) 803 )
(%o3) 1433 10811609392525684112327467959681485541741645038014073
2 3
4 5 6
(%i4) factor(1 + 805 + 805 + 805 + 805 + 805 + 805
2 3
4 5 14
+ (1 + 805 + 805 + 805 + 805 + 805 ) 805 )
(%o4) 9043 12011117 149542842119985255775388281052845738255667051
2 3
4 5 6
(%i5) factor(1 + 806 + 806 + 806 + 806 + 806 + 806
2 3
4 5 14
+ (1 + 806 + 806 + 806 + 806 + 806 ) 806 )
(%o5) 6729313 15130243927 163338399951009001603663461106753111813
2 3
4 5 6
(%i6) factor(1 + 808 + 808 + 808 + 808 + 808 + 808
2 3
4 5 14
+ (1 + 808 + 808 + 808 + 808 + 808 ) 808 )
(%o6) 293 8317812417367 7152814107794020966331010000518747440019
2 3
4 5 6
(%i7) factor(1 + 810 + 810 + 810 + 810 + 810 + 810
2 3
4 5 14
+ (1 + 810 + 810 + 810 + 810 + 810 ) 810 )
(%o7) 246919 73994143335117575048162067079344812284781157569569
2 3
4 5 6
(%i8) factor(1 + 811 + 811 + 811 + 811 + 811 + 811
2 3
4 5 14
+ (1 + 811 + 811 + 811 + 811 + 811 ) 811 )
(%o8) 80911 20594310309075335318303 11224764660295218351170988161
2 3
4 5 6
(%i9) factor(1 + 813 + 813 + 813 + 813 + 813 + 813
2 3
4 5 14
+ (1 + 813 + 813 + 813 + 813 + 813 ) 813 )
(%o9) 20498921 2932302266255075687 326073229529719746795236102947
2 3
4 5 6
(%i10) factor(1 + 814 + 814 + 814 + 814 + 814 + 814
2 3
4 5 14
+ (1 + 814 + 814 + 814 + 814 + 814 ) 814 )
(%o10) 7489 13627 16549105656973 11879521202024502599675756267261029
2 3
4 5 6
(%i11) factor(1 + 815 + 815 + 815 + 815 + 815 + 815
2 3
4 5 14
+ (1 + 815 + 815 + 815 + 815 + 815 ) 815 )
(%o11) 4003 142682131 35956101090349550927306784133557749289706537
2 3
4 5 6
(%i12) factor(1 + 816 + 816 + 816 + 816 + 816 + 816
2 3
4 5 14
+ (1 + 816 + 816 + 816 + 816 + 816 ) 816 )
(%o12) 449 2069 3366856226297 6720694641102750761822490267529705109
2 3
4 5 6
(%i13) factor(1 + 817 + 817 + 817 + 817 + 817 + 817
2 3
4 5 14
+ (1 + 817 + 817 + 817 + 817 + 817 ) 817 )
(%o13) 4664819 38974710896963 118340465201693863819093313831243797
2 3
4 5 6
(%i14) factor(1 + 818 + 818 + 818 + 818 + 818 + 818
2 3
4 5 14
+ (1 + 818 + 818 + 818 + 818 + 818 ) 818 )
(%o14) 4519 772392744244735922320891 6309043039829531752971162331
2 3
4 5 6
(%i15) factor(1 + 819 + 819 + 819 + 819 + 819 + 819
2 3
4 5 14
+ (1 + 819 + 819 + 819 + 819 + 819 ) 819 )
(%o15) 22538485592075963511186970164857206310026356851736104401
素数ですね。
2 3
4 5 6
(%i16) factor(1 + 822 + 822 + 822 + 822 + 822 + 822
2 3
4 5 14
+ (1 + 822 + 822 + 822 + 822 + 822 ) 822 )
(%o16) 29089623331553 625698989403403327 1327362800596799590143869
2 3
4 5 6
(%i17) factor(1 + 823 + 823 + 823 + 823 + 823 + 823
2 3
4 5 14
+ (1 + 823 + 823 + 823 + 823 + 823 ) 823 )
(%o17) 80100730807 54995745668441 5612538245092292431348939265567
2 3
4 5 6
(%i18) factor(1 + 824 + 824 + 824 + 824 + 824 + 824
2 3
4 5 14
+ (1 + 824 + 824 + 824 + 824 + 824 ) 824 )
(%o18) 21951383 95414357 12080051438507027292196177788315336085171
2 3
4 5 6
(%i19) factor(1 + 827 + 827 + 827 + 827 + 827 + 827
2 3
4 5 14
+ (1 + 827 + 827 + 827 + 827 + 827 ) 827 )
(%o19) 27110039086244987766251100990085726190213326692535938769
素数ですね。
2 3
4 5 6
(%i20) factor(1 + 830 + 830 + 830 + 830 + 830 + 830
2 3
4 5 14
+ (1 + 830 + 830 + 830 + 830 + 830 ) 830 )
(%o20) 281 103347743121055866056096879684750185466395853212060451
2 3
4 5 6
(%i21) factor(1 + 831 + 831 + 831 + 831 + 831 + 831
2 3
4 5 14
+ (1 + 831 + 831 + 831 + 831 + 831 ) 831 )
(%o21) 29712718148595403414643947858772190619531583364625600513
素数ですね。
2 3
4 5 6
(%i22) factor(1 + 834 + 834 + 834 + 834 + 834 + 834
2 3
4 5 14
+ (1 + 834 + 834 + 834 + 834 + 834 ) 834 )
(%o22) 12041 41771 56209 23001398227692632273 48930368503801747925813
2 3
4 5 6
(%i23) factor(1 + 835 + 835 + 835 + 835 + 835 + 835
2 3
4 5 14
+ (1 + 835 + 835 + 835 + 835 + 835 ) 835 )
(%o23) 32550934339198814825791408244852991219918318177033556561
素数ですね。
2 3
4 5 6
(%i24) factor(1 + 836 + 836 + 836 + 836 + 836 + 836
2 3
4 5 14
+ (1 + 836 + 836 + 836 + 836 + 836 ) 836 )
(%o24) 640493609968495168636453 51990533269061557381461607347121
2 3
4 5 6
(%i25) factor(1 + 837 + 837 + 837 + 837 + 837 + 837
2 3
4 5 14
+ (1 + 837 + 837 + 837 + 837 + 837 ) 837 )
(%o25) 1458118006556102987 23362010202195437449932198846715563767
2 3
4 5 6
(%i26) factor(1 + 838 + 838 + 838 + 838 + 838 + 838
2 3
4 5 14
+ (1 + 838 + 838 + 838 + 838 + 838 ) 838 )
(%o26) 810077410633 2305116677147 18661024367577680019397448863169
2 3
4 5 6
(%i27) factor(1 + 840 + 840 + 840 + 840 + 840 + 840
2 3
4 5 14
+ (1 + 840 + 840 + 840 + 840 + 840 ) 840 )
(%o27) 8293 4396550794357202439961567354442966483454638459185237
2 3
4 5 6
(%i28) factor(1 + 845 + 845 + 845 + 845 + 845 + 845
2 3
4 5 14
+ (1 + 845 + 845 + 845 + 845 + 845 ) 845 )
(%o28) 3890518394216006506883 10490211862529134270853420142686687
2 3
4 5 6
(%i29) factor(1 + 847 + 847 + 847 + 847 + 847 + 847
2 3
4 5 14
+ (1 + 847 + 847 + 847 + 847 + 847 ) 847 )
(%o29) 1453 7270721 7994344881579434167 505442631259405086192155459
2 3
4 5 6
(%i30) factor(1 + 849 + 849 + 849 + 849 + 849 + 849
2 3
4 5 14
+ (1 + 849 + 849 + 849 + 849 + 849 ) 849 )
(%o30) 375984693377 36173362565633 113545581649607 28908706978768523
2 3
4 5 6
(%i31) factor(1 + 850 + 850 + 850 + 850 + 850 + 850
2 3
4 5 14
+ (1 + 850 + 850 + 850 + 850 + 850 ) 850 )
(%o31) 1297 68473 26732219 19229875903791746196238340426868356314709
2 3
4 5 6
(%i32) factor(1 + 852 + 852 + 852 + 852 + 852 + 852
2 3
4 5 14
+ (1 + 852 + 852 + 852 + 852 + 852 ) 852 )
(%o32) 53407 1332769 670670601071398725623349802254458010058186843
2 3
4 5 6
(%i33) factor(1 + 853 + 853 + 853 + 853 + 853 + 853
2 3
4 5 14
+ (1 + 853 + 853 + 853 + 853 + 853 ) 853 )
(%o33) 13709 2395167821 2490472711 596921905222748086262299535483971
2 3
4 5 6
(%i34) factor(1 + 854 + 854 + 854 + 854 + 854 + 854
2 3
4 5 14
+ (1 + 854 + 854 + 854 + 854 + 854 ) 854 )
(%o34) 5237 27548497515986845558469 345961595350052324995733197867
2 3
4 5 6
(%i35) factor(1 + 855 + 855 + 855 + 855 + 855 + 855
2 3
4 5 14
+ (1 + 855 + 855 + 855 + 855 + 855 ) 855 )
(%o35) 11867 44916211 4056254865866820737 23604517805408627650494049
2 3
4 5 6
(%i36) factor(1 + 861 + 861 + 861 + 861 + 861 + 861
2 3
4 5 14
+ (1 + 861 + 861 + 861 + 861 + 861 ) 861 )
(%o36) 58286043733807762735948781681972013286316006872879222813
素数ですね。
2 3
4 5 6
(%i37) factor(1 + 862 + 862 + 862 + 862 + 862 + 862
2 3
4 5 14
+ (1 + 862 + 862 + 862 + 862 + 862 ) 862 )
(%o37) 57326908140692279 14899634309454376717 69760251299458092353
2 3
4 5 6
(%i38) factor(1 + 863 + 863 + 863 + 863 + 863 + 863
2 3
4 5 14
+ (1 + 863 + 863 + 863 + 863 + 863 ) 863 )
(%o38) 4231 107243 850879 8213025361 19209926343174102286656668999147
2 3
4 5 6
(%i39) factor(1 + 866 + 866 + 866 + 866 + 866 + 866
2 3
4 5 14
+ (1 + 866 + 866 + 866 + 866 + 866 ) 866 )
(%o39) 779477 11999929751 2524841270621346697 2755025631890208111277
2 3
4 5 6
(%i40) factor(1 + 871 + 871 + 871 + 871 + 871 + 871
2 3
4 5 14
+ (1 + 871 + 871 + 871 + 871 + 871 ) 871 )
(%o40) 5842499968612258403513428847 12423533311368413977014227279
2 3
4 5 6
(%i41) factor(1 + 874 + 874 + 874 + 874 + 874 + 874
2 3
4 5 14
+ (1 + 874 + 874 + 874 + 874 + 874 ) 874 )
(%o41) 77484424006029558743019585325081298052350749330815843751
素数ですね。
2 3
4 5 6
(%i42) factor(1 + 876 + 876 + 876 + 876 + 876 + 876
2 3
4 5 14
+ (1 + 876 + 876 + 876 + 876 + 876 ) 876 )
(%o42) 24683 57667 384961 1301233 1766581 143126426023487 448873104189703
2 3
4 5 6
(%i43) factor(1 + 878 + 878 + 878 + 878 + 878 + 878
2 3
4 5 14
+ (1 + 878 + 878 + 878 + 878 + 878 ) 878 )
(%o43) 69121857718169996418323 1222574471394253684138365216303833
2 3
4 5 6
(%i44) factor(1 + 881 + 881 + 881 + 881 + 881 + 881
2 3
4 5 14
+ (1 + 881 + 881 + 881 + 881 + 881 ) 881 )
(%o44) 33517481 6083666101493 3656610118841651 120926114153790487211
2 3
4 5 6
(%i45) factor(1 + 884 + 884 + 884 + 884 + 884 + 884
2 3
4 5 14
+ (1 + 884 + 884 + 884 + 884 + 884 ) 884 )
(%o45) 45121 21034260405721967 101339471319774852470408213110410443
2 3
4 5 6
(%i46) factor(1 + 886 + 886 + 886 + 886 + 886 + 886
2 3
4 5 14
+ (1 + 886 + 886 + 886 + 886 + 886 ) 886 )
(%o46) 5281 20441 39903361 23307912773159963623477255954515672742523
2 3
4 5 6
(%i47) factor(1 + 887 + 887 + 887 + 887 + 887 + 887
2 3
4 5 14
+ (1 + 887 + 887 + 887 + 887 + 887 ) 887 )
(%o47) 30917981 379862233 410956297237 21252292873795069986505733129
2 3
4 5 6
(%i48) factor(1 + 888 + 888 + 888 + 888 + 888 + 888
2 3
4 5 14
+ (1 + 888 + 888 + 888 + 888 + 888 ) 888 )
(%o48) 611874683059 171266811135029345737189664776584345148408291
2 3
4 5 6
(%i49) factor(1 + 892 + 892 + 892 + 892 + 892 + 892
2 3
4 5 14
+ (1 + 892 + 892 + 892 + 892 + 892 ) 892 )
(%o49) 9438277 25036350465427399516547 483009465948363164228367011
2 3
4 5 6
(%i50) factor(1 + 893 + 893 + 893 + 893 + 893 + 893
2 3
4 5 14
+ (1 + 893 + 893 + 893 + 893 + 893 ) 893 )
(%o50) 116590811040904783304363244411094615836330804073631121949
素数ですね。
2 3
4 5 6
(%i51) factor(1 + 896 + 896 + 896 + 896 + 896 + 896
2 3
4 5 14
+ (1 + 896 + 896 + 896 + 896 + 896 ) 896 )
(%o51) 2459 7735564299710605381 6532608456517859957805690580317047
2 3
4 5 6
(%i52) factor(1 + 897 + 897 + 897 + 897 + 897 + 897
2 3
4 5 14
+ (1 + 897 + 897 + 897 + 897 + 897 ) 897 )
(%o52) 6947 9679 21300536737 74876110691 1183529909878505212702002859
2 3
4 5 6
(%i53) factor(1 + 899 + 899 + 899 + 899 + 899 + 899
2 3
4 5 14
+ (1 + 899 + 899 + 899 + 899 + 899 ) 899 )
(%o53) 132408997673344487754261329532779764216991868098947410001
素数ですね。
(%o53)
a.bat
(%i54)
b.txtに追加されるものは、
991,800
293,808
449,816
281,830
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
223n+3
733n+3
59n+6
83n+9
17n+10
79n+11
113n+11
607n+12
829n+12
13n+14
37n+14
23n+16
37n+18
419n+18
937n+18
61n+19
107n+19
283n+21
619n+26
97n+28
487n+29
613n+30
53n+34
109n+34
521n+34
113n+41
269n+41
389n+43
173n+46
89n+50
317n+58
641n+58
863n+64
199n+69
163n+70
569n+72
307n+75
173n+77
317n+77
373n+83
103n+86
229n+86
53n+87
733n+93
191n+94
383n+103
139n+107
83n+110
761n+111
149n+119
157n+120
521n+121
163n+122
313n+123
211n+137
313n+137
547n+138
487n+148
647n+148
277n+150
349n+150
571n+152
389n+160
271n+164
419n+165
487n+179
109n+188
339n+190
283n+191
229n+192
263n+198
397n+205
619n+206
353n+210
251n+221
457n+230
401n+234
131n+255
881n+259
863n+286
601n+288
449n+294
419n+303
727n+307
463n+311
397n+323
577n+342
379n+346
991n+362
463n+370
269n+381
683n+383
271n+389
307n+431
509n+451
821n+473
787n+480
229n+502
839n+504
257n+505
601n+505
617n+523
991n+539
389n+546
613n+581
821n+633
239n+644
307n+658
379n+705
613n+708
449n+718
853n+730
467n+740
991n+800
293n+808
449n+816
281n+830
b.txt read! 117 個
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 900 !!!
901=97x9+28
902=37x24+14
!!! 903 !!!
!!! 904 !!!
905=157x5+120
906=37x24+18
906=109x8+34
!!! 907 !!!
!!! 908 !!!
!!! 909 !!!
910=103x8+86
910=131x5+255
911=17x53+10
911=13x69+14
911=173x5+46
!!! 912 !!!
913=23x39+16
!!! 914 !!!
915=113x8+11
916=353x2+210
!!! 917 !!!
!!! 918 !!!
919=577x1+342
919=269x2+381
!!! 920 !!!
!!! 921 !!!
922=83x11+9
!!! 923 !!!
924=13x70+14
!!! 925 !!!
!!! 926 !!!
927=863x1+64
928=17x54+10
!!! 929 !!!
!!! 930 !!!
931=271x2+389
!!! 932 !!!
!!! 933 !!!
934=61x15+19
935=53x17+34
935=53x16+87
935=389x1+546
936=23x40+16
937=13x71+14
937=163x5+122
938=389x2+160
939=37x25+14
940=89x10+50
940=83x10+110
941=139x6+107
942=173x5+77
943=37x25+18
!!! 944 !!!
945=17x55+10
945=113x8+41
!!! 946 !!!
!!! 947 !!!
!!! 948 !!!
!!! 949 !!!
950=59x16+6
950=13x72+14
951=109x7+188
!!! 952 !!!
!!! 953 !!!
!!! 954 !!!
955=937x1+18
!!! 956 !!!
!!! 957 !!!
!!! 958 !!!
959=79x12+11
959=23x41+16
960=509x1+451
960=229x2+502
!!! 961 !!!
962=17x56+10
963=13x73+14
!!! 964 !!!
965=307x1+658
!!! 966 !!!
!!! 967 !!!
!!! 968 !!!
!!! 969 !!!
!!! 970 !!!
!!! 971 !!!
!!! 972 !!!
!!! 973 !!!
974=251x3+221
!!! 975 !!!
976=13x74+14
976=37x26+14
977=271x3+164
!!! 978 !!!
979=17x57+10
980=37x26+18
981=211x4+137
981=277x3+150
982=23x42+16
982=107x9+19
!!! 983 !!!
!!! 984 !!!
!!! 985 !!!
!!! 986 !!!
987=263x3+198
988=53x18+34
988=53x17+87
989=13x75+14
!!! 990 !!!
!!! 991 !!!
!!! 992 !!!
!!! 993 !!!
!!! 994 !!!
995=61x16+19
996=17x58+10
996=307x3+75
!!! 997 !!!
998=97x10+28
999=397x2+205
factor((900^5+900^4+900^3+900^2+900+1)*900^14+900^6+900^5+900^4+900^3+900^2+900+1);
factor((903^5+903^4+903^3+903^2+903+1)*903^14+903^6+903^5+903^4+903^3+903^2+903+1);
factor((904^5+904^4+904^3+904^2+904+1)*904^14+904^6+904^5+904^4+904^3+904^2+904+1);
factor((907^5+907^4+907^3+907^2+907+1)*907^14+907^6+907^5+907^4+907^3+907^2+907+1);
factor((908^5+908^4+908^3+908^2+908+1)*908^14+908^6+908^5+908^4+908^3+908^2+908+1);
factor((909^5+909^4+909^3+909^2+909+1)*909^14+909^6+909^5+909^4+909^3+909^2+909+1);
factor((912^5+912^4+912^3+912^2+912+1)*912^14+912^6+912^5+912^4+912^3+912^2+912+1);
factor((914^5+914^4+914^3+914^2+914+1)*914^14+914^6+914^5+914^4+914^3+914^2+914+1);
factor((917^5+917^4+917^3+917^2+917+1)*917^14+917^6+917^5+917^4+917^3+917^2+917+1);
factor((918^5+918^4+918^3+918^2+918+1)*918^14+918^6+918^5+918^4+918^3+918^2+918+1);
factor((920^5+920^4+920^3+920^2+920+1)*920^14+920^6+920^5+920^4+920^3+920^2+920+1);
factor((921^5+921^4+921^3+921^2+921+1)*921^14+921^6+921^5+921^4+921^3+921^2+921+1);
factor((923^5+923^4+923^3+923^2+923+1)*923^14+923^6+923^5+923^4+923^3+923^2+923+1);
factor((925^5+925^4+925^3+925^2+925+1)*925^14+925^6+925^5+925^4+925^3+925^2+925+1);
factor((926^5+926^4+926^3+926^2+926+1)*926^14+926^6+926^5+926^4+926^3+926^2+926+1);
factor((929^5+929^4+929^3+929^2+929+1)*929^14+929^6+929^5+929^4+929^3+929^2+929+1);
factor((930^5+930^4+930^3+930^2+930+1)*930^14+930^6+930^5+930^4+930^3+930^2+930+1);
factor((932^5+932^4+932^3+932^2+932+1)*932^14+932^6+932^5+932^4+932^3+932^2+932+1);
factor((933^5+933^4+933^3+933^2+933+1)*933^14+933^6+933^5+933^4+933^3+933^2+933+1);
factor((944^5+944^4+944^3+944^2+944+1)*944^14+944^6+944^5+944^4+944^3+944^2+944+1);
factor((946^5+946^4+946^3+946^2+946+1)*946^14+946^6+946^5+946^4+946^3+946^2+946+1);
factor((947^5+947^4+947^3+947^2+947+1)*947^14+947^6+947^5+947^4+947^3+947^2+947+1);
factor((948^5+948^4+948^3+948^2+948+1)*948^14+948^6+948^5+948^4+948^3+948^2+948+1);
factor((949^5+949^4+949^3+949^2+949+1)*949^14+949^6+949^5+949^4+949^3+949^2+949+1);
factor((952^5+952^4+952^3+952^2+952+1)*952^14+952^6+952^5+952^4+952^3+952^2+952+1);
factor((953^5+953^4+953^3+953^2+953+1)*953^14+953^6+953^5+953^4+953^3+953^2+953+1);
factor((954^5+954^4+954^3+954^2+954+1)*954^14+954^6+954^5+954^4+954^3+954^2+954+1);
factor((956^5+956^4+956^3+956^2+956+1)*956^14+956^6+956^5+956^4+956^3+956^2+956+1);
factor((957^5+957^4+957^3+957^2+957+1)*957^14+957^6+957^5+957^4+957^3+957^2+957+1);
factor((958^5+958^4+958^3+958^2+958+1)*958^14+958^6+958^5+958^4+958^3+958^2+958+1);
factor((961^5+961^4+961^3+961^2+961+1)*961^14+961^6+961^5+961^4+961^3+961^2+961+1);
factor((964^5+964^4+964^3+964^2+964+1)*964^14+964^6+964^5+964^4+964^3+964^2+964+1);
factor((966^5+966^4+966^3+966^2+966+1)*966^14+966^6+966^5+966^4+966^3+966^2+966+1);
factor((967^5+967^4+967^3+967^2+967+1)*967^14+967^6+967^5+967^4+967^3+967^2+967+1);
factor((968^5+968^4+968^3+968^2+968+1)*968^14+968^6+968^5+968^4+968^3+968^2+968+1);
factor((969^5+969^4+969^3+969^2+969+1)*969^14+969^6+969^5+969^4+969^3+969^2+969+1);
factor((970^5+970^4+970^3+970^2+970+1)*970^14+970^6+970^5+970^4+970^3+970^2+970+1);
factor((971^5+971^4+971^3+971^2+971+1)*971^14+971^6+971^5+971^4+971^3+971^2+971+1);
factor((972^5+972^4+972^3+972^2+972+1)*972^14+972^6+972^5+972^4+972^3+972^2+972+1);
factor((973^5+973^4+973^3+973^2+973+1)*973^14+973^6+973^5+973^4+973^3+973^2+973+1);
factor((975^5+975^4+975^3+975^2+975+1)*975^14+975^6+975^5+975^4+975^3+975^2+975+1);
factor((978^5+978^4+978^3+978^2+978+1)*978^14+978^6+978^5+978^4+978^3+978^2+978+1);
factor((983^5+983^4+983^3+983^2+983+1)*983^14+983^6+983^5+983^4+983^3+983^2+983+1);
factor((984^5+984^4+984^3+984^2+984+1)*984^14+984^6+984^5+984^4+984^3+984^2+984+1);
factor((985^5+985^4+985^3+985^2+985+1)*985^14+985^6+985^5+985^4+985^3+985^2+985+1);
factor((986^5+986^4+986^3+986^2+986+1)*986^14+986^6+986^5+986^4+986^3+986^2+986+1);
factor((990^5+990^4+990^3+990^2+990+1)*990^14+990^6+990^5+990^4+990^3+990^2+990+1);
factor((991^5+991^4+991^3+991^2+991+1)*991^14+991^6+991^5+991^4+991^3+991^2+991+1);
factor((992^5+992^4+992^3+992^2+992+1)*992^14+992^6+992^5+992^4+992^3+992^2+992+1);
factor((993^5+993^4+993^3+993^2+993+1)*993^14+993^6+993^5+993^4+993^3+993^2+993+1);
factor((994^5+994^4+994^3+994^2+994+1)*994^14+994^6+994^5+994^4+994^3+994^2+994+1);
factor((997^5+997^4+997^3+997^2+997+1)*997^14+997^6+997^5+997^4+997^3+997^2+997+1);
(%i1) batch("a.bat");
read and interpret file: a.bat
2 3
4 5 6
(%i2) factor(1 + 900 + 900 + 900 + 900 + 900 + 900
2 3
4 5 14
+ (1 + 900 + 900 + 900 + 900 + 900 ) 900 )
(%o2) 15262829 4535748296456311867 1953468949033167915754652800907
2 3
4 5 6
(%i3) factor(1 + 903 + 903 + 903 + 903 + 903 + 903
2 3
4 5 14
+ (1 + 903 + 903 + 903 + 903 + 903 ) 903 )
(%o3) 4889 2858873497919192549 10307028875657097472742185862710069
2 3
4 5 6
(%i4) factor(1 + 904 + 904 + 904 + 904 + 904 + 904
2 3
4 5 14
+ (1 + 904 + 904 + 904 + 904 + 904 ) 904 )
(%o4) 61057 8462557222642319 284736917513463311142682455505428647
2 3
4 5 6
(%i5) factor(1 + 907 + 907 + 907 + 907 + 907 + 907
2 3
4 5 14
+ (1 + 907 + 907 + 907 + 907 + 907 ) 907 )
(%o5) 2473 63356828185024096328493452563912615972720039282167913
2 3
4 5 6
(%i6) factor(1 + 908 + 908 + 908 + 908 + 908 + 908
2 3
4 5 14
+ (1 + 908 + 908 + 908 + 908 + 908 ) 908 )
(%o6) 359 1515595331 552574409330987 532158750664554380287241489243
2 3
4 5 6
(%i7) factor(1 + 909 + 909 + 909 + 909 + 909 + 909
2 3
4 5 14
+ (1 + 909 + 909 + 909 + 909 + 909 ) 909 )
(%o7) 3701 44144106492710894748537813380807749759990786585851401
2 3
4 5 6
(%i8) factor(1 + 912 + 912 + 912 + 912 + 912 + 912
2 3
4 5 14
+ (1 + 912 + 912 + 912 + 912 + 912 ) 912 )
(%o8) 623261 41235367758465764971 6767660516935658678974201233359
2 3
4 5 6
(%i9) factor(1 + 914 + 914 + 914 + 914 + 914 + 914
2 3
4 5 14
+ (1 + 914 + 914 + 914 + 914 + 914 ) 914 )
(%o9) 25253 957016782770832796384123 7502752228983104467724987129
2 3
4 5 6
(%i10) factor(1 + 917 + 917 + 917 + 917 + 917 + 917
2 3
4 5 14
+ (1 + 917 + 917 + 917 + 917 + 917 ) 917 )
(%o10) 97862927 1211650889 174329446818797 9335224816909307289184199
2 3
4 5 6
(%i11) factor(1 + 918 + 918 + 918 + 918 + 918 + 918
2 3
4 5 14
+ (1 + 918 + 918 + 918 + 918 + 918 ) 918 )
(%o11) 512276153 52399251581987 7339307176537817524910897511484009
2 3
4 5 6
(%i12) factor(1 + 920 + 920 + 920 + 920 + 920 + 920
2 3
4 5 14
+ (1 + 920 + 920 + 920 + 920 + 920 ) 920 )
(%o12) 7968921518381 2328488280673697 11065407939640933262703403453
2 3
4 5 6
(%i13) factor(1 + 921 + 921 + 921 + 921 + 921 + 921
2 3
4 5 14
+ (1 + 921 + 921 + 921 + 921 + 921 ) 921 )
(%o13) 77151937529699 2716801695162813073370622607224417195611087
2 3
4 5 6
(%i14) factor(1 + 923 + 923 + 923 + 923 + 923 + 923
2 3
4 5 14
+ (1 + 923 + 923 + 923 + 923 + 923 ) 923 )
(%o14) 19374451 387765347 29073994172014384990232563911608839589657
2 3
4 5 6
(%i15) factor(1 + 925 + 925 + 925 + 925 + 925 + 925
2 3
4 5 14
+ (1 + 925 + 925 + 925 + 925 + 925 ) 925 )
(%o15) 2800039283927375461377249829 81282781940250436784833954969
2 3
4 5 6
(%i16) factor(1 + 926 + 926 + 926 + 926 + 926 + 926
2 3
4 5 14
+ (1 + 926 + 926 + 926 + 926 + 926 ) 926 )
(%o16) 210139 885727 12353648341 101036017965672522638424368447536531
2 3
4 5 6
(%i17) factor(1 + 929 + 929 + 929 + 929 + 929 + 929
2 3
4 5 14
+ (1 + 929 + 929 + 929 + 929 + 929 ) 929 )
(%o17) 4023673 61396501502437544237128725516979303554625069770037
2 3
4 5 6
(%i18) factor(1 + 930 + 930 + 930 + 930 + 930 + 930
2 3
4 5 14
+ (1 + 930 + 930 + 930 + 930 + 930 ) 930 )
(%o18) 219467 1148878309029532444703927875881802292972609032887293
2 3
4 5 6
(%i19) factor(1 + 932 + 932 + 932 + 932 + 932 + 932
2 3
4 5 14
+ (1 + 932 + 932 + 932 + 932 + 932 ) 932 )
(%o19) 757 2731 444725082532233479 285666531737814137017889120525093
2 3
4 5 6
(%i20) factor(1 + 933 + 933 + 933 + 933 + 933 + 933
2 3
4 5 14
+ (1 + 933 + 933 + 933 + 933 + 933 ) 933 )
(%o20) 263 30931 12017903 2741817592734872018560849138187666649702871
2 3
4 5 6
(%i21) factor(1 + 944 + 944 + 944 + 944 + 944 + 944
2 3
4 5 14
+ (1 + 944 + 944 + 944 + 944 + 944 ) 944 )
(%o21) 14713 17977 16926989 74804896752455773951270383182004583903109
2 3
4 5 6
(%i22) factor(1 + 946 + 946 + 946 + 946 + 946 + 946
2 3
4 5 14
+ (1 + 946 + 946 + 946 + 946 + 946 ) 946 )
(%o22) 2459 141785686655263927782994240730579039272655214717148157
2 3
4 5 6
(%i23) factor(1 + 947 + 947 + 947 + 947 + 947 + 947
2 3
4 5 14
+ (1 + 947 + 947 + 947 + 947 + 947 ) 947 )
(%o23) 434859183893 10995112455941 74397804843299826792157494586153
2 3
4 5 6
(%i24) factor(1 + 948 + 948 + 948 + 948 + 948 + 948
2 3
4 5 14
+ (1 + 948 + 948 + 948 + 948 + 948 ) 948 )
(%o24) 2521 4905273223 29348149286501200312248852447716938827916363
2 3
4 5 6
(%i25) factor(1 + 949 + 949 + 949 + 949 + 949 + 949
2 3
4 5 14
+ (1 + 949 + 949 + 949 + 949 + 949 ) 949 )
(%o25) 2347 5827 27074335326336048717306798057887834433755329097629
2 3
4 5 6
(%i26) factor(1 + 952 + 952 + 952 + 952 + 952 + 952
2 3
4 5 14
+ (1 + 952 + 952 + 952 + 952 + 952 ) 952 )
(%o26) 1620717719 262311030329 924771670837232420625949473719529319
2 3
4 5 6
(%i27) factor(1 + 953 + 953 + 953 + 953 + 953 + 953
2 3
4 5 14
+ (1 + 953 + 953 + 953 + 953 + 953 ) 953 )
(%o27) 2837 16954700639 8338186457397732484896232695430647400553863
2 3
4 5 6
(%i28) factor(1 + 954 + 954 + 954 + 954 + 954 + 954
2 3
4 5 14
+ (1 + 954 + 954 + 954 + 954 + 954 ) 954 )
(%o28) 487 1621 69427 157540408368724338101 47385149052788414404601219
2 3
4 5 6
(%i29) factor(1 + 956 + 956 + 956 + 956 + 956 + 956
2 3
4 5 14
+ (1 + 956 + 956 + 956 + 956 + 956 ) 956 )
(%o29) 24159007 17622819551237984002029010910693067583392938523859
2 3
4 5 6
(%i30) factor(1 + 957 + 957 + 957 + 957 + 957 + 957
2 3
4 5 14
+ (1 + 957 + 957 + 957 + 957 + 957 ) 957 )
(%o30) 25055515223 5254087391831 17244764299545037 191303524147811329
2 3
4 5 6
(%i31) factor(1 + 958 + 958 + 958 + 958 + 958 + 958
2 3
4 5 14
+ (1 + 958 + 958 + 958 + 958 + 958 ) 958 )
(%o31) 433 16448723 400394752127 193682665074751 802045545938201346073
2 3
4 5 6
(%i32) factor(1 + 961 + 961 + 961 + 961 + 961 + 961
2 3
4 5 14
+ (1 + 961 + 961 + 961 + 961 + 961 ) 961 )
(%o32) 1213 3486115363 6657395395275384082619 16698967267714027205633
2 3
4 5 6
(%i33) factor(1 + 964 + 964 + 964 + 964 + 964 + 964
2 3
4 5 14
+ (1 + 964 + 964 + 964 + 964 + 964 ) 964 )
(%o33) 6011 42573412427320766850296689 1949077917014590279447717919
2 3
4 5 6
(%i34) factor(1 + 966 + 966 + 966 + 966 + 966 + 966
2 3
4 5 14
+ (1 + 966 + 966 + 966 + 966 + 966 ) 966 )
(%o34) 695790938543 745652445326085439704219696113148425657673341
2 3
4 5 6
(%i35) factor(1 + 967 + 967 + 967 + 967 + 967 + 967
2 3
4 5 14
+ (1 + 967 + 967 + 967 + 967 + 967 ) 967 )
(%o35) 62377123 1564581011816651 5421618567394595816389407735692033
2 3
4 5 6
(%i36) factor(1 + 968 + 968 + 968 + 968 + 968 + 968
2 3
4 5 14
+ (1 + 968 + 968 + 968 + 968 + 968 ) 968 )
(%o36) 2251 195479 58235249 21058097476066971476717497566631184240269
2 3
4 5 6
(%i37) factor(1 + 969 + 969 + 969 + 969 + 969 + 969
2 3
4 5 14
+ (1 + 969 + 969 + 969 + 969 + 969 ) 969 )
(%o37) 75671515187954348973839 7272232473927070515662616596202659
2 3
4 5 6
(%i38) factor(1 + 970 + 970 + 970 + 970 + 970 + 970
2 3
4 5 14
+ (1 + 970 + 970 + 970 + 970 + 970 ) 970 )
(%o38) 561191272370224207220988108816356739487413731625161124871
素数ですね。
2 3
4 5 6
(%i39) factor(1 + 971 + 971 + 971 + 971 + 971 + 971
2 3
4 5 14
+ (1 + 971 + 971 + 971 + 971 + 971 ) 971 )
(%o39) 7836823 3451281439 75509249633736495817 280215591029916116737
2 3
4 5 6
(%i40) factor(1 + 972 + 972 + 972 + 972 + 972 + 972
2 3
4 5 14
+ (1 + 972 + 972 + 972 + 972 + 972 ) 972 )
(%o40) 14676039977 65101854149851 314375031462161 1942923847665939487
2 3
4 5 6
(%i41) factor(1 + 973 + 973 + 973 + 973 + 973 + 973
2 3
4 5 14
+ (1 + 973 + 973 + 973 + 973 + 973 ) 973 )
(%o41) 1097 75401 23575249 199376836080508488053 1530649728736603088681
2 3
4 5 6
(%i42) factor(1 + 975 + 975 + 975 + 975 + 975 + 975
2 3
4 5 14
+ (1 + 975 + 975 + 975 + 975 + 975 ) 975 )
(%o42) 33941 1592852609107 11445456842628201756238972794334039253423
2 3
4 5 6
(%i43) factor(1 + 978 + 978 + 978 + 978 + 978 + 978
2 3
4 5 14
+ (1 + 978 + 978 + 978 + 978 + 978 ) 978 )
(%o43) 6191597 36093635145181 2935277915037166701814225149252059687
2 3
4 5 6
(%i44) factor(1 + 983 + 983 + 983 + 983 + 983 + 983
2 3
4 5 14
+ (1 + 983 + 983 + 983 + 983 + 983 ) 983 )
(%o44) 991909 52967857 523582321 26271789861124489679417276311423693
2 3
4 5 6
(%i45) factor(1 + 984 + 984 + 984 + 984 + 984 + 984
2 3
4 5 14
+ (1 + 984 + 984 + 984 + 984 + 984 ) 984 )
(%o45) 4019 364556655381593497169957 502881215547594987766644503047
2 3
4 5 6
(%i46) factor(1 + 985 + 985 + 985 + 985 + 985 + 985
2 3
4 5 14
+ (1 + 985 + 985 + 985 + 985 + 985 ) 985 )
(%o46) 3889859109444009931 193105943121286083951136507431604842631
2 3
4 5 6
(%i47) factor(1 + 986 + 986 + 986 + 986 + 986 + 986
2 3
4 5 14
+ (1 + 986 + 986 + 986 + 986 + 986 ) 986 )
(%o47) 765776559342489558897771875951355908617946626356571159063
素数ですね。
2 3
4 5 6
(%i48) factor(1 + 990 + 990 + 990 + 990 + 990 + 990
2 3
4 5 14
+ (1 + 990 + 990 + 990 + 990 + 990 ) 990 )
(%o48) 351347 36871722929921484379 63837801068493460904483067398507
2 3
4 5 6
(%i49) factor(1 + 991 + 991 + 991 + 991 + 991 + 991
2 3
4 5 14
+ (1 + 991 + 991 + 991 + 991 + 991 ) 991 )
(%o49) 2657071 27884651014957696159 11378094125652232330950523064017
2 3
4 5 6
(%i50) factor(1 + 992 + 992 + 992 + 992 + 992 + 992
2 3
4 5 14
+ (1 + 992 + 992 + 992 + 992 + 992 ) 992 )
(%o50) 859329633789252568821772572083785721204351636638553507809
素数ですね。
2 3
4 5 6
(%i51) factor(1 + 993 + 993 + 993 + 993 + 993 + 993
2 3
4 5 14
+ (1 + 993 + 993 + 993 + 993 + 993 ) 993 )
(%o51) 46687 74326004428942957353481073 252427428313927530553781699
2 3
4 5 6
(%i52) factor(1 + 994 + 994 + 994 + 994 + 994 + 994
2 3
4 5 14
+ (1 + 994 + 994 + 994 + 994 + 994 ) 994 )
(%o52) 892849869433828620392072307652189778068228721130389805151
素数ですね。
2 3
4 5 6
(%i53) factor(1 + 997 + 997 + 997 + 997 + 997 + 997
2 3
4 5 14
+ (1 + 997 + 997 + 997 + 997 + 997 ) 997 )
(%o53) 2731 8867 72127904447 318263276985733 1700809113790542454567207
(%o53)
a.bat
(%i54)
b.txtに追加されるものは、
359,908
757,932
263,933
487,954
433,958
$gcc -Wall Autohajiku.c -o Autohajiku
$./Autohajiku
223n+3
733n+3
59n+6
83n+9
17n+10
79n+11
113n+11
607n+12
829n+12
13n+14
37n+14
23n+16
37n+18
419n+18
937n+18
61n+19
107n+19
283n+21
619n+26
97n+28
487n+29
613n+30
53n+34
109n+34
521n+34
113n+41
269n+41
389n+43
173n+46
89n+50
317n+58
641n+58
863n+64
199n+69
163n+70
569n+72
307n+75
173n+77
317n+77
373n+83
103n+86
229n+86
53n+87
733n+93
191n+94
383n+103
139n+107
83n+110
761n+111
149n+119
157n+120
521n+121
163n+122
313n+123
211n+137
313n+137
547n+138
487n+148
647n+148
277n+150
349n+150
571n+152
389n+160
271n+164
419n+165
487n+179
109n+188
339n+190
283n+191
229n+192
263n+198
397n+205
619n+206
353n+210
251n+221
457n+230
401n+234
131n+255
881n+259
863n+286
601n+288
449n+294
419n+303
727n+307
463n+311
397n+323
577n+342
379n+346
991n+362
463n+370
269n+381
683n+383
271n+389
307n+431
509n+451
821n+473
787n+480
229n+502
839n+504
257n+505
601n+505
617n+523
991n+539
389n+546
613n+581
821n+633
239n+644
307n+658
379n+705
613n+708
449n+718
853n+730
467n+740
991n+800
293n+808
449n+816
281n+830
359n+908
757n+932
263n+933
487n+954
433n+958
b.txt read! 122 個
$gcc -Wall hajiku-6.c -o hajiku-6
$./hajiku-6
!!! 1000 !!!
!!! 1001 !!!
1002=13x76+14
1002=229x4+86
1003=487x2+29
1003=419x2+165
!!! 1004 !!!
1005=83x12+9
1005=23x43+16
!!! 1006 !!!
!!! 1007 !!!
!!! 1008 !!!
1009=59x17+6
1009=317x3+58
!!! 1010 !!!
!!! 1011 !!!
!!! 1012 !!!
1013=17x59+10
1013=37x27+14
1013=103x9+86
1013=149x6+119
!!! 1014 !!!
1015=13x77+14
1015=109x9+34
!!! 1016 !!!
1017=37x27+18
!!! 1018 !!!
1019=257x2+505
!!! 1020 !!!
!!! 1021 !!!
!!! 1022 !!!
1023=83x11+110
!!! 1024 !!!
!!! 1025 !!!
!!! 1026 !!!
!!! 1027 !!!
1028=113x9+11
1028=13x78+14
1028=23x44+16
1028=317x3+77
1029=89x11+50
1030=17x60+10
!!! 1031 !!!
!!! 1032 !!!
!!! 1033 !!!
1034=727x1+307
!!! 1035 !!!
1036=401x2+234
!!! 1037 !!!
1038=79x13+11
!!! 1039 !!!
1040=283x3+191
1041=13x79+14
1041=53x19+34
1041=53x18+87
1041=131x6+255
!!! 1042 !!!
!!! 1043 !!!
!!! 1044 !!!
1045=307x2+431
!!! 1046 !!!
1047=17x61+10
1048=163x6+70
1049=191x5+94
1050=37x28+14
1051=23x45+16
!!! 1052 !!!
!!! 1053 !!!
1054=13x80+14
1054=37x28+18
!!! 1055 !!!
1056=61x17+19
!!! 1057 !!!
1058=113x9+41
!!! 1059 !!!
1060=109x8+188
!!! 1061 !!!
1062=157x6+120
1062=313x3+123
!!! 1063 !!!
1064=17x62+10
1064=199x5+69
!!! 1065 !!!
1066=683x1+383
1067=13x81+14
1068=59x18+6
!!! 1069 !!!
!!! 1070 !!!
!!! 1071 !!!
!!! 1072 !!!
!!! 1073 !!!
1074=23x46+16
!!! 1075 !!!
1076=521x2+34
1076=313x3+137
!!! 1077 !!!
!!! 1078 !!!
!!! 1079 !!!
1080=13x82+14
1080=139x7+107
1081=17x63+10
!!! 1082 !!!
!!! 1083 !!!
1084=173x6+46
1084=379x1+705
!!! 1085 !!!
!!! 1086 !!!
1087=37x29+14
1088=83x13+9
1089=107x10+19
!!! 1090 !!!
1091=37x29+18
!!! 1092 !!!
1093=13x83+14
1094=53x20+34
1094=53x19+87
1095=97x11+28
!!! 1096 !!!
1097=23x47+16
1098=17x64+10
!!! 1099 !!!
factor((1000^5+1000^4+1000^3+1000^2+1000+1)*1000^14+1000^6+1000^5+1000^4+1000^3+1000^2+1000+1);
factor((1001^5+1001^4+1001^3+1001^2+1001+1)*1001^14+1001^6+1001^5+1001^4+1001^3+1001^2+1001+1);
factor((1004^5+1004^4+1004^3+1004^2+1004+1)*1004^14+1004^6+1004^5+1004^4+1004^3+1004^2+1004+1);
factor((1006^5+1006^4+1006^3+1006^2+1006+1)*1006^14+1006^6+1006^5+1006^4+1006^3+1006^2+1006+1);
factor((1007^5+1007^4+1007^3+1007^2+1007+1)*1007^14+1007^6+1007^5+1007^4+1007^3+1007^2+1007+1);
factor((1008^5+1008^4+1008^3+1008^2+1008+1)*1008^14+1008^6+1008^5+1008^4+1008^3+1008^2+1008+1);
factor((1010^5+1010^4+1010^3+1010^2+1010+1)*1010^14+1010^6+1010^5+1010^4+1010^3+1010^2+1010+1);
factor((1011^5+1011^4+1011^3+1011^2+1011+1)*1011^14+1011^6+1011^5+1011^4+1011^3+1011^2+1011+1);
factor((1012^5+1012^4+1012^3+1012^2+1012+1)*1012^14+1012^6+1012^5+1012^4+1012^3+1012^2+1012+1);
factor((1014^5+1014^4+1014^3+1014^2+1014+1)*1014^14+1014^6+1014^5+1014^4+1014^3+1014^2+1014+1);
factor((1016^5+1016^4+1016^3+1016^2+1016+1)*1016^14+1016^6+1016^5+1016^4+1016^3+1016^2+1016+1);
factor((1018^5+1018^4+1018^3+1018^2+1018+1)*1018^14+1018^6+1018^5+1018^4+1018^3+1018^2+1018+1);
factor((1020^5+1020^4+1020^3+1020^2+1020+1)*1020^14+1020^6+1020^5+1020^4+1020^3+1020^2+1020+1);
factor((1021^5+1021^4+1021^3+1021^2+1021+1)*1021^14+1021^6+1021^5+1021^4+1021^3+1021^2+1021+1);
factor((1022^5+1022^4+1022^3+1022^2+1022+1)*1022^14+1022^6+1022^5+1022^4+1022^3+1022^2+1022+1);
factor((1024^5+1024^4+1024^3+1024^2+1024+1)*1024^14+1024^6+1024^5+1024^4+1024^3+1024^2+1024+1);
factor((1025^5+1025^4+1025^3+1025^2+1025+1)*1025^14+1025^6+1025^5+1025^4+1025^3+1025^2+1025+1);
factor((1026^5+1026^4+1026^3+1026^2+1026+1)*1026^14+1026^6+1026^5+1026^4+1026^3+1026^2+1026+1);
factor((1027^5+1027^4+1027^3+1027^2+1027+1)*1027^14+1027^6+1027^5+1027^4+1027^3+1027^2+1027+1);
factor((1031^5+1031^4+1031^3+1031^2+1031+1)*1031^14+1031^6+1031^5+1031^4+1031^3+1031^2+1031+1);
factor((1032^5+1032^4+1032^3+1032^2+1032+1)*1032^14+1032^6+1032^5+1032^4+1032^3+1032^2+1032+1);
factor((1033^5+1033^4+1033^3+1033^2+1033+1)*1033^14+1033^6+1033^5+1033^4+1033^3+1033^2+1033+1);
factor((1035^5+1035^4+1035^3+1035^2+1035+1)*1035^14+1035^6+1035^5+1035^4+1035^3+1035^2+1035+1);
factor((1037^5+1037^4+1037^3+1037^2+1037+1)*1037^14+1037^6+1037^5+1037^4+1037^3+1037^2+1037+1);
factor((1039^5+1039^4+1039^3+1039^2+1039+1)*1039^14+1039^6+1039^5+1039^4+1039^3+1039^2+1039+1);
factor((1042^5+1042^4+1042^3+1042^2+1042+1)*1042^14+1042^6+1042^5+1042^4+1042^3+1042^2+1042+1);
factor((1043^5+1043^4+1043^3+1043^2+1043+1)*1043^14+1043^6+1043^5+1043^4+1043^3+1043^2+1043+1);
factor((1044^5+1044^4+1044^3+1044^2+1044+1)*1044^14+1044^6+1044^5+1044^4+1044^3+1044^2+1044+1);
factor((1046^5+1046^4+1046^3+1046^2+1046+1)*1046^14+1046^6+1046^5+1046^4+1046^3+1046^2+1046+1);
factor((1052^5+1052^4+1052^3+1052^2+1052+1)*1052^14+1052^6+1052^5+1052^4+1052^3+1052^2+1052+1);
factor((1053^5+1053^4+1053^3+1053^2+1053+1)*1053^14+1053^6+1053^5+1053^4+1053^3+1053^2+1053+1);
factor((1055^5+1055^4+1055^3+1055^2+1055+1)*1055^14+1055^6+1055^5+1055^4+1055^3+1055^2+1055+1);
factor((1057^5+1057^4+1057^3+1057^2+1057+1)*1057^14+1057^6+1057^5+1057^4+1057^3+1057^2+1057+1);
factor((1059^5+1059^4+1059^3+1059^2+1059+1)*1059^14+1059^6+1059^5+1059^4+1059^3+1059^2+1059+1);
factor((1061^5+1061^4+1061^3+1061^2+1061+1)*1061^14+1061^6+1061^5+1061^4+1061^3+1061^2+1061+1);
factor((1063^5+1063^4+1063^3+1063^2+1063+1)*1063^14+1063^6+1063^5+1063^4+1063^3+1063^2+1063+1);
factor((1065^5+1065^4+1065^3+1065^2+1065+1)*1065^14+1065^6+1065^5+1065^4+1065^3+1065^2+1065+1);
factor((1069^5+1069^4+1069^3+1069^2+1069+1)*1069^14+1069^6+1069^5+1069^4+1069^3+1069^2+1069+1);
factor((1070^5+1070^4+1070^3+1070^2+1070+1)*1070^14+1070^6+1070^5+1070^4+1070^3+1070^2+1070+1);
factor((1071^5+1071^4+1071^3+1071^2+1071+1)*1071^14+1071^6+1071^5+1071^4+1071^3+1071^2+1071+1);
factor((1072^5+1072^4+1072^3+1072^2+1072+1)*1072^14+1072^6+1072^5+1072^4+1072^3+1072^2+1072+1);
factor((1073^5+1073^4+1073^3+1073^2+1073+1)*1073^14+1073^6+1073^5+1073^4+1073^3+1073^2+1073+1);
factor((1075^5+1075^4+1075^3+1075^2+1075+1)*1075^14+1075^6+1075^5+1075^4+1075^3+1075^2+1075+1);
factor((1077^5+1077^4+1077^3+1077^2+1077+1)*1077^14+1077^6+1077^5+1077^4+1077^3+1077^2+1077+1);
factor((1078^5+1078^4+1078^3+1078^2+1078+1)*1078^14+1078^6+1078^5+1078^4+1078^3+1078^2+1078+1);
factor((1079^5+1079^4+1079^3+1079^2+1079+1)*1079^14+1079^6+1079^5+1079^4+1079^3+1079^2+1079+1);
factor((1082^5+1082^4+1082^3+1082^2+1082+1)*1082^14+1082^6+1082^5+1082^4+1082^3+1082^2+1082+1);
factor((1083^5+1083^4+1083^3+1083^2+1083+1)*1083^14+1083^6+1083^5+1083^4+1083^3+1083^2+1083+1);
factor((1085^5+1085^4+1085^3+1085^2+1085+1)*1085^14+1085^6+1085^5+1085^4+1085^3+1085^2+1085+1);
factor((1086^5+1086^4+1086^3+1086^2+1086+1)*1086^14+1086^6+1086^5+1086^4+1086^3+1086^2+1086+1);
factor((1090^5+1090^4+1090^3+1090^2+1090+1)*1090^14+1090^6+1090^5+1090^4+1090^3+1090^2+1090+1);
factor((1092^5+1092^4+1092^3+1092^2+1092+1)*1092^14+1092^6+1092^5+1092^4+1092^3+1092^2+1092+1);
factor((1096^5+1096^4+1096^3+1096^2+1096+1)*1096^14+1096^6+1096^5+1096^4+1096^3+1096^2+1096+1);
factor((1099^5+1099^4+1099^3+1099^2+1099+1)*1099^14+1099^6+1099^5+1099^4+1099^3+1099^2+1099+1);