Primality Certificate for (11398^3319-1)/11397

Andy Steward13,461 digits01 December 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 35.199993% factorization of N-1:

From Factorisation
113982 · 41 · 139
Φ211399
Φ33 · 7 · 7 · 409 · 2161
Φ613 · 787 · 12697
Φ7463 · 743 · 3851 · 6301 · 7309 · 35941753
Φ14127 · 491 · 11019331 · 3190754372681
Φ217 · 631 · 172059583428653677 · 6325567011900954089638430191
Φ4243 · 50983647793387 · p34
Φ7921647 · 12660634169 · 24107365379951248751 · 9239089051323781432019 · c261
Φ1585531 · 39659 · 415793979011243999 · c291
Φ23734129 · p629
Φ4741423 · 2477218327 · c621
Φ5531000344297870527 · c1884
Φ11062213 · 8849 · 53089 · c1887
Φ16596637 · 7067341 · 210780578611 · 2304991918188499 · p3760
Φ33183319 · 6929429735551 · c3781

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 :

6822273245 7413948243 0717882682 2824956544 6101229265 7551538954 5857850992 4618589369 0028425739 3696929064 2868135320 3767131107 9650976957 6600948162 3200563264 2817666866 1473218144 9254803445 4078079476 4528941282 3904833259 8646451400 2501328827 5253790233 6453795981 0946894230 8417503310 6371184059 9892035018 8298380014 0729476469 1275769688 9142692745 3919887139 6782477768 2494716315 0977054217 6753506534 5458844037 1004501015 7461338930 1242344707 1841479965 5196167922 5902046376 0772155652 2754527186 4260796561 3776184762 7331565001 3914484877 5085830350 2442854920 0573547448 1861995427 4619235756 3481114558 8489626803 3611689095 2683789217 7278870705 7074821405 5739051466 4344137244 3156534341 9580601351 7301284318 2984900214 5534384224 9143737410 3071692379 3312955411 9578654396 8767784205 8208649422 8309024603 5271025197 3953543117 5501882502 1955097160 7235948763 7815263067 5221434657 0448268415 9505113359 7589293320 9055110448 2031305305 6402760388 8915680226 4648653719 1995773738 6649084903 8501625393 0652339896 7673152000 0163003119 6813902920 4595155119 5654873099 1863372182 2572241759 0843062480 7191748900 2401441627 7206803083 5195373169 2451447487 2439536354 4041464775 0144255025 3420197074 0127399979 0693146403 8784238187 1664989415 5697223606 7244891838 7344687543 8941900448 1421252786 7726535085 3776414598 4035031286 2468328648 2705482322 1202191705 5300252734 5029408980 5318336459 2547139064 6069234593 0899065460 9417867844 2456614898 8378365100 2485817899 4484003847 5977471162 8291171866 0474140801 3315890988 1132779482 4280407527 1415574928 7741339907 4490185929 9922729509 9869933269 0715085075 9713202425 9954786046 8163562228 4244315189 5652725601 1753042285 1835681761 0080346384 0234544319 6235020442 0947196978 7786208389 0388613287 4503299363 4265696944 2313926155 8762890693 8146501684 0133665767 4848534007 3016235611 9447013074 7109730034 1124783230 7355986781 2772991201 8028844107 4689670727 2648831107 0061877627 5593059104 2756361085 1677757905 7128554592 0925609625 0739229770 0406288203 0381711709 9651110869 8471314006 9071602660 5371400759 2313823581 8994942022 8817273887 8166883197 3327131221 1553035013 4050061763 7675625762 2362091440 3246879288 4793319451 6316675997 0405864207 6232798366 4092837128 0220171352 2248335168 2580553234 1800541266 0322922732 4702635240 2081213249 7818145365 3349177750 3670842158 5096984393 1392564563 1929234860 2998833322 9943007342 8086622773 4191756880 9139116503 2060813336 0429419854 3724889796 2796454514 8704321130 4488171495 6673985810 5094757930 0471562628 9496986460 6449075078 2828101428 2069334384 2251706061 4361889305 3002033357 5066290870 3702474409 0179117820 4937727931 1231931843 0456356175 2415600609 9741839707 9922515232 8083746600 2125584846 0835863167 8468468504 3547726407 1948991080 5892035601 2346564047 0252719199 5781052076 5365747796 5817353166 2616152765 0744704288 2718435617 5722625521 0463582278 6820091099 3633584978 3158805574 4996365114 9923784745 0424066116 3878008639 8281867238 7285127624 0025883186 1496320707 5044737990 0528770401 7997021321 7973805570 3297671062 9954650759 4426061948 2430743521 9187680437 3550925125 0991929199 9665177909 5115356001 1671389336 4338782812 9385845480 9789446559 0090207751 4438105254 1780616039 2535095359 2257789460 6010359532 0972574950 5443284222 1178325149 6613187461 6803195398 7727932919 8673661374 5223537477 6793702671 5358726636 7514986556 3912662249 2603689928 7181999530 3283144843 0472788914 0781518456 3823790544 6954370692 6403696010 9041246289 0855309144 7178243375 1280267129 9300403008 5224308624 4498524611 7581519133 2302411433 4424822369 0644902610 6483867801 9254594866 8289490615 8306873877 7991518017 9648849871 2590467395 2477677365 2615616824 1288010564 2548763481 8355178588 0362632705 0576222402 7970698896 7011923167 4234140636 4782786850 8012917486 9349299064 0314052010 1389596046 2930881166 5183969823 6804905004 5515279915 9927608017 5611827766 1674828440 5656012688 1056981909 3235586216 0390313319 6207547415 7966819500 4799207720 0427266056 5247141134 8377601371 0209979690 6826124165 4982692094 3388219572 3260561787
214836537 2427598041 8876920722 5182155174 3451792900 0320838149 9498813879 9952726586 1352590870 2707341242 6247767224 6908777017 8809744890 3925534381 9492295090 3617138450 3670669312 7099023879 6117936141 4393029761 0280838631 8395503650 0248644972 1392231818 7879301742 4868784665 7308671708 8300395124 5424713237 6107412948 4210348483 1709639817 5936849282 2342024384 7051626419 5239214771 5478637707 5561471940 5011441326 8726382207 3742216054 3488726321 5275578452 4977454956 0328033719 6274626064 8680463121 8849012366 5790747734 8536754386 3442310129 4913181042 9776743576 1112584212 2442796832 7575750407 5364532849 5803843805 6467258274 8618306738 2646763898 8102766293 1631182611
2193 2218899960 3257360022 7884747799
63255670 1190095408 9638430191
92 3908905132 3781432019
2410736537 9951248751

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

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.

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 ≡ 6 (mod 63) and therefore cannot be a square and N is prime.