Primality Certificate for (6087^2713-1)/6086

Andy Steward10,264 digits18 April 2007
Originally by A.A.D.Steward 2007

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

From Factorisation
60873 · 2029
Φ22 · 2 · 2 · 761
Φ37 · 13 · 19 · 21433
Φ42 · 5 · 113 · 32789
Φ661 · 607303
Φ82 · 641 · 1070841470641
Φ121372818728310193
Φ2497 · 1297 · 9721 · 5151245017 · 299151753697
Φ113227 · c422
Φ22665089 · 1497826754713 · c407
Φ3396781 · c844
Φ452113 · 4973 · 80318593 · 343524521 · 13874623859085757 · c810
Φ6783263893 · 12339601 · c835
Φ904c1696
Φ1356c1696
Φ27122713 · 3450673096488913 · 111577630349066133433 · p3352

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 :

64 0365056574 7647598837 4729454003 4501603048 1933378293 0308215944 0357702032 5653752351 0956463106 6051297411 0102759512 1466903953 0207965717 2944995839 2235268265 0137445176 8458385867 6768968360 3534792551 6733257048 3450107286 2201845025 5218566962 7765747150 1433905477 7065009620 8016525928 4592786403 2878458414 2918247171 6159624996 7586435274 8494122234 0782528641 4289581332 2274947517 2130919987 8560470175 3827106632 2207424079 7206303282 1987122660 6549834245 0564716311 9222492968 9542247602 8897641712 2419799501 9435588947 2096599869 9090535116 6290901796 6694599670 2243670265 8161096355 7762852561 2138743605 0937888495 6489255850 0057448239 1648344174 3752082452 4012543185 3674308389 6178408538 3298052004 9947478013 7322299433 0565845851 4868351581 0016566203 7102648113 0282887197 4891243666 5705831469 9525791928 8305546039 9195489956 7450038413 9568083877 1935164956 2146177123 1574908937 1775741323 0046233700 2784646548 6460586687 5668498112 5101223436 6345044815 8954401422 0408066370 8419827415 6365248605 7887859036 8222735622 3972334718 0179482466 1153716553 8933600296 7628437517 1264967961 3294245879 7951070029 1618602731 8657947258 6797300729 2044600618 6299786659 3347317737 4659958529 4321905877 6529190215 9331451215 7972234428 0924180799 8232010782 4756749917 5298139467 9267102279 7143701248 5417954874 8674168213 2414708622 0766649817 7966091389 3539014695 6421696736 9523551108 9648461960 3667050913 6665268883 3768200879 3340544879 5412756298 4921138118 9556272948 2026236487 5305040429 4150676974 3823408071 8762667597 9149087700 0629995191 8757431317 4885504732 4612760683 1075684934 4633502112 6579045423 6604236804 8439341655 5509089440 3882769208 9929590114 0764335923 9828123238 8101451454 2428592608 9864133535 5825370213 5772747738 2565449329 2810916931 2655535062 7756565427 6576500987 8423561893 0079185939 7457535411 8201508358 1783865623 2688390626 4019556939 5245877599 2453329844 0746792128 6473374041 0384044321 4142671006 1715514487 3872571005 6085176487 7848657510 1166084064 4353127440 2410906049 4902036989 3816452510 6927039070 8445584891 9701163125 6039320762 5222114096 9786096035 7639606353 4074884257 7373570573 6893608580 9634548757 8677474413 1307778294 0901387832 4734896110 3209637292 2578846985 7494839863 0363528899 0833425194 3549404477 7815003499 1484122128 5871817507 2252703358 9223551911 9353271464 8060198295 2239403333 5633791388 2664757700 3165428152 5413767601 5217049299 6857372491 0507091130 0707157610 7700693544 9235221861 4765731691 7428495099 0182105646 6527021440 9353003240 6467501720 7731550184 6071715078 2949168813 6263035253 3411133024 7079697948 8293879236 7743158528 6194015463 2657902535 1561320578 6151861253 0269200438 6552358905 8785037337 7218383509 6253406078 9820408045 0174438761 2358474260 5786728956 2348238077 5257882650 5858422278 1127948709 7534039512 9815114105 5828171142 1553881727 7663213841 0154258923 0402910203 8481933854 8916371530 4648679410 3453821615 1216615493 7439581836 2324902931 0290269732 8657059476 3417044332 4365622574 1863312148 5256108800 2913046992 5126869655 6303323500 5185759502 1137294282 9583830359 7180862732 3496671334 5608067469 5424295927 8522851327 7172693707 0653987308 4426999168 0512879623 2340632166 0095750452 4820645129 7575664284 8969291275 5098898232 1688030990 8213696675 7292862181 6668854573 4675891625 1971197544 4173247616 5727022097 1313666482 5903418165 4026306683 6834757300 1962852557 0224388241 2072841782 1623890081 6241903168 0613479105 6971667576 3462156447 8380818229 1686937553 6525075954 7987754683 3627822380 9501750399 5245963650 3528454193 0136828371 9209310530 7570149729 9620130427 4832736763 8843472064 1685754273
1 1157763034 9066133433
1387462 3859085757
345067 3096488913
137281 8728310193
149 7826754713

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

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

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