Primality Certificate for (10708^3061-1)/10707

Andy Steward12,331 digits11 January 2002
Originally by A.A.D.Steward 2002

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

From Factorisation
107082 · 2 · 2677
Φ210709
Φ33 · 13 · 19 · 154753
Φ45 · 22932253
Φ511 · 1195312124505871
Φ67 · 439 · 37309
Φ93 · 11109331 · 45231502429527049
Φ1048189181 · 272799361
Φ12277 · 52189 · 909441361
Φ15181 · 48661 · 174944101 · 112167601372957201
Φ17613 · 17579 · 1835181130931703248130581 · p34
Φ1815031 · 100291078194950761543
Φ205 · 61 · 1481 · 258101 · 55960321 · 26493669494261
Φ3031 · 575821 · 9684077646348953388722551
Φ34137 · 16441709408627 · p50
Φ3637 · 73 · 2161 · 38737 · 390097693 · 16749077457493 · 1538263526048101
Φ45271 · 1308707461 · p86
Φ516121 · 13159 · 23869 · 4071273591832297 · p102
Φ6049201 · p60
Φ6812037 · 14009 · 54877 · 2547893 · 665063642299344349 · 192240755883721883743529 · p69
Φ856118254101 · c249
Φ902521 · 2971 · 360012781 · 35128665900146490751 · p62
Φ102103 · 637603 · p122
Φ15320809 · c383
Φ1701531 · 164051 · 3795251 · 292919267564595286421 · c223
Φ180353269139581 · c182
Φ20414308561 · 4343127157 · 1327367287646870137 · c223
Φ2559155635261 · c506
Φ306307 · 13770797743 · 2549763591031 · 2133776143017811 · c347
Φ3405441 · 28537430326472141 · 3678508084446880781 · c478
Φ5104591 · 60689016211 · c502
Φ6129181 · 36721 · 360248602897 · 706167407877913 · c739
Φ765c1548
Φ10201021 · 274383061 · 212456027624221 · c1006
Φ153048817711 · 787431331 · c1531
Φ30603061 · p3092

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 :

21 3874536734 8113728156 2325374359 8595176522 6598799211 2802634607 9521369784 0129680268 0413714416 1944007778 5723235659 2802689299 9134021273 4585066490 2982628706 8029434473 8898346104 1931739691 8104973359 5481841513 6926984687 4138842443 0555317036 8765066997 1299260898 6033216037 0217682933 5532308025 3813611644 2841164627 1609436549 5715398971 6594993873 0740421765 6578929063 1428169187 6780247908 7940277099 2212781204 4128721712 0372608615 6815554929 3239384642 1845575585 9603339946 8210259491 1634305786 6965458456 6159459095 6107308696 4357146056 8752853841 3832541468 7457398111 9577282363 7508238682 4775989216 3625757340 9730896319 6167465076 4373142895 1208337859 4902165126 2877929535 5431374249 6847484219 1453725573 6133005224 3836189654 4615281084 7958821042 0151109584 1585981806 3438314579 1223793148 9977467218 2491355042 2078713186 9339382456 5205405745 6547935527 7147588977 6438043104 7280955139 6136103552 7063858379 2620398513 6891366907 9769930336 4794165965 5018620914 5920595577 3102398178 0733375748 2633033441 8285202281 2226074621 1230087511 6477418331 6316492931 6176493478 7789606645 1166058153 5674125120 2122861552 9186343029 9055685124 8526060990 7754584691 0060097038 4331902785 0815131942 6112948798 6604173792 2911330444 1783696724 6975723029 9864878968 0273606086 2258585148 3954714421 6721460792 1876450289 6828284130 3794578458 4901887984 7429787604 6753824018 4613623220 2583111935 3617007132 0328067982 6235570769 4102485163 1716592688 8388314102 6188326679 5442253857 3081160784 1451818292 6114539673 8191549710 7919650260 9015911896 1128030799 6897750520 3330757142 0918616449 3884708010 3152180866 1631558496 0461960400 9111786860 6162994303 0894758327 3392299892 0048062768 2408964873 8495189977 2913737417 0662778943 2573311214 8111935224 5814597646 8193608408 4805098990 3015242310 2720741806 4763295723 7289726428 3377935738 5167429572 9454822054 7613667351 4150456828 6545376535 0284309067 8408134248 1512911876 9651440041 3844676774 7633463790 3218544137 6075667339 1356547242 6866706097 9113392532 9485523699 3799450699 4103822717 5073318619 8548499531 2192194919 2984170140 2590482682 9951580657 1206509267 9512447754 1574999268 6453011981 6401577011 4818049588 0311427503 4413384581 0949014005 2952616313 7366015307 6446076795 3818718200 5285237463 1758146986 6189384028 7138108871 0973933960 2269879813 0518207599 6578317561 3265572163 0342358526 6108274314 6174371125 4338641079 6973129023 8493422181 5153049936 7802646824 3458244587 0072828118 8597789868 2447403602 2209582012 1117054017 8540541941 0558298931 3549954868 1337382903 7232353337 3103890036 1822578557 2981335847 6076525545 4475321791 1095302081 8752442477 8825419172 1884871370 1448683496 3612631693 4473005798 9623512633 7288090384 4858656248 7871037062 0080354108 5701124035 5502489386 9415948593 3141556914 1092337668 5204529297 0319370852 2767879764 6352055891 3416206208 5601326338 9082208165 0230341233 5091545370 0460077448 1926064567 8922981897 4082261803 4011785800 5627196972 9310029215 4468231192 0103723599 7832838304 3299912110 7596300069 2058150199 6116392556 0357647926 6758467709 1638014233 1747047869 6199786222 0345157386 0643640243 0157676797 2569445087 4494729042 0550990527 1762020051 8432277431 3225877810 2493330748 5541314819 8909319402 2244522982 8273870297 1240970761 3626663156 2570875125 1093985093 8495567064 9887002671 2984185514 6803181661
13 5931647316 8351778154 3160818662 7745161881 2159588917 3662718287 5132172405 2267288635 1860399458 2130947340 0596194999 9889458689
11 4029510905 7513686816 4355834480 1374585883 9599765482 2494169179 6147560490 8014149898 1930660520 3072545143
145609 2051419116 1447955461 9231297689 4774094917 1604313968 4341770571 7229923496 6052987171
296116073 4115489095 4773757235 9754859655 4816522041 1920679536 2219450049
54 5187170132 8683974051 8573395868 0287038791 8405621333 5893420201
6072393045 6669169329 7988435714 2442476445 9510423793 6940172641
1326250952 5432152624 8279425429 9359654787 8282396439
1510 9176141382 5805864590 1138808183
96840 7764634895 3388722551
18351 8113093170 3248130581
1922 4075588372 1883743529
2 9291926756 4595286421
1 0029107819 4950761543
3512866590 0146490751
367850808 4446880781
132736728 7646870137
66506364 2299344349
11216760 1372957201
4523150 2429527049
2853743 0326472141
407127 3591832297
213377 6143017811
153826 3526048101
119531 2124505871
70616 7407877913
21245 6027624221
2649 3669494261
1674 9077457493
1644 1709408627
254 9763591031
36 0248602897
35 3269139581
6 0689016211
1 3770797743
9155635261
6118254101

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

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