Primality Certificate for (3429^7549-1)/3428

Andy Steward26,684 digits11 July 2009
Originally by A.A.D.Steward 2009

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

From Factorisation
34293 · 3 · 3 · 127
Φ22 · 5 · 7 · 7 · 7
Φ361 · 192811
Φ42 · 5879021
Φ613 · 904201
Φ122269 · 60930593389
Φ17103 · 2687 · 387057332903 · 20888919868463316001 · 163309052451265806367
Φ34137 · 1327 · p52
Φ372461021183862841934152727686497 · p97
Φ5115635568679 · 159378886232993533 · 673321735770001569585124144821058755862669 · p44
Φ68433229 · p108
Φ743923 · 86041577 · 4322961971 · p107
Φ1023673 · 6121 · c106
Φ1112221 · 6972493220240179 · c236
Φ148149 · 593 · 41737 · c245
Φ204379942801658653 · c212
Φ222223 · 3109 · 2811631 · c243
Φ44414653 · 30907729 · c498
Φ6291259 · c2034
Φ12581177489 · 244423111 · 29911328879 · 807190817166885799 · c1994
Φ18871086913 · c4067
Φ2516329597 · 581197 · c4062
Φ377422172251 · c4066
Φ75487549 · 19070968058734261 · p8125

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 :

73726 4807354271 4558812689 5636387063 3096855257 9588788752 6146382886 8075264690 7652548288 4088838749 2162594790 3390663280 0191829497 5182128504 8450195505 8440162208 7792576216 8919222692 7587990121 6234615388 0698095816 1175433129 5347129543 0359082736 9572632362 3804659678 0887456418 2465028934 2948975192 3684185731 0216547334 8626657181 7009299859 5561751716 1905034340 9158434175 5373273965 7118121861 7192230645 6229137870 9348603630 4151402484 4926257913 4473198337 9400780472 8315437597 9820706771 3790228487 2247237461 2024850719 5216901862 0633442734 3006052589 0801210007 5455376811 6464610972 2016099756 1724810726 0785299373 0342204888 7454463008 6197943985 8747284124 1393705213 2124716237 1850846030 0890225851 8203204538 4422145786 5004532067 6544937147 6570564821 5639897930 2272536849 5664324816 2094963187 3274561872 1024700069 3488224520 8723849530 1979579733 7620394628 5541515843 9525197696 5124270905 3996078844 5675951663 1532670306 2896144319 6213090118 8005593489 6796016888 9984682402 5666658651 7942444258 4670057730 0962057363 5281112755 0556005902 2314518480 2852952826 3243101949 2081848633 4643310826 5126638610 0201710568 4349696032 8165627713 0098422695 3439780186 7982267802 1411888023 5950143661 9706236183 3420428010 0106844279 3675648820 9558627069 3439443480 1847695584 6328936913 7493044147 3960735117 8945132439 1041578849 4475306423 5560798932 5570257349 1777382302 5656078793 3399306085 2674573745 2298016709 6524157534 6216619620 2696206027 1075966130 6532378222 7986912728 3316616461 5498697469 8435657297 2761643792 4766162274 1755859941 2842030913 0338296394 3462304201 0053304447 1864739998 0860907216 7024642205 0413643253 6086469601 9188319044 6320497755 6307672306 4796514909 4771232547 8960587958 2445728681 3867966730 2591691881 7722667513 0419694114 1374952714 6490441454 9616440185 1077740804 4264469523 0026376449 1070014375 2148650303 0497348527 4184695305 4998433456 9369121654 1358948312 9931977205 1266252320 2971045866 9008558594 0525730570 2118928106 2230672494 3690330860 2358745919 7708585253 2562515180 6673320923 5402731972 6589302580 9683931030 6300918503 0779781901 1477080126 0154399519 1292526889 3661025407 2449399000 0899663715 6584596988 9210545307 4324478726 9878550343 5145743329 6275392332 7245717663 9489933896 0611573445 6124335243 2249063892 3341801159 6081869851 2913716040 3150615892 0670523444 6834328817 1901687723 2321574112 0761654055 9662258367 3952870731 3329279398 8134727034 3634326706 0836780349 9971022922 7434976923 5513161737 7225863169 0801694501 2872525489 3858242888 5295581647 8634734600 6173990395 6339907628 0467567486 3337467385 7018481160 5698773923 8726493606 5122126827 5851069476 7439263226 4969937093 9403067070 3329403315 3171232983 2735860492 5429990906 1453208012 3494231290 2510471379 4268639846 7845668856 7972676715 6044955486 0254022753 6834359086 3082913476 5866840090 0795423887 8276045218 7345518369 2303916670 7974543471 0071835300 8328271766 6048621066 4092878648 0794252294 0968179545 7489669632 6980190830 2603186194 9731221241 6177376667 1746771393 0196475084 1301609892 5656278308 9583221075 3296879512 4347721344 5333126935 2150690563 2491904823 0670634319 6594251864 2508006549 8728632967 0879727638 8143161787 5051497187 1902625119 3507571766 7187846521 6261848837 6091179443 3384660099 4756865345 5161515545 8464677494 8568551736 3436657255 6745195783 5262636493 5954817379 8511014725 5292707482 7568124764 1015472890 9535479353 2926037283 9306222256 3865759495 2829095923 3132559327 5069436089 9254699759 0298361390 6282574357 0746918919 6104610714 1984955299 4619428309 0638031577 8251454744 3599864371 8746912565 5530565203 1069825348 1267920137 3506535600 2891829433 9847060952 8371860555 7992469057 8007464164 0311458156 3196306914 0636241364 6893528694 1469040958 9299228398 6631872283 8355425540 5795714442 7300158733 7691278303 9035141235 2481658077 1823633150 7431649246 9428753880 2907856171 2182770401 9148243333 7148953229 5158100818 8519355343 0215936253 1307490439 7946375289 0508520086 5400772490 3072976690 2955969326 2188963199 5609180559 6802611802 5250135909 7748284971 5596911822 3709157284 9732223086 6717625550 3193165506 2217393864 5826076636 8197215692 8086185124 1605854691 3762393834 9874088671 7842324295 4474483786 3657270771 1015825540 8201837850 8563671358 0743261901 6921353585 0525576329 5294978372 0195293372 4466091120 3747143909 8368104943 1899963671 2684663124 0664010540 3030974276 4582953282 9925831530 5934106394 2530100428 8221196482 6591777123 0694298811 4296767180 4128385051 4885486353 2932578903 8402344500 3298690376 1786487534 8927564150 4821223002 0815332508 2783271172 1497852644 5532994670 0576803922 1973103009 9876231945 5401151640 3269132320 5797237773 2252583020 7789975393 9666440776 8081016231 4531903187 6090926428 3145249097 2775296917 7943023763 6592818920 0556166271 1210418920 7619970308 6125284496 1285260465 2404931917 7446038116 3163609270 1564946741 9383810183 1608950061 7799896095 6917934952 5529020800 0453777933 2078728147 0820779228 1716418371 6489472281 4129034227 0263685578 2822535185 4304700550 5850850535 2244072314 4448627515 0678533140 7939563251 5378015492 5971433296 7803380679 8177588567 9365658311 3179545775 3508183437 5688574436 5432344914 2295764991 5304225892 2602802322 8704322101 7431238057 1744659732 4987982138 8387686744 3782149488 2057011304 4349627140 8266348647 8286125968 5618353624 3013552450 6062033276 0296659697 0941983599 6016063470 6318109786 5993155176 1936742965 7641711980 3336943432 6260440930 4549258564 2500737584 9646185591 5652357995 2260330549 9142053878 6100442158 2273305502 7837365852 7042172969 1267087432 0067999143 4729602133 0006262940 4095873187 3635353597 5821798658 9009114804 5210695796 3765310687 3759373805 8689983322 1813697307 9986415322 8980640865 4144361388 5697696280 3520390825 2727556729 1543250636 2325033657 9559625402 5421313670 7664910593 4913758408 9048097544 8026905586 6479036112 0555911788 3788867279 5124145508 2676156993 5418161540 1250289471 2417023038 8116473546 5742363567 4058941246 4046459691 2491663905 5904774009 7998946419 7482216229 3420431920 0340810928 9219239944 7277390388 0969543058 9010056697 6566191494 0886971709 8101564702 7432815348 9235102662 6463330459 0545133128 4746477281 7250490138 0688106477 8970693612 4271412535 9523380111 9468977359 7790345745 9246972411 0586805527 1746718245 8758554251 0696943984 8709331473 8224662786 2295826835 9140059514 7299462753 8822132268 1088576789 4438517909 8772664869 7419049595 1663823412 8215713116 5789786143 9920816569 4957019043 0905602865 1989877403 6862240350 6926830927 8975919591 8610297581 4210808513 5801992326 9816498899 5396637900 5191228265 4662854353 4954674303 9186249238 4487626551 0402063730 1766372912 3793867243 7676849268 8469094202 6650577734 2878699324 8304577051 9166491694 1618105485 0357622288 4434072908 9771770280 1738419148 9219511926 4892999087 7183218569 9467547064 6888657594 6378746163 7941092327 6899317402 0596881161 0870372469 9657130737 6658798868 7695688375 3440915491 0991247386 7871740221 0661587475 9124388724 5891007050 8984302834 0541321697 1959467993 8351837919 5427414728 8014002100 9324714872 5933649963 6283186383 9076087971 9629224069 6287839425 6929578653 1752567849 0945013886 7341207188 8727876702 3586572896 7885467497 0370786681 0178810760 8873390818 6129230862 9200209299 8846899712 3627173638 8985715845 7532994864 4651564384 4655336924 6834685124 5893563826 8397722942 2570903608 4272795367 2857002693 7556318036 2413720165 3384845987 1250682306 5831240068 1875880358 3928737691 3613916499 9699941621 3569665652 6240690417 8985240182 1873241543 3549177180 9738351060 6666645525 4928591539 7002775158 6358399170 0194266577 3032709004 8264494703 6549958474 0519760955 5910217931 3940237361 4222098032 6115120624 1904257140 4825507154 9318282165 1789683175 1918404002 8001352586 4231001423 7589405879 9026912645 0203546017 7747577693 4870485697 3406824022 7590272141 3338649727 3412577827 0711946658 6702358226 5090431188 8888962842 2972110659 2404879406 2070284337 4449846855 6174638375 6633911175 9890495810 9086923986 3162329162 7005253394 3948319963 0461820529 0042203100 2450942894 6784096634 2430517113 2413540993 2850843469 2127543191 0296844750 9476711517 3988565170 7865550789 9216748939 1744110969 8343789956 5242923641 4907387813 2976614258 9078280143 4996884587 8257866980 9237030109 7721548667 0303154262 3224348186 0010665312 6983591972 7693180292 0281676386 7364398452 2520882141 9483905606 6852999107 1048317888 3662254784 2077186949 8294252471 7722552757 2277665771 6836649661 4906952747 0004815042 3850347557 3907503794 8372364442 6837071919 6528587223 0141125356 8493309512 1663147558 2932699794 1141990172 4770204181 0884212938 8715554777 8421769134 6751199087 8871788321 7893813794 3443077798 8577704115 1739349816 0959348536 1650850597 9506430601 0877426494 4514289734 5191235975 2263604490 9509203711 6611323242 6009354149 2922833569
30806472 0948112218 0323365108 6475343801 2203609447 7972576012 8945538336 8905904011 5781780808 8824529538 1770964549
1264138 7506910467 0679818349 0313262613 6807494895 9922898105 0770455631 1634133210 7891906556 4572919623 0181794777
7499646 3414829124 5434114833 5624337537 5635625934 7130416864 2632231504 8545326992 3314985730 5090203213
20 0891534859 1072948700 8259670074 5515197339 7541407863
7951 8054936475 3993706210 0393167918 4536269487
67 3321735770 0015695851 2414482105 8755862669
2 4610211838 6284193415 2727686497
1 6330905245 1265806367
2088891986 8463316001
80719081 7166885799
15937888 6232993533
1907096 8058734261
697249 3220240179
37994 2801658653
38 7057332903
6 0930593389
2 9911328879
1 5635568679
4322961971
244423111
86041577
30907729
22172251
5879021
2811631
1177489
1086913
904201
581197
433229
329597
192811
41737
14653
7549
6121
3923
3673
3109
2687
2269

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

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 = 2 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 ≡ 21 (mod 64) and therefore cannot be a square and N is prime.