Primality Certificate for (12432^3301-1)/12431

Andy Steward13,512 digits08 May 2007
Originally by A.A.D.Steward 2003

This certificate uses a theorem of Brillhart, Lehmer and Selfridge to prove an integer N prime by making use of a partial prime factorization of N-1.

Factorizing N-1

As N is a Generalized Repunit, we make use of the algebraic factorization of N-1 to arrive at the following 34.359604% factorization of N-1:

From Factorisation
124322 · 2 · 2 · 2 · 3 · 7 · 37
Φ212433
Φ367 · 2306971
Φ45 · 5 · 5 · 41 · 53 · 569
Φ523889053377434001
Φ613 · 1051 · 11311
Φ1011 · 118411 · 18337677881
Φ1123 · 124433 · 30723949741 · 748507056067 · 1340011720609
Φ1297 · 131101 · 1878392149
Φ152731 · 8011 · 260791 · 1318441 · 75845766583831
Φ205 · 281 · 3041 · 6781 · 19694344028817646912601
Φ223917 · 3076818229 · 100805500907 · 72583087643506243
Φ25151 · 6196085943665801 · 673814571426810515365771001 · p38
Φ3061 · 241 · 631 · 61515804352638748672059571
Φ3319801 · 602070481 · 54437423837024574466991574302479 · p38
Φ442235486793 · 47232013753 · 773843755774609696529 · p41
Φ50101 · 1801 · 1951 · 35339812218948698832970601 · p48
Φ551075787131 · 20978727661 · c145
Φ603714135023108804957701 · p44
Φ66331 · 991 · 55639 · 2343529 · 431010946787567389 · 22422952249888169827 · 18815794994720505520075774933
Φ7511551 · p160
Φ1005 · 6703849145101 · 243828737494988101 · p133
Φ11011 · 598841 · 31587161 · 167978586517871911 · c133
Φ132397 · 49879897 · c154
Φ150c164
Φ165661 · 19829041 · 380682927390132511 · c300
Φ220130241 · c323
Φ2756267251 · 9020551 · 28606864708296601 · 191030222252506850126651 · c766
Φ300121248756001 · 173907036301 · 205396363749288301 · c288
Φ330704894521 · 5598228636788371 · 452492040376191599292961 · c280
Φ55030993039844801 · 2564237819117701 · c791
Φ660458701 · c650
Φ8254144801 · c1632
Φ11001157201 · 1992991001 · 33438560101 · c1612
Φ1650c1638
Φ33003301 · 95701 · 199461981702909383701 · p3247

From this partial factorization, we use sufficient of the largest prime factors of N-1 so that their product F is at least N 1/3 :

6813637 6773248192 0836080977 2552065141 4800384382 4140281964 6955752159 8032191679 3305795980 5484581098 9949042342 5273852595 3160342457 2494604492 8344268760 0050638075 7558657135 7970480136 2331589937 2514588617 7598758580 2313300481 9163927854 0939705607 6364464363 0838948425 8279778516 1247086751 1795377507 5683780889 9910859418 2181174269 0154030010 7426609144 0726648426 3733298239 1937475191 9017834844 5048336360 3995931544 4139971703 9782881720 4270832000 9012209240 5714838421 3930181803 4671085350 3567723632 6467550482 4016968268 8777929833 4282809513 1373330375 9389693769 2567581259 7011836080 9869568392 7434148914 6536543032 1037528799 7510660948 4357506166 8469815393 6334502187 6119501856 2888499953 8471473167 5082339660 6844962970 1103743859 3314652541 8030134222 5493124785 2126461362 4596161613 5593405934 3965926767 0871168142 7157639695 2579723322 9884252101 2148062207 2845955199 2850709197 8403185723 5886136742 2092826756 1852171227 2045362117 9580875688 8115071312 1717517445 0952323889 6585039401 9015357171 8905935588 4479665225 2980965890 9487129528 6477441744 0006746465 5406270400 8533727994 5144635736 9811196179 7160129934 2202489120 5865771153 7519253840 7555757337 7070264448 9424589039 5263137042 3667941469 6512497025 7511452896 8171872006 1505520974 2992409913 0359982983 6853162247 8861334480 8524869068 9840556615 3183597377 4192861846 7830418999 6930687586 7088757838 4283003763 3623482457 1161857588 6429363389 9970847840 5129117539 1095245179 7658222308 0110923993 7258524548 2709762165 2703644266 9946760668 9020273487 2149230160 4742747498 3561371047 7755713622 0576577379 4592003161 4676752173 4604270083 2093834509 7819775925 0073254332 5842604585 5671309142 2147558363 0082851605 3673573202 2895272802 7307462577 2359346857 2748430723 1961364110 8641155882 5959110713 0442146658 6169546465 9817399132 9966243014 5949622491 2568587643 7248872318 1308433907 4717366314 8464392255 0319744279 6461524760 1379601352 6364400210 4194430838 0890154405 6888878986 3415231258 0044868278 8264017196 0831030846 0203398501 2549313634 5043891805 2328942384 7670859834 5846359197 9910090236 4938326384 6187823927 4638229592 7243251798 8414614745 7671179936 0825040584 6011634071 6881193105 8232900678 8939358330 3584965962 6026130200 0164597417 6340961449 5926041078 5138864014 6034216867 0037019773 9244100555 0008608761 0165482778 3204156304 6114234894 0596360733 2098448171 2693276866 9592331888 8514864459 0693830046 5710831021 1274085704 2260212232 9929448749 5119947090 6386398182 1688771890 1730214732 9980894504 4818014301 6322661154 3493886382 0994389295 5453759331 3918274432 8191362690 7236506949 7887662728 9925883352 0646814828 8388604094 0883620134 5910845491 3722414994 5702687789 9369908962 7065338040 6150631128 4547592728 7467576485 7738967041 1044393776 7581459573 8406141471 5751066085 2602037612 4702669932 0034862324 2579045056 1304483399 0175960630 1448997220 9430552782 4902574577 2986482260 7640740730 4380194021 0538000291 5426687605 7643982782 6163583906 5428786579 7626165129 0354501058 2265211154 2106645459 9561275014 6937368951 5258204610 7764915280 9340584354 7864846616 3896167010 7514335796 4636835202 1880576620 7686081699 6719271705 1235736432 1721328254 5276709926 3701075553 1756175030 7032643904 9931946495 2293127967 7191404742 8446077830 1272809058 2970679233 3864256863 5850176837 0157319884 9743800103 3135886940 9621269062 0592935785 6870674188 8586756842 5653326065 5451377501 7878063206 3589199962 8774362451 3494948893 5951680722 8069046714 2222825505 9486596795 9610602290 1728897301
5236251218 3503467677 3329710433 6159448366 9520954300 7602663565 0714281689 0205871268 1398255343 2605847200 7602264865 4953432005 1277025366 2604848485 8836218099 7734665951
740 0497752273 1221199148 1409534995 1364148044 2626950060 9561173520 8435197204 3122208962 4272838086 5231656568 2600246988 3111859567 8221844301
62010243 3426821586 1576148603 1257598193 3267198051
8765 9368598851 2213253099 7412064106 3739876301
9 5182733529 1549524620 6935103005 8712252721
12336309 3190482348 8380051025 5364840551
11982655 4284401526 5351595050 7801957351
54 4374238370 2457446699 1574302479
188157949 9472050552 0075774933
6738145 7142681051 5365771001
615158 0435263874 8672059571
353398 1221894869 8832970601
4524 9204037619 1599292961
1910 3022225250 6850126651
196 9434402881 7646912601
37 1413502310 8804957701
7 7384375577 4609696529
1 9946198170 2909383701
2242295224 9888169827
43101094 6787567389
38068292 7390132511
24382873 7494988101
20539636 3749288301
16797858 6517871911
7258308 7643506243
2860686 4708296601
2388905 3377434001
619608 5943665801
559822 8636788371
256423 7819117701
7584 5766583831
3099 3039844801
670 3849145101
134 0011720609
74 8507056067
17 3907036301
12 1248756001
10 0805500907
4 7232013753
3 3438560101
3 0723949741
2 0978727661
1 8337677881
3076818229
2235486793
1992991001
1878392149
1075787131
704894521
602070481
49879897
31587161
19829041
9020551
6267251
4144801
2343529
2306971
1318441
1157201
598841

Note that all prime factors listed above have been proven. As primes of under 250 decimal digits can be verified in a few seconds, proof of their primality is not included here, in order to save space. Larger prime factors can take from hours to months to prove; certificates for all such factors have been PKZIPped into this file.

We set R = (N-1)/F. Note that GCD(F,R)=1 and Log(F)/Log(N) = 33.355809%

Finding a Witness to Primality

Next, we find an integer witness w such that for each prime factor p of N-1, w(N-1) ≡ 1 mod N and GCD(w(N-1)/p-1,N) = 1. In this case, w = 19 suffices.

Given such a witness, Pocklington's Theorem shows that every prime factor of N ≡ 1 (mod F). As F2>N, N can have no more than two prime factors.

Express N in base F

As F2 < N < F3 and N ≡ 1 (mod F), we can let N = c2·F2 + c1·F + 1.

Brillhart, Lehmer and Selfridge

Brillhart, Lehmer and Selfridge's Theorem shows that N is prime if and only if c12-4·c2 is not a square (given 2F3 > N).

Here, c12-4·c2 is ≡ 37 (mod 64) and therefore cannot be a square and N is prime.