Primality Certificate for (23151^5347-1)/23150

Andy Steward23,333 digits29 August 2008
Originally by A.A.D.Steward 2008

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

From Factorisation
231513 · 7717
Φ22 · 2 · 2 · 2 · 1447
Φ37 · 31 · 37 · 241 · 277
Φ6535945651
Φ919 · 127 · 44623 · 6685633 · 213874944859
Φ1123 · 5303849 · 13835771401 · 42839865443 · 611710374493901
Φ18109 · 66320347789 · 21298314555451
Φ2289 · 2311 · 106877 · p34
Φ2737747 · 942731353 · p66
Φ3367 · 1123 · 19141 · 297067 · 2623125206131 · p61
Φ54163 · 74521 · 610849 · 82069579 · 3350080783533277 · p43
Φ66199 · 859 · 9723337434274069 · 61125353278029682227037 · p44
Φ8116363 · 65431845125749 · c218
Φ99c262
Φ162120172893571 · p225
Φ1982377 · 265123 · 1238045026879 · 962407937858957767 · c223
Φ2434861 · 56377 · c699
Φ2972971 · 5347 · 7723 · c775
Φ486487 · 1459 · 3889 · c698
Φ5941783 · 1195149452311 · 1551088966879 · c759
Φ89181973 · 2535201614569537 · 14419868465280763 · c2321
Φ1782271523341 · c2349
Φ26731653095467 · c7062
Φ53462263614013 · 1873000064629 · 2772882013084327 · p7034

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 :

3409 8203160761 2703100700 6867968760 3167338266 9576144907 7938066075 5783681644 9509451025 6332775796 8447242818 4253826061 3447543329 7972916990 4541573846 5577541789 3364034880 7918929753 4301174823 9242425141 3058324663 6939574371 0836244764 6049979012 9223169399 9489375280 1741981801 9501165365 5391650852 1991358548 8671098509 1636947224 5305611957 3417620814 4581266679 1867780430 9245063282 0761603881 9645634112 8502291040 8902780394 3181352399 2482173313 5827036918 1840292739 3410558692 3153994119 3870337053 5877147381 7936707279 9779508792 0457190898 8897303151 2745054335 2412291549 9904231540 0861648878 2592098076 9103574496 9893619187 0094840467 0502638099 7501098374 7764281901 8276815475 4237682209 8961332854 9692265135 2291276700 0844297755 0137914923 1320292849 1053529044 8103451118 9400865592 8816802293 8592926145 8987902212 2640560121 5251549286 7552226583 6445013848 4002263899 9673261891 3579933773 4542181963 2806936028 9168749719 4524978749 8384151793 4402133936 7794456406 6190431620 9312956696 6726127995 4073378207 2007916373 8332424478 6844701021 6886692922 0430425968 6101173328 2671446113 0166523445 8941068191 7634561898 3436376263 5278803679 6379248177 1263873222 4234655431 8612345531 3943498385 8362509885 6982026250 1315307863 7070852649 6583765549 1039815733 2971660878 5681175335 4807513813 7604468814 7300961798 5231303978 8393429296 2031427955 7122807675 2382314179 8557089856 3192255128 8576644576 6382858763 7587600244 3883743302 1245166013 3827357943 0486605675 0846169457 8677150998 0578748290 9588062014 2871148920 1615248021 8774969337 7162225014 7875256042 5605246962 0684394238 9253287155 3174842162 9697536495 4967282305 6017065956 0832125482 5165854068 9977254097 5080366042 9505529464 2332808097 4148336513 3618108972 2928946986 7304017290 5894077486 6223607746 8987214955 4362178099 5474608753 8267733886 3474390242 4120449830 8536333104 6739290758 3746925524 6778135903 8012290153 2501575425 2595576588 0301060175 1024073788 5792600301 1429873835 2510528695 9907091005 5071860055 6317277354 5104230985 2769249865 9160733841 7690089608 9276877994 9862756395 6856678886 7681313190 2147330215 3272359248 4754999919 9115901193 8406201037 8900528841 1339398832 9978561963 3124748629 4588993547 2031584507 2830484673 0146971351 4905587274 1356414887 7404839572 6138499336 5615058255 4466180514 6823477406 6802071841 0267978814 5894245441 9300732805 2249956053 9574795672 9582630667 5435062120 0580661376 6836231159 9266310698 6257575115 1014143169 4621340733 9720117791 1291690302 5533942348 3435634820 6858923382 6459605535 2613598480 1238204322 8282970774 5910133893 4099644958 3771020419 2722015276 1948126044 8356963824 6083328184 4973359281 4819286431 6835829924 8538662039 5812063490 2787458753 5659369729 6063678173 6196710313 4860350768 1776791082 6171559984 4850704940 3718335114 5487414534 4596388188 3436418657 0333747058 6343107999 1760232917 6614023553 4903591929 8572275160 9615266857 7020746721 6782695374 1328774457 0719800294 9622399698 6342134852 1452792611 6700693358 7110168243 1045567115 1257978720 2128284413 3707248368 4258964358 6053686638 8810031915 4530296255 5522297446 5495420464 7539920220 8623648218 6621155132 4145908003 2657740186 5105040995 1481063665 4590503575 0999170961 9382817183 8801153285 1308442742 8406461072 0104415101 7721418575 8017493410 7199463210 3383830735 1102982902 0536268986 6850298660 7421837775 2706870577 3933521349 3841117771 8113714638 8810756061 7518552744 7798584527 6879719479 8317944396 8341553363 5160809234 3860970223 4296736076 8739025761 9218408637 3070143419 7258649179 3869422302 0355306666 7073034445 2816713899 2876104383 8175980241 6106485564 2572191248 4623993085 1804049290 5207640712 0714284832 4403110505 1818884028 9772238553 7481099826 8288269756 3460812228 0289869082 1110376081 5867973987 7865893719 8030407166 0925346463 8858936751 7903206224 4285582969 4737117428 2374936160 8449557954 6591965700 0173377696 0934651735 9371726453 1700799631 6339201960 0038982724 7513995893 6425662600 6625562117 6387400897 2045411856 8390060348 3664334629 0257759259 0346865601 0495263755 2232009144 2872757239 1877124465 3314039169 2203019959 3591846097 2693425760 3007526267 0105720647 0686379127 5900499869 6398440593 7613403935 8194002227 2309076678 9405034685 3921210127 2361203032 6596760648 1740322067 0327046199 3769640225 9854299343 4574848604 4541243216 3755244467 3146102490 8498825781 5244827433 8489717248 8460769648 3318346121 0026869434 0019000789 7727367541 6547175500 8901708489 0697313555 2685800114 5905010544 5106120843 1318412024 5350845900 9430086117 5666155882 7273659200 2281385637 1843146015 8056030962 6255747201 7037588194 4920837480 7123008934 7807486435 5193823909 2403568852 9181440640 5970949459 9334518239 2706654256 0588706503 2732015892 6579215731 0810047761 3220407248 7309415361 1213396927 5335927709 4005732485 5512706553 7530270187 3527025318 0943254434 1095965615 1411653567 9904638548 7647264518 2147796528 1147451513 9905637870 3928422400 0975142669 0382180294 3070538698 4739657306 4200364147 7587231902 8267211415 3277849966 1200732329 2347576269 1986592238 7978796996 5355307815 6647944604 2415069069 1017701101 3245616025 4453648018 5024496932 3029141202 6181854450 4294183777 5481961298 3100858613 0037292919 4107081302 4019167313 9918818761 0116912476 7458290263 2103575107 1106216701 3581171152 7078773997 6183004991 8661300932 2780265767 0354554339 7637194956 6924952159 3428555101 5758507465 1965742055 7132727521 2920846247 4715625077 7210634586 1986818269 8254736149 5803949315 6169827954 3287013030 1241708142 5968544466 3254279698 7233362190 4058566173 2596324326 7683989079 3080852531 6582446783 8821931918 5028114490 4254338750 4724782036 5351840542 8576803764 1826995187 8650249602 9382642663 8248836463 3193595637 6303545584 5817527542 6319368530 8986551160 8952315900 6943983484 6995719068 0928298755 9537299688 1591149636 3654189232 1490013966 7441396578 0555562685 4145074172 3326976024 7719217027 6330764645 2838846722 9742326640 8410850199 0096817351 1580019269 5070813807 9002084765 8149432811 4431633848 0999668834 3901010794 0168228007 0207758466 7147397196 1791127919 1109826329 7064196266 9007534336 0350348320 0302441684 1566181298 3193567119 8698651193 7733573006 2331174015 6551441175 5230581051 5306201973 2517910618 9316938115 9481559244 9164552778 0126215921 9429639297 5483010923 4428569390 7109547704 5846029796 9644107046 2863667455 2974954611 4241042944 0806467206 8627309269 2925692007 2909596085 3045318986 7948977942 1754412655 9782788938 4158225794 5965881503 6374108447 6281863547 8651836672 2315431530 1100418340 8534640695 8483857318 5995400088 7932106535 4522722052 5918709247 1453617685 6039402015 4236866598 1593440916 7092045493 5188769825 1598476375 7547099239 5455576567 1636310897 2834772255 4781685333 7714860171 4640615027 5776664168 0152730102 0433483545 5261483925 6522377594 2514006356 3012804878 7843945347 6821416176 1086373295 3291482786 1523020794 4347268997 3914525760 3211887433 7914957381 9489405087 9102793264 3964157992 5341094043 1012936529 6218235616 8920129388 6759054678 6858757588 3257001259 2097829048 2596822226 2215980968 5035545141 6407365410 9343459827 7395755075 2285438107 2411859256 0841754138 9266313114 6909205741 2381256339 9671685323 3698592427 0237733338 5084044593 2403225085 4377903134 9611553199 7925409240 7098011440 0500796113 1417244041 0854256303 0953306841 8179589891 9265270757 9930021054 0768389335 9964816892 6022228450 9069738744 3015930534 0577526771 1681831409 0495550952 4729708268 4911449269 0019839875 9548242247 3956497386 2278685709 2560942807 1586619373 6558320381 3712505605 4804426576 0598380920 9321710530 1727849652 8360036720 1398049908 3229217712 5100785559 5540421719
40453 8863416487 1316921307 1156955140 9111557597 8902100412 9332107054 6713323454 3006911054 8930527756 2243218797 6396155110 7541100320 5509617580 4233853317 5616255339 2266975076 2570863490 3493597497 2259020144 4631336633 6414781614 2486184881
102561 6968289060 4695288493 2434451558 5098975521 2803151151 8845149283
1 7429451750 7852246534 5829959455 2405709334 4167396865 2371417173
1925 4439387211 3981921054 8034598552 4022540437
178 9031380766 5677227276 2096076498 3634386311
2011 8916304615 7028314102 4257679897
611 2535327802 9682227037
96240793 7858957767
1441986 8465280763
972333 7434274069
335008 0783533277
277288 2013084327
253520 1614569537
61171 0374493901
6543 1845125749
2129 8314555451
262 3125206131
187 3000064629
155 1088966879
123 8045026879
119 5149452311
21 3874944859
12 0172893571
6 6320347789
4 2839865443
1 3835771401

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.336955%

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

Given such a witness, Pocklington's Theorem shows that every prime factor of N ≡ 1 (mod F). As F3>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 ≡ 32 (mod 64) and therefore cannot be a square and N is prime.