Primality Certificate for (5273^2857-1)/5272

Andy Steward10,631 digits21 November 2005
Originally by A.A.D.Steward 2005

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 43.120086% factorization of N-1:

From Factorisation
52735273
Φ22 · 3 · 3 · 293
Φ37 · 7 · 97 · 5851
Φ42 · 5 · 13 · 213881
Φ63 · 9266419
Φ729 · 953 · 1411159 · 551267195221
Φ82 · 386545916455921
Φ12109 · 2113 · 3356642389
Φ1443 · 2056909 · 5808797 · 41830643
Φ1723053 · 144773 · 2536550124421885996769 · 42203477538792558313923781681
Φ217 · 82300715879226701053 · 801879726084855880828339
Φ2473 · 8187273727602590549384179417
Φ28701 · 2053044356273 · p30
Φ3428956328243 · p50
Φ42127 · 7687 · 543061 · 6066523 · 143689999941243348427260847
Φ51307 · p117
Φ56233353 · 473929 · 1064188889 · p70
Φ6815641 · 274517 · 23266541 · c103
Φ842689 · 153469 · p81
Φ102103 · 130051 · 9631251853051 · p99
Φ119239 · p355
Φ136137 · 518839729 · c228
Φ168673 · 3361 · 37282389613353058557433 · c150
Φ20427541 · c234
Φ23867849279 · p350
Φ3571429 · 205633 · 10712154278877913 · c691
Φ408409 · 48599146186850527249 · c455
Φ4768438747437 · 73500373139789 · 216515949764169329 · 619227192182211798221 · c653
Φ7142857 · c712
Φ952248473 · c1424
Φ14283929857 · 329895133 · 5159875302541 · c1402
Φ28564026961 · 24152486569 · 8225378816781593209 · p2823

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 :

433 7836725705 5625050942 7734911912 3157824031 2001683015 6678724095 2049969299 8573836719 0446255078 9028695297 8048788297 4507454612 1381455081 1086725411 7243278339 9777653896 3867084032 0712420901 6117004585 8131449431 1249822364 1067383119 8339584299 7281402355 7327968515 6313078357 3829264441 2289449417 3881932731 8059392481 7069588764 7932248127 1348797056 6565019042 1175280864 6497823685 5043293889 2284835418 2836346846 6131672072 8368835443 9772773324 3130949173 8334617015 5912907547 9361321926 8735789365 7421270526 0130689859 6032187014 4977654739 6602721022 3439712752 4371059993 5050633539 9522518273 3671561706 5461582041 1055212385 6252548741 1746707830 7723899830 4052560659 6373514625 0350642041 7822214500 2607968721 5309557001 1985760443 7271674225 6484522205 7916817115 6718626237 4273150123 0825799156 8545988143 8718499005 6344675060 5420387041 0258483086 9957290254 8083006258 1874842095 0218286143 9361518904 3269265890 8651696800 5319759072 4266557587 3551997092 1640045395 7597732389 6150969475 0580641456 2524019637 9375366038 2192842535 4353851062 5187631272 4755095448 0453527883 2901082468 1930964629 8143276607 5312828482 4947269293 9934634086 9699969486 2524401119 9790040427 5688006622 9928802807 6349488826 4706653127 2232209029 0569807088 9638148730 1748722323 6869517623 8089332252 2468933441 9325144458 9114307916 2202691750 7439482501 7076471844 0740970650 4045952596 5273541997 2665381642 9503679712 0242808239 7968473631 3294013221 0170061506 4600790569 9455109176 7952228078 8224245012 4279466303 7588345507 8597093270 4714755239 1586511595 5301748561 5829496617 1195857101 7692547920 1621328678 8541288895 5135918899 0887067134 5393050042 1388032971 1432754357 4157325183 4737261406 4278685333 4171663834 1930296999 4615363005 8685711943 4239546256 1639386716 5512762147 0590913426 4523647308 4232082585 7672783665 0075639301 8693575217 3774320895 8697609563 8170502444 7254443175 5970669231 7176023085 6841212455 6911097504 0397686812 9193878061 5225849492 3047356533 1643190345 1342487537 0075033235 6513755512 5839626310 8321602068 4900586422 7781998320 6227567981 8531977430 5201903378 9581009185 3483277575 6484015590 4311517556 5791480814 4561600691 7319811152 1220707177 0590655915 2746280228 3100907150 7360339381 5806446296 0725625960 9188595710 7982024112 7484575279 4750663144 9443674156 8771397277 5813619743 4039148374 6915821394 4531441449 2989681262 4865325331 4193198810 0860678032 1094960562 5756813645 2917215530 1684946335 7452598950 4578708318 7121587413 8908657654 8988900652 1849302732 5760346814 1797364142 2880796992 6027621243 5841188197 0500064756 8025099321 4608479184 0059255963 0244584629 8145503142 1033875888 6313879328 4062483988 5599649848 2486893951 4062248671 6581786007 1926433459 0364851670 9416237240 9940467854 4685299903 5667587409 8464502870 6812394751 0539707510 7460651354 1331504140 6425803612 6543827526 9195977077 7111187899 7098926131 7391928275 4597922800 2906542923 0323603673 7548267976 4394208600 8633682115 5565690425 1538411572 3787326830 4702399107 5648290187 8062132131 2560109648 0525450259 9837694161
86909 2049768526 0163738585 8424033460 4835237779 2187592078 1539469042 5195970457 0995691735 3701735437 8317459719 6995095774 3668373964 4680990610 0981542052 2577252479 6795147128 6090383571 5891062311 0183011397 3884585378 7140059223 0884750889 3306498238 9243437696 6198680563 4174426001 5319908135 6180762812 9357187013 8507896948 8709098237 6839811488 1799488130 9132276463 1623196559
3062549838 6365994229 7938462202 8170244484 2935032809 9889171895 3047130724 4993423177 9480541196 2248511155 3919240135 5269959496 1110114678 0345827344 6428549538 4303565878 2951453677 6893096815 2317247096 5003203337 1189109916 4789072464 6813210474 1119799418 7551188054 7882950514 6040723592 7947282612 5051807317 5083631936 6920680501 2386923326 3438791968 1633863014 1461540159
4155544 5003503544 8497243539 2946285460 8634890368 9141679262 7817469509 6119307877 1397372465 1569840314 8918202475 2688993403

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

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.

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's Theorem shows that N is prime if and only if c12-4·c2 is not a square.

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