Primality Certificate for (1046^4177-1)/1045 |
| Andy Steward | 12,610 digits | 18 September 2005 |
| Originally by David Broadhurst & Bouk de Water 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 34.512135% factorization of N-1:
| From | Factorisation |
| 1046 | 2 · 523
|
| Φ2 | 3 · 349
|
| Φ3 | 37 · 29599
|
| Φ4 | 193 · 5669
|
| Φ6 | 3 · 7 · 52051
|
| Φ8 | 17 · 17 · 3049 · 1358537
|
| Φ9 | 541 · 25223221 · 95982553
|
| Φ12 | 13 · 73 · 1261421209
|
| Φ16 | 132241 · 262321 · 41309914138817
|
| Φ18 | 3 · 991 · 2287 · 22051 · 8735761
|
| Φ24 | 1993 · 719028620487888042217
|
| Φ29 | c85
|
| Φ36 | 2341 · 8899605577 · 82339465061757822568453
|
| Φ48 | 769 · 1215121 · 8629297 · 19475809 · 13076459191213695372679393
|
| Φ58 | 59 · 969380449 · 766950266067521 · p59
|
| Φ72 | 1009 · 31177 · 267193 · 2894041 · 3884473 · 6275501234982030169 · 4962775817786883990435628777
|
| Φ87 | 8601645457 · 292862624221 · p148
|
| Φ116 | 15134869 · c162
|
| Φ144 | 433 · 577 · 3119113729 · p131
|
| Φ174 | 522871 · c164
|
| Φ232 | 233 · 42689 · 103713466778561 · p318
|
| Φ261 | 78823 · 8157817 · 310981452795019 · c481
|
| Φ348 | 1181461 · 22052761 · 5666769013 · 410509472371237 · c301
|
| Φ464 | 11105377 · 15931441 · 5597232331859126641 · p644
|
| Φ522 | p508
|
| Φ696 | c677
|
| Φ1044 | 2089 · 4623611037907889017 · c993
|
| Φ1392 | c1353
|
| Φ2088 | p2030
|
| Φ4176 | 4177 · 6611079889 · c4045
|
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
:
| 1334418348 6204104877 1796545775 7384717030 0527359495 8249158184 5502603757 4511280657 7270974970 2896057321 2405210253 4978348988 4458382149 0123464503 7589040066 8140407760 7875342636 9647578169 1420104622 3446501192 4460859762 9375124452 5056670297 5725652111 5643797882 9993158328 2681708567 2588214301 6230550937 9639739987 5640687864 3956340696 9806447794 6548262841 0141190415 9799684537 0536195143 9377665368 5132732817 3382431036 3605865224 9961909894 0797055668 8139683646 9195967535 2051241898 6836161453 6933783665 3048556785 4174810532 5056095088 3587717137 4744082054 7395567738 5509214784 8091658805 1636503040 2528256066 7469688687 6550261108 8614107286 6483266844 6003170614 8631657250 9468317532 9621532008 3822355979 4065846042 1505764003 3384594604 3156391609 1708080188 5466295920 3926112794 5597223132 4398753183 3332658950 2572469428 8519783897 2551045858 2378292530 5979922364 7296292826 4590437123 3543437938 6041837368 4889402079 0592303143 7605380117 4590458622 1995680314 5770901449 4919896124 9278162267 1969966545 1069073294 5627845945 1970702785 0897597309 3306569530 8059729127 2280111084 0419554908 7451657530 0684878526 7626109757 2004356745 5978268282 8036588490 5306841266 6226926188 9142454769 6050375120 5585037279 9593306825 1831049557 5868382572 0969526680 2808866466 4758663283 1462993751 4415712457 2309434431 6238543973 3460864528 8369461375 9286296834 6161736489 5400452486 5557956015 7145897789 0589344386 8274990102 5766828015 0385163801 3058006076 8892129214 2299824556 3336365755 3504236198 0212761837 4244564820 0964649612 8728272634 1142660576 9808072303 8783403363 9160064486 9623546859 3096078102 9644803355 3122668522 1378242999 7136641737 7023006629 4095947178 7333177491 5703433562 6577183181 7904128325 5726859709 7796691007 8400992875 3783277509 9618120700 0172920467 4241849574 7560905702 9296023171 3961586436 2325730161 7763468172 4454800306 8272945631 5094295442 2759543382 3198626251 6343734465 9047591279 5236744021 3423792337 3588699311 2823846771 4063775204 5515001357 6779189826 3694412432 7618949684 4600724904 8884071877 2220079826 3165834721 5504955975 3526628872 5822847944 9388344609 6697194837 5729638867 4041689929 9537096714 5593855357 7183099910 0372357121 |
| 2395 1660929496 2125799846 3546897069 0225362854 2288895323 2887085863 5626417820 7376235577 3104912820 1297824618 9468243083 1915832830 6363019467 6683466633 8352681282 9042148603 8086619345 5597249181 2633550221 7343080516 6939170776 8599031549 5251726925 1209437474 0275515292 4767795585 1129703076 4729026699 9416905396 2568837758 3059875171 3938665161 0733231368 2514435836 9308863224 3630126878 1980381046 3226725713 0771108336 9383986608 3641001659 4101422884 0232680860 0849855900 0160985310 1073983771 2541252848 2421560086 6020156264 3054261205 2913516929 3273152676 6593700801 3356409651 4012909031 9581527648 0957021521 0375801074 6509564012 0564564551 2601821506 3502109954 4328611542 1886113793 |
| 19112742 1876681188 0943551041 1126193698 0288182826 2194698421 2147464480 0165336649 7931530878 8733652325 8958031032 5575610569 4376709730 1200387472 9102321319 6945624699 4477830440 1865038156 9994590839 8398184283 2584589434 9496366338 8272067050 6232245687 9382601127 8618598059 9679202129 1816039322 4540370019 4240029258 7849511775 3436566611 3879350841 4851113801 3289680597 3809549024 8777071910 2599952053 4196760142 0562899714 0863503456 9519900017 1313502103 9533221659 6880305003 3350026661 9369701600 8442367138 4468431865 5148497384 7785206681 |
| 14929374 5411871947 5940546095 8790718675 7640945199 2042433573 2676028022 2028102689 4167227933 0016755937 1253272637 7193616336 9673747908 1477668520 8877987011 4615421020 5064279156 5122281273 1460776570 5897717476 0040101626 4993631759 7348840202 3426835050 9195668769 0474466835 4815162550 0929365090 7329439993 1348288697 5616686431 8262247753 |
| 49216809 0100295766 5353281974 5378395610 0797303706 6320005996 5608757269 0445157234 2724706853 8197568096 7929049808 1522000548 0145658456 5459658847 1218423263 |
| 1 1112862420 2542194652 5997664945 6316011389 6712708853 0488627388 6172065418 7987278795 8247650702 0354772161 1942099186 4350294413 0111699729 |
| 802340471 3215672981 5051452193 2975276250 2434538923 0612946021 |
| 49627758 1778688399 0435628777 |
| 130764 5919121369 5372679393 |
| 823 3946506175 7822568453 |
| 7 1902862048 7888042217 |
| 627550123 4982030169 |
| 559723233 1859126641 |
| 462361103 7907889017 |
| 76695 0266067521 |
| 41050 9472371237 |
| 31098 1452795019 |
| 10371 3466778561 |
| 4130 9914138817 |
| 29 2862624221 |
| 8899605577 |
| 8601645457 |
| 6611079889 |
| 5666769013 |
| 3119113729 |
| 1261421209 |
| 969380449 |
| 95982553 |
| 25223221 |
| 22052761 |
| 19475809 |
| 15931441 |
| 15134869 |
| 11105377 |
| 8735761 |
| 8629297 |
| 8157817 |
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.377515%
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.
- c1= 523077669 3546593143 8935128900 4257686994 1093037704 1652207053 7219584672 9685079592 9051651860 8470886525 6346701687 4194376984 9702649109 9628452085 1487678408 2413726727 7334742307 4914474905 4814235237 5496978571 2931787654 0560292713 9559582638 6983179343 4698510166 6717508073 0631900658 0213601398 0615000644 5067295995 0811056837 6701748301 1407497624 6037938114 0064284338 0474464650 3155513552 3411032732 4967258438 3432633753 6949502453 4852872328 5497588820 0535599142 8802350525 0187830436 0565970489 4022013760 7833702140 2441710851 6595886279 2344616746 3327376786 8373844041 2502168689 7152391503 7486401296 9758483290 4786729703 2162774407 3809009447 3528245584 1081195912 3684212900 1283839157 9493638931 1473483273 5806900618 3144075394 7379890547 3539680768 7196077038 1840722762 3406376212 6357691727 7958959675 1741303665 2949324615 5360954350 8470257575 3238604128 8823376060 7210629575 6619323914 1697624824 5874453090 3372266043 7812116324 4789953952 5970393110 6509457094 4505128707 2588422954 9030512962 0852865706 5245872780 8780092629 4284803149 0291056875 6940778579 9339292519 7439339843 0314175629 4256618824 2843900226 8313442341 9331537385 3697011329 4475876480 0568865705 3756823620 5101893134 5885756996 2940773085 6081515289 9222289597 4009027183 9912099041 2744990534 5230397540 4074049163 1333736322 4747106133 6379208632 8064419989 0935329354 1485648723 7749823624 8203615099 0244550050 6326388571 7224700807 4756404657 2565832713 8867322783 0567089665 8468424387 8909195580 6618759238 0359302584 4073489877 0181759535 3125870993 1157836484 0143636960 3798486035 7630428080 1456132140 8350522017 2779530680 0081160354 6723029052 2247844669 1836954731 0974305237 7830464112 4178350986 4133758511 1594307928 5944570593 7453829413 2849900282 7683706928 6010454178 0674222044 3613536608 5356919259 9221290913 5474541114 4378884433 1019390843 7914971657 1728519294 2321903473 4613587632 1534498872 1186346027 8373533292 4548333328 6584033623 1219359862 8223525239 2655538812 2763925250 7634944890 1148826331 4367274838 6657234191 5585853684 3698810084 9147733397 0461412387 7971225853 5511014176 2446205724 8687618076 3299873111 7543907475 9814543194 4967983339 2960054632 9672356727 4741663551 9475595675 0158691466 6558812462 9700877536 9887738981 5930833396 9432250172 7593279481 8949321308 9329249700 9780718021 8938769112 0822921868 3652987199 0246471247 6143142836 8656981698 5713318716 0830650624 4012294423 5384657354 4996887215 9281557890 9859139302 4048800206 1457960002 6632980151 2817114997 1243436514 7760477289 1531564010 1216544933 0990087422 6580850737 6350573745 3046412703 2034033613 3006105418 3214293526 0311341126 1558791083 9681637765 7481639174 5741331424 3175453539 6669925589 2096763188 1034068588 8080636246 2204643530 4898217617 2160510100 5503297160 4519726890 6601945875 9033752571 3536979531 5743908095 7948129293 3785578921 1672133042 1117687622 7519948744 2011073588 3942974371 3734818460 9277774939 6633581006 3162660972 0877296180 3431684366 3106022203 1977953826 8139659066 2211128764 6927995004 8426440117 3786004032 3892659103 8846052159 4802659472 4935363109 1189954831 5841185886 1058007191 8241366614 1514633225 4377426801 7914244984 1292325615 7381770263 9165265060 6892775691 2052131243 9513179425 7205993471 0897828769 4528078262 0700130118 9017739644 0374562551 1336175284 2069089061 4146753189 2689175605 9209374640 9449004369 8076316437 8067607430 1589125460 3393470077 8398150747 5354335172 5548085089 5990394595 6353815371 4061467500 7270182496 3155894510 5840321617 2691204486 6612419666 2564387052 3012095844 5866830599 3308428068 1337681872 1684795681 9157859686 2917266355 0130104579 7902857276 3132408783 3421611258 4351164312 3416761174 5301613988 3710371370 5466597243 2400242700 3713239490 5352198090 1180768408 1134765592 7524438299 6842931000 5732302702 7337877950 6653676167 0662977516 1199852671 9131116759 1029179578 3391547372 8465726745 8257872580 6564933419 4929655975 9837428741 1555266544 8884466575 5242129308 8928427709 9338738476 9206109591 9310002297 2649968765 0462958927 5912642640 1725241335 3167477034 1664695034 7326021595 1637394371 3967057509 2474418294 4243157676 8050825321 3201130850 8423016458 9203032616 1462039278 5937018329 5421806247 9984881976 1920259063 9872096438 8498037783 0681920692 9321330934 6923296979 8553160409 3992432167 8296400164 0977678749 1523321899 1323529860 4894874793 6345506679 7264971678 0704289959 3383724081 7914833455 6941133266 0819418605 6446992905 0625212515 8825006018 8366660314 4140746000 6004514830 7774706204 2504771881 1732178114 1516184171 9405024803 7631694900 1350816711
- c2= 111 1783042685 7312695796 5545708384 8666533863 2516675577 2688999609 9513375143 1624722280 5361396516 7254108891 6333345659 5653639947 7497435061 8141774247 2073797225 8284407312 3967282439 7397761098 9231807290 2478837837 1503991685 4802219671 5566497122 1202443269 3688648290 5878653600 0024699915 9632490843 1833789992 2701577266 1547759754 8602274144 0836375541 2037330976 8979404637 3353665007 4502058882 3450392336 7213830763 5874528918 9711443459 5316405479 9061520798 7280027245 7365607298 1159896987 5783979718 0435079867 3340261884 4930140408 9339882438 1218803131 7956698023 3598269955 6053518145 3374483437 3805920703 1679821841 5404331407 1912037067 5448376334 8930249571 2902815511 0053478638 6073528895 7784232382 2537746368 5517544973 5124413015 6603902370 2560984754 7477359460 2829558823 4740988745 2583649333 6044626666 8170408621 4495687272 9952038219 6406560311 4114122233 7332211175 5742958779 7140986661 5029726276 9161811119 0083351040 4662641357 8848702799 7665296332 9316299786 9422366240 4989660275 7484020222 1170066389 8807974147 9316830875 1965355596 3432326861 5585650245 0907266030 2342234685 2347811030 4993674015 5779857568 3178363934 0533609241 2793051070 8292897606 5515765827 4690067186 5618021402 8748613760 9691130660 1686538179 0510511770 5845132491 3786055555 7069169489 6243557319 4380945233 6768260606 3379035257 8508277631 2915405693 9760351569 3338622071 7827370936 0577204766 5948808498 0091287045 4197734901 3284293999 6961027399 1329775833 9035788396 2697052502 3190975433 8847787587 6596341637 0217976995 8050838215 6054508027 2833252741 7399442951 3175099325 0222797664 4076416853 2783800774 6640476462 9827045422 0692583993 7237721725 4477209660 6382617283 4060516344 2255788119 5393317398 9074918938 9367604480 4421446453 9158378034 2993756801 1762043978 0283250301 7727370660 5885214572 7069973010 0350283421 1483816208 4054251796 4871019019 7011812518 8873411946 8778778102 0762972516 5073934508 8713561636 8016129284 4414282985 8984378381 1330653119 3003038716 9272964463 6668003280 4326723517 1962180513 5011588797 2863143532 7143798646 2513640803 8240036629 0866748051 5474738131 6267193523 6560101411 7438015411 4294230992 4048637712 5797644987 0882822270 7172000102 5602619252 1174378681 5624555785 7851621249 5306747084 8019505943 3306401169 9010058030 6884162066 3386861623 1242888892 7595560106 5889688276 4889397320 7402159158 3600900276 7964564328 3217609750 5765288611 8034825969 5433127710 2490437410 9123883272 5681587597 2234538362 2854759459 4457527244 6153823386 6640943875 6342217260 9114392513 3264352478 2097211788 4803960162 4480415973 3521759903 9276090923 1988557241 9730837246 0054956589 6830698845 0676093225 0902669598 1926348658 2811981063 5021564382 4162038455 3561548580 3179410430 0301138305 7587321955 4439971877 7756236434 5749877415 8919460906 5587192556 8786799142 5494814880 0716577918 9954265108 5027294676 0975016536 7268325810 2357816968 3669745002 7566655916 1425107628 6151342080 7745658865 0351972912 4934869803 2810445953 5036554092 3126164376 3554863414 8384729140 1258139032 3877991640 2757400937 8033773964 6533596167 6956520389 3663132119 5851784946 9708135855 7818026766 5358323269 5883110414 7129742977 8399627411 0191452695 7070384130 4276899063 2865120158 9687104496 5029607092 8594590616 8435771047 6475800702 1905835825 4347734775 5412310458 4803863525 4163944939 0603572815 9811183034 2347100441 7882196076 2206152925 1075174274 5314416680 1351092032 3511791813 3819188715 0205077684 5632455692 9808972975 2751673023 0279874917 3880142388 7633150403 8871634279 8431968416 0687776412 6572241410 4741012070 0015854945 3170240313 0637257312 3718476092 8373971564 0696467458 3166431345 3820868591 9311075770 0000501052 9033084374 3047173712 9589017723 1023518817 7039198214 0101067010 5407056124 8295907458 0896107185 5258098793 6445498562 6648226013 8949695263 6059679906 6640896518 5398780296 1553773247 8705590172 4628228258 4686435720 4729625569 0118543164 4647499992 9169969427 8910934258 5807737348 6777111880 2197474355 1813231145 1627693638 5733103846 1547589677 8688714903 9858465585 8411689485 2495238845 8437913120 3318083533 3829228393 2779186771 1596536244 9741760892 9671338907 9179230332 9256131535 9526526399 2438092992 5758892075 7882258480 0167047880 1717142975 2570156916 5150264738 2287997851 4888955289 3441000656 3546621077 0680584095 7158485041 5701048382 7434006908 6892698821 6841560815 8870372324 5479377188 8695892893 9477152114 8520900175 5652497454 0360138047 5368884052 1053262626 6428641966 6230041283 6589422480 2858600817 6580843826 6871879866 4707017546 4224890653 1023590731
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.