Primality Certificate for (7147^2161-1)/7146 |
| Andy Steward | 8,325 digits | 25 January 2001 |
| Originally by David Broadhurst 2001 |
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 35.238249% factorization of N-1:
| From | Factorisation |
| 7147 | 7 · 1021
|
| Φ2 | 2 · 2 · 1787
|
| Φ3 | 3 · 673 · 25303
|
| Φ4 | 2 · 5 · 37 · 138053
|
| Φ5 | 2609491572645161
|
| Φ6 | 13 · 3928651
|
| Φ8 | 2 · 10923929 · 119422529
|
| Φ9 | 3 · 1086301 · 29425681 · 1389775771
|
| Φ10 | 11 · 131 · 311 · 5821166171
|
| Φ12 | 2609126404513273
|
| Φ15 | 601 · 20161 · 1233751 · 455318637150438991
|
| Φ16 | 2 · 17 · p30
|
| Φ18 | 19 · 14627233 · 479542289310541
|
| Φ20 | 5 · p31
|
| Φ24 | 73 · 73 · 84673 · 78341974441 · 192577292473
|
| Φ27 | 3 · 611651334430494644347 · p49
|
| Φ30 | 31 · 2019783211 · 108738807716762567821
|
| Φ36 | 181 · 13537 · 590833 · 418980842507881 · 29283667807072205773
|
| Φ40 | 41 · 2161 · 6841 · 227281 · 568002394961 · 210853901512081 · 2808842319386857264801
|
| Φ45 | 892351 · 9189181 · 1285260193400100744718655460812788021 · p44
|
| Φ48 | 97 · 446117173289521 · p46
|
| Φ54 | 163 · 132247 · 187465753 · 2951538913 · p45
|
| Φ60 | 61 · 241 · 15121 · 24061 · 492061 · 1143061 · p38
|
| Φ72 | c93
|
| Φ80 | c124
|
| Φ90 | 25471 · 1782811 · c82
|
| Φ108 | 109 · 165133 · p132
|
| Φ120 | 1801 · 549863761 · c112
|
| Φ135 | 811 · 477091 · 2001024400018624741 · 22398455195766477773371 · c229
|
| Φ144 | 159553 · 1475137 · 50383441 · 409930561 · 5257922833 · 110739760273 · 1781161628833 · 56226231226530118513 · 11754157022664005960641 · p83
|
| Φ180 | 2023201 · 572191561 · 4422183841 · 6958476181 · 464306837845141 · 843234553888561 · c121
|
| Φ216 | 854929 · 995329 · 238416697 · p258
|
| Φ240 | 3999946638778091761 · c229
|
| Φ270 | 271 · 32401 · 75033624123631 · 228161105702085155671 · p237
|
| Φ360 | c370
|
| Φ432 | 433 · 23761 · 872389873 · c540
|
| Φ540 | 541 · 148501 · 3840481 · c541
|
| Φ720 | 21601 · c736
|
| Φ1080 | 91801 · 118801 · 374329631381325121 · p1083
|
| Φ2160 | c2220
|
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
:
| 238 0825306804 9830374915 4592706163 4998452360 4340309228 0045126195 5603359972 9747321683 7203826072 5994556118 3646471407 1913992085 0866377808 7951120485 3009270267 7533071660 7551673818 7548029228 1892011448 2040174413 1144282541 6733935263 9989558855 6390503862 6584312346 1004467751 7897130429 7988485527 2524181673 9205473081 6679974655 5313904561 8891424986 0364979052 7158220975 4371943552 7853614551 2023586583 5365689203 5517735343 2119471664 4373739330 0102296452 0573619817 5844753190 1258362431 3693747783 1979586382 8849056172 1025110855 9741395481 5142573515 9292624651 8046492950 2552190075 6297470909 5749029868 9225221532 1481407352 3051961185 8893590781 0076527850 6876510514 8939898643 8401730269 4338790661 0119064198 5842005246 7847151977 9006134589 5668334182 7065626578 8430718647 1342526212 1604043657 4367617318 8682943439 7491962373 5118933853 7425952423 2642052450 4860803391 5665264119 8127427274 1275802502 2830377526 2774892810 2895659983 9684865369 6339016736 8601707596 6267790732 6558642287 9760715235 4795626319 8670784480 6721866895 4979882221 4847553807 6692121659 0532173651 7380345006 8100106631 3764119359 9747090651 9928614607 6137512325 8745982361 |
| 15476720 4211852468 6065047970 0577566306 4135177721 8886280249 1805969462 4119049833 6021138672 6553347883 9655670308 3786181524 6739758640 9074885950 6301448536 8574669521 6753054798 0973662383 5827136519 3139930416 2259827743 1446120213 6035318063 2865219983 1040116721 8352508073 |
| 2088752 9200974761 3686573060 7421177682 2070541518 7844883726 7129864215 6607307585 1642271800 9678763959 7861162473 6450070684 8067436743 1708702379 6210633881 2695202204 4879261400 8713869614 4935455766 0298999325 7402769630 3182277886 0985932186 1820678471 |
| 31 1311946433 4155938468 2202401860 2943993681 3778961575 8995778393 5802391528 6695461743 9839842536 2409123520 8122869867 2852650097 9591232689 |
| 298 7132646705 4559782015 3401013308 5647221962 3982632791 2893291160 8279462936 3219394721 |
| 129003916 5163110832 9333557672 3946671473 0931835477 |
| 107092 6924944591 9426009002 9235515260 8954335953 |
| 19846 5119745888 0504770700 9341207258 2222394587 |
| 2993 4168079124 2704208010 3687940989 6896618831 |
| 15404624 1202827720 4818003729 6827725561 |
| 1285260 1934001007 4471865546 0812788021 |
| 1 3615081456 0030269095 4279545981 |
| 2002217900 3749029496 7212290593 |
| 223 9845519576 6477773371 |
| 117 5415702266 4005960641 |
| 28 0884231938 6857264801 |
| 6 1165133443 0494644347 |
| 2 2816110570 2085155671 |
| 1 0873880771 6762567821 |
| 5622623122 6530118513 |
| 2928366780 7072205773 |
| 399994663 8778091761 |
| 200102440 0018624741 |
| 45531863 7150438991 |
| 37432963 1381325121 |
| 260949 1572645161 |
| 260912 6404513273 |
| 84323 4553888561 |
| 47954 2289310541 |
| 46430 6837845141 |
| 44611 7173289521 |
| 41898 0842507881 |
| 21085 3901512081 |
| 7503 3624123631 |
| 178 1161628833 |
| 56 8002394961 |
| 19 2577292473 |
| 11 0739760273 |
| 7 8341974441 |
| 6958476181 |
| 5821166171 |
| 5257922833 |
| 4422183841 |
| 2951538913 |
| 2019783211 |
| 1389775771 |
| 872389873 |
| 572191561 |
| 549863761 |
| 409930561 |
| 238416697 |
| 187465753 |
| 119422529 |
| 50383441 |
| 29425681 |
| 14627233 |
| 10923929 |
| 9189181 |
| 3928651 |
| 3840481 |
| 2023201 |
| 1782811 |
| 1475137 |
| 1233751 |
| 1143061 |
| 1086301 |
| 995329 |
| 892351 |
| 854929 |
| 590833 |
| 492061 |
| 477091 |
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.391712%
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 = 23 suffices.
Express N in base F
As F2 < N < F3
and N ≡ 1 (mod F), we can
let N = c2·F2 + c1·F + 1.
- c1= 6358064614 9728680829 3833836616 2850123049 3794121010 3951874021 5956714628 0885327621 7739292288 7255758726 5493838771 0591462466 1954905102 5724055899 3577532376 8817503833 3478427910 4599333417 5584657966 3116891912 8731630360 0976449234 6924826251 8425268174 0904368146 2053613452 9633456655 7702247530 6105605210 4657681777 5478963505 4681434846 2161420686 2822429340 2346569975 1167491511 3082010881 6383729928 6726378886 9348256742 6108975367 6122021105 7249355648 5189462964 1483096684 7336793933 9703949263 6397752286 5816511660 6323096104 4996757417 3030207304 5674878021 2651822112 3430378888 9414366349 9132970585 3924313428 3593343866 9768568680 8580279205 0778648455 7813562894 2563685005 9904500281 6857239053 1224424444 8037715802 2298201489 9912931464 4372958039 2066126827 7161471915 1223121243 1417219967 5420186659 7916658472 1784264156 7377140241 2549174383 3478928160 9806003925 3991668322 4886089884 9728247223 8115380818 3934889248 0135328196 2528218101 2044414262 0973061002 4748284067 1410419130 1712077361 8431600734 7638249103 0639159590 9303596479 6376142718 5653977780 3354992962 2260641765 3814686105 5992637899 7446877002 6022193953 6648698188 1371082496 7811650583 3733789032 3570500916 3581270142 2942325577 1594143538 3072498709 7680628462 1008293890 1477301801 8280546193 7498162178 7718743126 3737534617 1678016775 5955838669 0862741076 6188485885 6226391046 2971167682 3948513325 6332556400 3154688486 2856398557 1430487056 2341952482 2362863440 8130695803 7437046752 5541577689 8546392465 7732873390 0687912908 3962494950 4762189215 9870924050 8374388094 1964246657 0213141655 7163826337 8632024737 7648123656 8045866106 7712507790 9148086715 5213455492 7392710006 9287469179 2046501827 9554901018 4048493481 1777829926 0957508033 1069264336 2972247858 2772345683 0458517386 3150473793 0545280900 6144509271 2433630622 9570388203 4381489964 0798754918 4709874631 5474722275 2090293466 8999111166 8032544160 7084464145 1565781279 3638107194 2188190714 5438669920 2789427579 7247608228 0363602335 3785624335 2850876113 7363205682 5072834093 7340961731 7036928178 9857195054 6778359663 2760695145 9626732530 7887823827 3713373522 1836586505 4998951334 0148632668 3951104852 0454877535 6044301081 9609227392 3238684543 3531214132 5120659497 2784627423 8589647963 4882102044 3498461048 6224779628 7213620790 3742798138 4705826151 0287124448 7813683497 7880231185 9028396478 1793823258 9493118212 8677829468 9319264939 8527476967 9506425241 7626169310 8220998461 1037203174 6517261063 6448208907 9669052981 7374650688 5788934528 1908596555 3860862028 3165058684 1404767347 6625387259 7130809494 8495363060 6985322570 7149569861 3840181191 6016053175 3461655163 1310331443 5204752701 9528722086 0471436536 4339847842 2352370259 2696073858 3452919075 5449724541 3590419291 4565673483 1167884767 1921934139 0953139484 2378620988 1154100018 2331353330 5942661884 1251876280 4982201043 4222767104 8564354775 8350581585 1070976228 3245301901 1346556537 7280426086 2143104440 2688490403 9694290350 1535734727 4021679285 1261961288
- c2= 177475 3719930505 2423048660 1654400620 8996965543 2824265112 6570888175 8105079926 9407492133 8630918924 5756519449 3004713040 1120200257 2190645372 1306186937 8836093312 2204915746 5154582540 4237591448 6543027086 7935678559 6567094201 9182095436 6938331480 0798296327 1772137899 4473622120 4850094062 3853706593 9161925052 8570450146 9516937134 0008661655 6878782826 5052981414 6783978552 8079468247 8015024061 7940751086 3219792389 1612524540 1313778533 0181543033 5925375893 1589385358 5823323420 1710033616 5592328363 5231807693 4467399415 7125959357 5631110861 9419396377 2113730987 8930088832 3601548672 4601562489 5710367131 2683308927 5706917032 0933610462 3399998742 0664728673 6942077753 1945625146 1869829971 9231218445 3688058220 4842839943 3017707066 6893338359 5682406888 0969544171 4249906385 6757753543 8679026955 6158325988 1238057650 0797958424 8283176716 8035843461 3861694861 2621496925 4265871565 3680522004 8231947638 5108396223 8379731777 8165367516 8874981881 6219627694 4251044705 3623421558 9752423059 0670333582 3805143356 5407882173 4571120597 7690230259 4487658937 8926317467 4063997995 5575620703 6959644802 1562195164 5909550652 9871134825 4701139489 2326429099 4830920190 6111161332 7227772271 0707005488 3394010313 6414543980 1962002439 9858324159 4905155189 1694626796 9780945589 8556890966 7007959126 2060018013 6447242787 6520015686 3246383030 1829551053 2658428148 7300925581 9274423535 8645036006 5164721827 8000391200 0729329552 9431605447 2451355543 3284053890 8105740993 3408210417 0403506767 2460318671 3190759585 8296503961 5082724561 3947914718 0095895363 1086221122 5053370332 4352286710 9030017465 5372209890 0442053188 0871733762 6986819801 1330831173 7454035359 0188451608 3476521476 1731879962 1296879886 7268706746 6293278922 7589340145 6167440430 9591968465 9824948580 8761367038 9200129422 7462308803 3538821779 7979180234 5879684697 4719448515 5916967096 8974666120 6643931499 4301631395 8870282516 9603258996 8264362501 6776316894 7736828107 2440443814 0650709155 1154835653 0158749479 3858048906 6533845185 2021603445 5975050220 7652135097 3455864473 0522651213 4424175131 1263246135 5711200273 0399551279 9023092053 2524919369 9675494143 9911536892 4586039516 8367771653 0868644135 7869950560 8479619838 4946508410 6427480860 1750033543 9792993874 4372607160 4964897941 3098990227 0215052312 0036984376 9792948359 6708224490 5858612185 0146800271 9263990314 0491804970 2215801509 2633238000 7691227096 6728429864 3467802484 1627719216 9483302416 6101224822 1332495471 8814910736 6974994789 6226862662 9450390969 8674028844 3238741674 7756878864 6873005271 3370185005 4305214753 2652692319 3366587672 9729664941 8550007084 6872357326 9075422351 7221196333 6686785829 0451930742 7646372265 8847877055 4925364773 3995666248 6019746608 4160039414 4755603301 3903978257 8475364412 1605351478 3309902466 6501784689 1445560828 3629759621 9165038503 3225937606 8610816209 7399028511 3690483957 4728513710 2420134051 2001778222 2775928288 3756687249 8057066281 1809241142 9600120916 2729971352
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 ≡ 32 (mod 64)
and therefore cannot be a square and N is prime.