Primality Certificate for (6797^3019-1)/6796

Andy Steward11,566 digits02 June 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 33.679270% factorization of N-1:

From Factorisation
67977 · 971
Φ22 · 3 · 11 · 103
Φ337 · 73 · 17107
Φ63 · 67 · 229813
Φ503c1924
Φ10065619517 · c1918
Φ150912073 · 30181 · 476653941451 · p3828
Φ30183019 · 283161262086127 · c3830

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 :

25510741 8301040461 4175672373 2063698779 2057405750 9337836136 0806245378 0152751411 6422560001 4705874114 5119207193 6997601870 6085278141 6162008208 6366297286 0103518447 2271324837 6208146575 9426644130 5454860347 1081219414 8120325044 1818141663 8619461347 5809256245 9891683409 9574905736 8932910360 3239418113 4951891625 3420222385 6476793255 6011126983 9941886782 7153931130 2967108249 9591994379 0420164069 6801580014 2178358742 9096336197 0245770433 5486066328 7480514979 3711786478 9746025601 0646636610 9215528381 3781291977 5726335662 8418803425 5173563742 4473091416 7553854125 2664226180 9096227323 2798413654 3179888242 0787628255 1426800813 6081516259 5339957531 4270160301 6304363523 2038561122 5939362622 5771824491 9009518755 9060401216 3854905200 6353069153 8904657803 9809796740 7338630662 6693088960 1795103073 6542300099 1440497126 8845108871 8451101100 9656258127 8589175582 7150734491 9875735846 4549391093 8591286803 0082359023 3864375870 7352674796 4400811996 0220022264 3715219472 4203442988 6906175751 6570520149 9898883279 9134518111 8907461549 5211432128 3465588326 7993191052 5566367434 6244426538 0320359596 5717514583 3402393940 6078430590 2227454744 1161347488 6538116998 6906877474 8737056603 4557925001 0020377005 3147540786 4447997650 8436223131 3254435750 2480047975 8538506399 2361063812 7357090110 0942554713 0939367301 8978983318 6299802695 3757097490 2947409298 6131989743 8181763080 1474480883 6349248578 0712274258 3938520315 3247114264 7734061188 6595776172 7730838255 1145877693 4646843039 8197904368 3286436855 8262628865 8109802668 8566987893 1165903285 3808571887 4067665540 9048049782 5994838535 1997432805 2039816658 8951405063 2930969847 2954541566 3524075216 4196261703 2264453132 8775036703 9167984517 5339414600 2264531330 8917398788 6613208297 0802622506 4777888829 5824341084 7519798033 1666564367 1655367092 2368182854 7702932485 8945710413 7073014409 0525537878 2495438123 1220501738 0210486126 5516740674 9968353931 0577261855 5395579126 2049060373 7163636118 9225646200 8900312839 7893698359 5096577963 3030061818 9376387031 6114159435 2075597786 7595084232 7145496360 4690282884 0841498841 8859956471 4518533831 4251619734 8051947380 6473772830 2778127554 2471327985 2224776335 8026465367 9802347456 8291657481 7586071938 9731702372 1074798429 7820029865 9340634180 5259141780 3594134979 4391409453 2451785248 3489954316 2691346883 9482216876 8529526972 4571322522 8223456810 7766861608 6835042497 5212331139 3640105498 7867158163 5830565011 3325970539 0738402946 4161248212 4108708480 3706111551 4738692106 6065750963 5725976603 1733948616 9148404181 7506207877 4704092343 9174771928 5410775049 7142902532 5245890301 4162900780 7661452378 1329523019 3295333250 4908293000 2749591914 8698521704 9802838456 5504659154 6730179446 6155393914 7927815918 5952527357 6442890875 4701580560 0439760194 4898247654 3362285471 3973830874 3128124286 9650974040 3408569794 4340882696 0406192338 6772966993 9117584477 3994579743 5225376533 3692866732 5398440168 3787513059 3568435480 7605969060 2952463599 1410667219 8188415100 6190100078 7872553642 0050043262 7312847401 1143797384 1254669886 4087804581 5751677851 6911233010 5781225282 7745762348 3856706679 2802592335 2957709314 9084965729 2301227619 4602737358 7475896902 4389341896 4081278508 2971501066 5112200737 5615687030 9276754061 1435891901 6310892563 6154066396 0681685359 9437923741 5571274683 8747361184 9815758780 1713800682 2395505960 1074247447 8831055925 0042734047 3291810749 1763227459 4336056458 5363945166 0973163115 6936392462 0528282044 0547225104 6828647263 0786183921 1294444506 4137569151 7039381444 9786084775 2102654656 4545855024 8085586194 5742394268 1340013171 1951990496 5596426264 0846495753 6398790369 5769295624 5351548419 1444491779 5622602853 9164372757 4495466863 6359146192 4122912445 4234407758 1025567735 5607618035 4301450083 8790188206 2050560478 1829444392 1645883792 8649838115 6821127649 8670661344 0950978895 2617085309 9317508391 1268420441 3690062808 0566909341 6533819205 0515160790 0643166222 9452253908 4424047778 8211410486 5718274566 7950962867 3330434096 8257904777 0600761338 8039263457 3779822019 6135552148 0693005397 1039256442 4102448088 2538183383
28316 1262086127
47 6653941451
5619517

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

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.

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