Primality Certificate for (9473^4969-1)/9472

Andy Steward19,756 digits18 July 2009
Originally by Tom Wu 2009

This certificate uses a theorem of Coppersmith and Howgrave-Graham to prove an integer N prime by making use of a partial prime factorization of N2-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 25.609447% factorization of N-1:

From Factorisation
94739473
Φ22 · 3 · 1579
Φ37 · 13 · 19 · 51907
Φ42 · 5 · 17 · 527869
Φ63 · 29909419
Φ82 · 97 · 409 · 101490434377
Φ9487 · 880993 · 6455539 · 260910343
Φ1215073 · 534257275681
Φ183 · 127 · 166393 · 24578713 · 463773637
Φ231655808871 · 196654321398011 · 674471077906877 · p50
Φ2473 · 193 · 1033 · 3888651313 · 1145831626392961
Φ27271 · 1476199 · 8632773367651 · 16798507911253 · p37
Φ36181 · p46
Φ4647 · 1349687 · 8442915788075527408047709 · p55
Φ543 · p72
Φ69277 · 967 · 4703593 · 12193657921 · 760310289351036399286573069 · p126
Φ727489 · 104867802001 · 339587330041 · 670190822656157947508137927161289 · p37
Φ9237281273697741 · 94208551283625809 · 12826485649338855075211313 · 198303481065921840216568313 · 2276488939138219124696392409 · p66
Φ108109 · 167265757 · 120677507224633 · 10518357415550938091666737844077546199697408551419227017509 · p61
Φ138139 · 12007 · 153871 · 396151522981 · 145582911518144307139 · 1187165404047152983009948051 · 10889645257590586215851795599 · p77
Φ1845521 · 177929 · 24180361 · c334
Φ207c525
Φ216433 · 3912576759594721 · c269
Φ2764078196149 · 21076115072967628669 · 5868411029542058847037 · 312340887712771025632933 · p276
Φ414c525
Φ552596043529 · 69833511292590478889935763948193241 · 131947473383237809379236333393902922169707777 · c613
Φ621212383 · 6469579 · 7725241 · 14192306557614508699 · c1537
Φ828829 · 80317 · c1042
Φ124226083 · 9772057 · 2526820026506011 · 86328297063284401 · c1531
Φ16561657 · 3313 · 21241513 · c2086
Φ24844969 · 12421 · 56920064266370917 · p3125
Φ496826180666624035769943202015321 · 682908818115657803529289808225593 · c6238

We need the product F of all the prime factors from this partial factorization:

67988 9924729839 9641150483 9910439213 3509349075 8408571214 1948068731 7781702957 3396564447 3811788455 4631473895 9486504642 0343036090 2370910616 6446427460 0432525820 5908082989 0460284122 3543608785 6228359752 5148389457 2032131572 5176162762 1079352009 2327859784 2228823889 6197172992 5108695944 2169477030 8354802724 9330699445 0974369388 3507273008 0423194709 6929293847 0603189597 7572591426 8397496300 0248008691 8015551539 2094447714 4510210990 7439061968 6776588311 2313381349 2845014140 8246288460 6281571442 0860626250 6669054010 8737552250 8955446964 6794997876 7727239546 0111711600 6485257052 7273400498 7212401467 0002581209 0064492347 6689901108 9474700320 2944335254 3273112714 4186686316 5331934678 8615094925 8208812375 3447880876 2080315098 6889214547 6522235014 7640971604 3131350200 8084167570 3836063299 6926069094 0034923122 8321301698 0297260511 8729557194 3207958830 4168758880 7672304831 7445394207 6095880310 5975898131 5260471041 3808539392 7748507714 1438075788 3983787068 4254609510 2013075797 6892116377 0670675115 1518441305 8445025775 6974861286 2426973331 4332906698 3089580890 9926237742 6087132605 9719781502 5724799802 9838294629 6433236216 6016264270 2514012154 2901477458 9154309750 0412361284 4707409975 0564375859 2431570781 6264811031 7250230791 6892231886 5644288850 4655846689 8201195294 2539054325 6694073687 2937728521 3635366953 1384763350 8274541638 6429281357 5694386026 4642601266 4219716888 0554855206 5663850517 7762905529 2124683311 4169338352 3420062917 9616292311 8371832823 4751447482 6705743510 6563228159 1272078074 6362989068 0124963744 2777150106 5739662739 9673386963 6116271057 3324074286 0713681295 2673556010 2955809957 8039576318 5369534168 1915323052 4562186163 2707618294 8826453082 2665408337 5743261910 9843069112 4150851219 4592905392 0014618616 3800403825 9271598797 1682876968 4218766129 1369799848 1855400605 1493295095 6165922294 8030616338 3937811273 7192452456 1036176995 9119061669 0383186076 2208336171 4163576668 8402077641 1101141569 3270846859 6423851703 0158341262 7742365017 3904279882 5266054546 9115117424 3654014614 2966032127 4726416836 1766199595 7385832861 1101445001 1146464650 2350124480 8705623561 6033975986 9132037446 2517317531 0970209920 8144712135 1493874151 5890470791 8597376288 7711375638 7793858197 4072351574 1031897015 3431929399 6566855952 6175503871 6730340642 3513142901 8182120714 0022485634 8666421181 2944450518 5817174727 7834525422 3449838464 5438885718 8979362250 8598370762 5819290245 2560592300 2702856472 7949874588 5651744422 3559794008 4053352812 4716778642 3098411534 0985869868 3352023674 0510942073 4488808308 3261556589 3065112215 8544642789 2544648137 2035477138 3156984971 1021324368 0524306566 5398729303 1527771741 6815737172 5909400896 0154586205 8887799641 7989663553 9622228267 7826501319 7170348641 8807085902 5031460680 2727354874 7371763838 4176827345 8808017147 0499042252 3676085389 5588048362 7047268667 0255726501 6042592503 0056590550 5547078663 4645693389 8612599411 2473970239 0188940388 3498756287 3831008836 0240014584 1889758117 7544523084 7848258179 7344719782 5752511186 2618121120 3690732542 8797796241 3766103284 2318572847 0785751149 1970108437 2996852519 0976483047 3404355702 3354206931 4704848761 4482307900 5774494831 8875014329 1615873198 3446361651 0594310354 5946256350 2300435380 4274908345 2603969723 3302346749 7330145871 3421420413 6003287338 2765385128 3844977643 4565381217
541371 3285112088 8267861574 6637652488 0031334583 9648115945 4711092357 6333075442 3693465137 4956877791 8308505834 7895005536 5861219374 5393087984 2577150846 9074926682 8585866459 1872733158 5661694649 3054707736 7446940115 5557373872 1593250822 9898142335 5452469460 2535740229 0868008991 3154127441
790578 3916448243 0570409593 3668494322 3917022079 9264411743 9348583296 9373734470 4395281227 3607125071 2766326313 6838479669 6388294063
4823860 0824143466 6906298219 3156998292 4209904378 2531264230 6749866303 8548511913
12 5792403951 8324296665 8219056209 6368653205 5683766333 1425913189 9118754219
454116 2132298835 7682139570 8231824748 4570069745 1989879306 6012728117
6 1538024440 9919419717 2163246356 6995989835 4234458649 1218411613
105183574 1555093809 1666737844 0775461996 9740855141 9227017509
56735 7234899757 8174866203 9897683187 3886540886 8732938557
1383867907 5694115139 4197764180 1753848018 9346833119
288517 3089464494 1589932078 7364348097 8115924893
13194 7473383237 8093792363 3339390292 2169707777
6504897 0245007320 3253585445 7543958709
1525755 5010029140 5591285401 1211331761
69833 5112925904 7888993576 3948193241
682 9088181156 5780352928 9808225593
670 1908226561 5794750813 7927161289
261806666 2403576994 3202015321
108896452 5759058621 5851795599
22764889 3913821912 4696392409
11871654 0404715298 3009948051
7603102 8935103639 9286573069
1983034 8106592184 0216568313
128264 8564933885 5075211313
84429 1578807552 7408047709
3123 4088771277 1025632933
58 6841102954 2058847037
1 4558291151 8144307139
2107611507 2967628669
1419230655 7614508699
9420855 1283625809
8632829 7063284401
5692006 4266370917
391257 6759594721
252682 0026506011
114583 1626392961
67447 1077906877
19665 4321398011
12067 7507224633
3728 1273697741
1679 8507911253
863 2773367651
53 4257275681
39 6151522981
33 9587330041
10 4867802001
10 1490434377
1 2193657921
4078196149
3888651313
1655808871
596043529
463773637
260910343
167265757
29909419
24578713
24180361
21241513
9772057
7725241
6469579
6455539
4703593
1476199
1349687
880993
527869
212383
177929
166393
153871
80317
51907
26083
15073
12421
12007
9473
7489
5521
4969
3313
1657
1579
1033
967
829
487
433
409
277
271
193
181
139
127
109
97
73
47
19
17
13
7
5
34
23

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) = 25.609447%

Factorizing N+1

We have the following 0.1068% factorization of N+1: 2 * 569 * 1567 * 3899941 * 180975869 * c19735

We need the product G of all the prime factors from this partial factorization: 1258606487768843644334.

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 = 713 suffices.

Given such a witness, Pocklington's Theorem shows that every prime factor of N ≡ 1 (mod F). As F4>N, N can have no more than three 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 has exactly two prime factors if and only if c12-4·c2 is a perfect square.

Here, c12-4·c2 is ≡ 42 (mod 63) and therefore cannot be a square and this stage of the proof is passed.

Coppersmith and Howgrave-Graham

We are left with two possibilities for N: either it has exactly three prime factors or it is prime. The non-existence of exactly three factors is demonstrated by the Theorem of Coppersmith and Howgrave-Graham, here performed by a Pari/GP script written by John Renze and David Broadhurst. The output certificate has been PKZIPped into this file.