Primality Certificate for (6113^2767-1)/6112

Andy Steward10,473 digits16 September 2006
Originally by Tom Wu 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 33.717119% factorization of N-1:

From Factorisation
61136113
Φ22 · 3 · 1019
Φ37 · 13 · 61 · 6733
Φ63 · 31 · 43 · 9343
Φ46114753 · 29273752783819 · c1725
Φ92225856569 · c1735
Φ1383c3484
Φ27662767 · 185323 · 33606781063 · p3465

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 :

13114 4405108230 5918967488 8653474288 6727384382 9366952582 4790144331 8728008881 0890784285 2096307851 0265906506 1445431316 8500415355 9756733728 9196843804 0873003635 9060416887 7074467875 7720465492 9799529941 4068082086 4065620292 5402520993 6018765932 7659527769 0812049326 5700120734 1410187785 3035869179 8637823046 7862316342 3659151138 4023938026 9170630474 4990523818 5967393328 2981866049 7286485304 9748072384 2795413245 5802005341 3299060598 1374623611 6695755711 0060200496 8769362403 2364456273 3576399594 0353827208 1493496460 9719711414 2094248854 4732978435 4012617915 4752859098 9025838608 7985896050 5092707415 1308651084 4041916890 9555327804 9899180722 2062615673 4732549432 7944002864 3643881752 6477156576 6378444838 5034869019 6533519361 1979465087 4674850390 5975634168 8304233636 6630165105 6452600843 6298483322 6317601764 9803907095 2402390470 9886238548 9978726622 3906025578 2813531441 3712589876 9041418081 0256449228 8196540248 4669792016 7435497178 0399348054 6214799040 7628530663 6769460328 6455978678 6848326254 1584896310 5645243345 7296047422 5522637490 6195242731 1930450396 7938908584 6554756665 5201043227 0480271195 3457239811 4786746990 8809312550 2300224950 5414462138 2798513063 5318756550 5106811057 2032340984 6751265851 4455953242 9818245292 2126565675 4820830070 6947374113 7994102143 5733520921 3736313586 8465342450 2782583301 8271233533 2784784313 0354572559 5882991357 0720297516 8889047747 5652228813 7843272702 2883626674 8680058336 6729728844 6338595126 0782410161 0776841497 0095699000 9031942641 8339073747 5430453873 9712534908 4418103168 8546080796 5070000989 7162003539 2657558131 1335302236 4423632002 5726246542 2312460151 7279539773 9027651767 3465718407 7499627697 9567754665 3132651108 8343204699 3928228834 8244377684 2317041742 9415467823 7380659921 3878396292 7933129946 4867294950 6811378901 5444424506 5743658063 1839285018 0290221511 7211904661 3816389328 3889067121 8799013423 4174567444 3996317461 7675880057 8596261361 0454149587 5322349871 7178121264 7222797798 5366573167 7813732126 7422640004 8912574188 4085807172 9739933366 6593870257 5944680294 3839193992 0990649854 7019495901 1368206367 8574105160 6329994864 0629212557 5982293972 7281761049 3079369918 4248637082 8046950655 6615056170 3229288182 2661050197 1186325765 2573062168 4722458344 7139288750 3580354847 3289643557 4663955701 5912535974 5743665268 3217455484 1500441770 9301108972 4952322281 3112384580 4442889107 9024058689 3528527824 3886926882 8916703511 6617806194 4998524182 2524375311 1766802611 9667024040 1332193127 5488733079 6679801736 1855146553 2550234077 3369977861 7203456964 9418909541 8387536096 6782056857 0621983709 0305233669 6066921991 1757394266 2983164632 9020150577 7146844509 3784408129 3472687074 0345943253 1449552581 4937421682 0145959962 8335492966 6186866646 4943262162 7034208345 3099100697 5050809768 8119994610 5513754994 7307832835 1003845882 9373185744 3945720070 3941090678 1637904874 8787481641 4663531327 5416355326 9314046229 5316088138 4644253344 2870141415 3249496630 3685328074 2147970881 9661725874 2131888283 5600846256 4185905978 2973026645 2035470759 5450065630 0413730945 2621323526 1231014713 1503063894 7511661070 4484337291 9299309741 7705016781 9109746500 4338415565 2319103451 2089366009 7553433387 5822403274 7786642482 0050803499 5579334387 9687369951 9048514370 9449900220 1817609615 4935949917 3207691591 2665281648 6570616679 6519130324 9230693233 4446556062 7606326701 1954730166 5971483282 5604532699 8981002767 6079203843 2474644160 4616591019 3998749857 2177569169 2849863974 0283182113 2873551137 4454815356 6754350149 2747052068 0984280459 6330315558 4756335377 1639525963 8996398647 7520205985 7012091499 7936505274 0657116559 0816264528 7784602854 1948847721 1930879263 2473655606 0324221358 2228222347
2927 3752783819
3 3606781063
25856569

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

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