Primality Certificate for (2963^3821-1)/2962 |
| Andy Steward | 13,263 digits | 06 May 2008 |
| Originally by Tom Wu 2005 |
This certificate uses a theorem of
Coppersmith and Howgrave-Graham
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 26.670920% factorization of N-1:
| From | Factorisation |
| 2963 | 2963
|
| Φ2 | 2 · 2 · 3 · 13 · 19
|
| Φ4 | 2 · 5 · 877937
|
| Φ5 | 11 · 281 · 1571 · 2131 · 7451
|
| Φ10 | 1061 · 72621409561
|
| Φ20 | 5 · 6136901 · 193612788851406863161
|
| Φ191 | 2293 · 4516387 · 172797319 · 119521520205062967009183017131 · p613
|
| Φ382 | 383 · 120331 · 2385209 · 69204649 · c638
|
| Φ764 | 107091547813 · 2542666085081 · 1116727839570819035825540099417 · c1266
|
| Φ955 | 3821 · 331996201 · 164295302531 · 30669353495491 · 62820518941231 · 195669265541951 · 111227212252446296592331 · c2551
|
| Φ1910 | p2639
|
| Φ3820 | 1642601 · c5271
|
We need the product F of all the prime factors from this partial factorization:
| 328247685 6042860196 1869564801 9928610644 1324820840 8858360265 5073673229 1800224899 2312302165 1082974599 0066466174 1101746865 1697834490 0695062020 5357584110 6982763570 1382821983 6632829897 8915282605 5720626438 9508464441 4537503469 1376822466 5372575452 5002269241 3093573193 1605920236 2364272236 1885684842 0647120765 0659115718 2821161606 4593379660 4770902669 5441735474 5853961219 3655377971 3371950868 4977607186 7138292785 9155251503 8224331856 5268159324 2148345959 9262254339 4941722107 5864205827 9134921602 1692117127 3650407939 1132454357 4887190258 2307971404 0035174763 9284430505 6761189163 3871446524 9241199731 5483534880 5498475850 5458881994 7176505813 8810511563 2165490862 6248273925 2753437084 4413413985 5422066987 7967513813 9486454390 0315114232 8095982723 6282748880 4513491606 6050005846 2199545512 9128029712 4741482742 6142737374 9450245014 1778465154 0128791168 4703743298 9864079248 2621196000 2644786233 8245290838 1909301020 9590326693 8309817930 6046859167 1982534034 1916402748 7477500294 2195275883 6654972503 6150091544 2367456295 7846914340 9127413141 3128347329 6153853638 1291252261 6532732492 8836621108 7688249452 3155295283 4471824736 9781962180 0292788760 3730543829 6208554950 9644885175 8917451606 8099690063 0483811144 1500470823 8781706609 7131121630 6707326421 4112697417 7353239250 6278076889 7367112498 5945765160 5865480461 1035077675 8556092568 7431778496 8650263468 5834463593 3667177249 5139884480 0486859774 7497761941 5986866314 2744375037 7094170468 6922652515 3858319280 3122174936 3917309993 0868432612 4362513495 2209363462 6372493150 3478925870 1098706564 4531348666 9424644677 5513032416 4260402650 9878954607 1357337600 2508445682 9222598436 4538079288 5362792289 4917870062 6683339782 4072212148 0207434215 0195947043 7716244452 3251623112 7052138571 5648362834 2995590565 1629620530 2857875695 7391583007 9959731483 2348588670 9533068685 3882635162 1534914839 1033044636 6850634249 6242891211 1552559818 8255517291 6729698761 0965929312 3786065159 0890859554 6836092696 9477461368 5553511523 7781074648 2407162814 0938367768 6898516127 5935726058 1687544291 1182600873 7635743433 5033605688 7999038684 1627521350 2183821333 7966419386 2343405058 5127853234 8311243849 0740990822 0902118970 2260314210 9491505997 1284026656 3949696702 9242309306 5246132274 9372849729 7023882263 2882411960 4637229534 7378546968 7016317270 3598126053 6454613721 4253733670 4353917362 2101089424 1739282479 4108974229 1416258661 5434928785 2058977178 5937010417 1875057503 5609693340 1799426224 9307507329 6826590822 8006198718 4866057311 6493454522 2531809738 9310293839 1537172028 3244288912 4844928767 7505817618 1825402424 7565385597 0058206995 8552645729 2051437452 2715168528 5376299588 9715852288 0494165076 6986395874 1227975866 8497139120 9422617919 2590267576 0014130278 0552838583 7147249894 8708655246 1726298517 8328802610 6137614321 |
| 199 0591140318 8072611436 1634783304 6614731637 1829849553 5360466023 4793464046 1711332610 4634126207 5710636225 6878256380 7767332583 2700529838 8638168038 2932021777 5417721090 8885386003 6268918891 9620622078 2764490979 7465459365 5071450643 0541130234 0627924500 3389815119 4747456579 0551648805 5162058196 6859397427 8627904834 8437349389 7059378359 0636808142 9585818103 4578619317 9082836266 3205060962 2669085442 3174449467 1932500345 4046061810 4265207089 4982067612 6114790108 6775658904 1849068633 5166307591 1501399352 1458086946 3734888998 1209879269 2511455507 1239062460 6757269425 2082315407 6653227333 2098783356 0225576402 2219384419 2560292487 0247849447 |
| 1 1167278395 7081903582 5540099417 |
| 1195215202 0506296700 9183017131 |
| 1112 2721225244 6296592331 |
| 1 9361278885 1406863161 |
| 19566 9265541951 |
| 6282 0518941231 |
| 3066 9353495491 |
| 254 2666085081 |
| 16 4295302531 |
| 10 7091547813 |
| 7 2621409561 |
| 331996201 |
| 172797319 |
| 69204649 |
| 6136901 |
| 4516387 |
| 2385209 |
| 1642601 |
| 877937 |
| 120331 |
| 7451 |
| 3821 |
| 2963 |
| 2293 |
| 2131 |
| 1571 |
| 1061 |
| 383 |
| 281 |
| 19 |
| 13 |
| 11 |
| 52 |
| 3 |
| 23 |
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) = 26.670920%
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 = 6601 suffices.
Given such a witness, Pocklington's Theorem shows that every prime factor of N ≡ 1 (mod F).
As F4>N, N can have no more than three 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.
- c1= 4564513 9018726090 2206340198 5368569215 8132343106 2138404866 1993766132 3513241554 2550061408 3344841595 9193742555 5571570316 2008060806 9193788710 9130618316 1055461778 1410237318 1938728910 6260664192 6354388176 4345614836 8890945950 7082160420 4379220711 9122601423 8014746039 1104535264 3585520912 4165538662 0927645587 5216974727 3458671331 6880094725 1219477219 7512958951 2911409899 1562751456 8994376421 2507398795 0701306717 6179992607 0821777949 2687969646 6017407796 4285615726 1400224327 0568083746 4427124479 6007744733 5435886893 7627834264 2827755443 8584110385 0372727644 2304414035 7726562680 1599523916 1581660043 8491995887 0243029444 5645569543 6355174538 8498004809 3528525922 2256259809 5357199337 9008833642 7273746979 8070727795 2888137171 8859484504 5520241140 3084413900 0383473075 0466712137 3295854019 2732947576 6337881076 5070612392 6163522294 5075314933 4732958350 7566671332 5672356087 4236192580 7851162423 4224087730 1550335263 0408385799 1357849022 6941686347 4489211544 3744802538 8514404902 2443917630 7744421490 9779458973 3439969963 5101270424 7825270407 8345594997 5870467865 0537755654 7082434301 0942802862 7287741970 1973785730 2236827759 6518555989 0429410138 4910893700 9167679040 3781197125 2478787810 3379877997 4551889861 9631818849 8675244884 8552299017 6966438374 4119150109 3700189190 4368906578 4808294290 8855477283 6206106368 9302443625 6322323041 6125409910 8785847599 3389628422 3413768032 4135384560 1384501205 8277836569 2151991224 2668289143 7459421864 2799128585 9998373238 4970197958 3882736633 7836143910 3876546040 4909514607 4627376693 1029690354 9829516955 1960753267 4735996628 3764493323 8035040267 8806942399 5243486204 9286126069 6056552550 3295537152 7699871321 7280760434 8338921866 8549557747 2188274641 6197158208 1205321503 8764052769 5965157736 6551209854 4013791574 2486647044 6195243958 1832419237 3174239415 2047436891 0244932620 7385880461 2887606522 4853509515 5170836884 2301573273 8193365544 8736141376 7089315097 0289142737 1850997945 9544212290 0353434583 3631543229 5027785300 6429081300 4176363141 3042624946 9504419811 7683987117 2380289073 9538321315 0561117877 6462037268 9197577062 5252461904 7444345098 3370567356 1142026101 1604434588 2847622225 2125688608 9160202777 2472557828 1423086700 0416323418 2304423526 8886837835 6009550020 7425853736 3460533294 9982579349 4306382556 7373044311 1573130497 9452880418 4122966595 8675972694 7020622458 5024292257 2689197764 9168564645 0127290602 6812861530 9662724678 9727934049 0911894141 3235910668 1434869789 2520658077 9149583615 4287479475 0965651151 5504502498 9972717836 7819928916 8165004313 9202972440 4040910196 6042297475 2435123915 9182612773 2587098506 0076872462 2271298657 3270350102 2924976348 2104058530 6979500578 8806918254 9648323489 1348801573 2484573445 4341463842 3080890932 5322667920 7505563299 2988952954 2420581112 3874114088 3269283954 5073210847 3512143974 8568730398 2966865466 0913091002 0193401194 4351582253 6597227536 3839445875 0702796375 6132779377 9100759767 7676248314 1364682717 3667985685 2227818715 7205937182 9150942757 1230615682 9019927331 3452600685 4384484259 6612770304 1569274598 8374073718 5099167267 5089156413 5284506760 7892774507 2811376986 3167777675 9798084651 4290417167 6276679029 6075797581 3553592788 4150889584 1670359857 2053028067 4342489278 9094609848 6696002318 5347438874 6828314476 9709029510 5088766369 3225864028 7215859209 2659840798 4332989122 1255469801 5947386801 1260584952 1518691158 2873172114 4421540365 5698564414 9867186754 8414627334 2563326339 6579113655 2150420646 8875423915 4607639252 3397134065 3755091807 6167592433 9016161422 5376645195 3386148140 3605458006 1519339502 7379339183 4281346501 5380326398 8530653770 5817759051 6770427293 1744971769 5481311213 1760038610 9350602680 5983149898 8351362493 1418165489 1932448448 2592741159 0078711537 8940170840 5701166949
- c2= 64907930 0577672175 3398215700 7904287942 0704033224 7146684593 4718066996 2659417544 3151547388 4268265919 6707811723 4929499534 6432152420 8667516715 3341079206 6027972615 5506568768 0194694749 3011000805 4674501135 4979232445 2621684577 1022923431 4176761687 5954402532 4050736661 8024500979 1431545653 3424717431 2384163696 9992463189 7379305860 3337157239 1441481113 3653422258 9024967634 8474735498 5866225491 7717624337 6836779110 9599567028 7166345204 5813147049 3145790079 2666076928 8588276658 7971381654 4368969337 3990782336 9212038323 1503562808 4970665310 4991535092 9561493754 5383196334 4089240692 7961060326 9123932481 3414953811 1467697502 4789478181 7145787897 8975660329 5719036124 2473949310 9161055193 8595904247 1725520093 6927543941 3048685135 5542529218 6450379740 8401917131 7144811045 0658688708 3159931826 6964588521 1513258618 4211479254 8588729648 5102540819 6206700149 8002245530 3727898419 0752841173 6284989745 9867173282 0217901573 4977369917 9523121638 2287582229 5203029948 4921396378 0607501185 6239104941 1194064209 0024814714 8092022539 8066760909 3618020826 4202267883 9930264877 2223424024 3668660117 4057251582 1885408911 4855179567 7589163581 4821296625 6291510550 6439110254 4614834584 2395264271 4633716357 6698228610 3624578154 8917710012 7435958620 0704905211 4195135098 6809032592 2235839686 7838579225 3905285526 5326392181 1908574114 0532733431 8059340834 1750837496 1635587179 1780635721 5458083120 5804124658 8178460473 1011260346 6959935859 8473762395 3017127620 9119911016 4831574595 0861169542 3111219280 7713580997 5515094191 2933181425 7924919963 0781565301 1024615415 7389962751 8349228200 2514957750 8467018147 2097332651 2391476225 4498308014 3841576446 8805212017 6544649609 1308546090 8483630818 4743265953 1951805304 7760178192 6299370721 6583057040 6186886324 3367412195 6912407017 6312139306 3260138206 7053768107 6140664708 1096612332 6285392137 9344175672 9646533636 5688963633 0134851623 1306847473 9888738193 3123425729 5979665986 2277850985 7496843541 6518891649 6441191669 4565184785 6403854936 2099513155 5791011437 2317986966 1438748032 3060812668 3436286144 1440977608 4336505657 2189049864 0857644681 7061388637 0773687256 4129843516 4261898683 0830318840 3834151344 1091409794 5172440079 5590915318 8715896197 5045390255 8022307995 6069074175 7291714861 0096871679 7091047205 4496962079 8722058995 6907434195 0998230990 7255456554 0207740556 0708583252 1301708143 2600898744 0510697524 3979607331 5168981498 7245012853 6738032187 3182176788 0829903552 9151637475 6728040950 3311208243 5119836202 4672094738 4962285668 2213528306 9316632305 0727173294 4119336206 6757923707 6783516857 2513585085 5687112254 5998865294 3824279352 6822253796 6229256472 2247575090 6950596384 3101527605 1013573453 9697169368 9733496416 4694506002 7983170077 5847661463 0638068561 9859098374 8403029275 4260292909 7123333778 2550646650 0111178837 1606925674 2477593942 0670507166 0316222598 3993175273 7912061517 5017151734 6126741181 0532302913 0481510677 9594391326 4351178231 0585259155 0237675695 7874573596 2816678335 5185935736 2557175542 7695763446 5595887513 9799729232 4371466092 5006365619 3732468149 0882094982 1689730362 9646438509 0895759659 5329159582 2156571584 8318907732 9868226813 9886375445 6539583128 2588797264 7630244188 5565247871 6984884586 5455308445 4937229832 2017165447 9948922867 6030043207 5752819031 2044337536 4603683834 8617581136 9929989805 7973517490 2069686327 6187410520 7984284528 8484588896 2988080591 0609399968 3807425407 2195951727 0947232819 3475102827 9935740329 9881198901 0394344734 3453139132 2418801547 0446172830 0275248522 9297412027 1405654706 9858392877 1205634187 2627012814 6149300169 4682465933 9740198178 7814698341 4947826835 7266476980 9560241791 7623079385 3709041129 6350589666 6962450614 9762765038 1802227567 0782190454 4237497905 8021421423 9265764711 1875060460 6059103925 2668701901 5093942133 5546547783 8200131108 1433257045 8861713262 2460515588 1387981413 8697086213 5894350403 2310103524 3358010919 9959252306 6183742704 3696295575 5050477075 5923191815 5361404326 0343559640 4868710041 8302762674 7700298262 2634829018 1869017606 2844271419 1473520999 3354451284 8369351122 7506692950 1302896752 1874844535 2752562288 8629915675 9867365315 9008001417 3327487518 5461528345 6445785061 9108945254 7934153011 1778668958 5348343288 4225757669 8082982245 7029495890 4507643741 4531664651 2892427039 8340102130 2634306658 2355301601 9015630620 8677473961 0686574526 7555511804 8717233740 2421129806 9664055482 6826650179 5078777673 9546777129 7287027437 7999248771 5052053762 9464485332 6081695739 7903703345 0710030075 1284856149 7351670281 7641680716 5837310766 4527299445 0828237730 4647299413 0250004705 1106712762 8846390366 8578727003 1205223808 9683884583 4715798417 0691287446 6266541371 2288462433 7435793115 5598864728 9721025205 6295972692 1107727293 9046036951 5298412572 2370218446 2561142890 7922277622 9244693948 4856623846 2082781524 1505757240 0033954256 4078850305 2534939044 3744819751 1577756560 0922115555 9384698523 7064766917 8786572354 5122991254 4222397159 4581364280 6562543340 7543941511 1568230816 4970767795 1940226848 6040062101 7226368574 5931159030 4084818137 2979458623 6027559737 9947000329 2688295860 6360181201 4355617478 5985980653 1993332097 2813950683 2601191920 8041548677 5346613977 5160896867 0365143926 1644399438 5132210217 0661565539 8137979604 7969182051 9777566128 3123860127 4666549393 9600308982 5534534317 5377713368 1059506548 8922844727 0263648647 8812058038 4862117482 7115322654 2734395660 7550837856 4190754589 2201655694 1376496596 4469255348 3869332924 0082379591 5660935107 1609273035 1412857221 6183573552 4357103630 1983129365 9064803579 2800164204 6858803975 5691330969 8427975303 7951640202 6981113559 9411212476 6152499412 5092078166 5768368930 8762844282 9730247256 5454901458 3958727139 1305584991 6215761774 3973309448 6528079017 6083827650 4910755458 5847783451 1398140051 8763151174 8630351370 9135403471 9066452592 9701645885 8868910166 6469589977 8954638919 7516899968 0488461893 5867349956 9338288825 0190024413 8406924875 7914550819 5217415069 6740708209 1500651729 4124901759 1198697914 6328347921 6426007483 6823168060 4110503268 7068570141 3974819427 4701732070 8584323612 7057902565 8789740524 1265194739 8942254554 7532918348 6462874590 9136878194 2373536740 6243346167 7306738830 2888959270 6461733799 2720779851 7064755798 0466522114 5682121251 3889444234 7843307924 2790768253 0813371826 7163330901 8020298698 3109379855 9190401825 2293346255 6384116599 1746319521 5452246620 2665601485 1729439501 8060541415 0669527985 9142066275 0210731514 6841992028 8308493273 5390375491 0945780161 8826357010 3164005856 7344410606 3331975343 3759816772 4868443155 3402168677 5942300048 3976979391 1335538185 5837754839
Brillhart, Lehmer and Selfridge
Brillhart, Lehmer and Selfridge's Theorem shows that N has exactly two prime factors if and
only if c12-4·c2
is a perfect square.
Here, c12-4·c2
is ≡ 61 (mod 64)
and therefore cannot be a square and this stage of the proof is passed.
Coppersmith and Howgrave-Graham
We are left with two possibilities for N: either it has exactly three prime factors or it is prime.
The non-existence of exactly three factors is demonstrated by the Theorem of Coppersmith and Howgrave-Graham,
here performed by a Pari/GP script written by John Renze and David Broadhurst. Here is the stdout:
parisize = 64000000, primelimit = 500000
Testing a PRP called "Phi_3821_2963".
LLL[1, 1] with [h, u]=[5, 1] has norm/bound=4.436400008 E-688 and witness=5.
LLL[2, 1] with [h, u]=[5, 1] has norm/bound=0.3729775135 and witness=7.
LLL[3, 1] with [h, u]=[4, 1] has norm/bound=1.057259594 E-99 and witness=3.
LLL[4, 1] with [h, u]=[7, 2] has norm/bound=3.839587174 E-66 and witness=47.
LLL[5, 1] with [h, u]=[7, 2] has norm/bound=0.2931494234 and witness=2.
LLL[6, 1] with [h, u]=[7, 2] has norm/bound=0.2780876639 and witness=7.
LLL[7, 1] with [h, u]=[7, 2] has norm/bound=0.2907265962 and witness=3.
LLL[8, 1] with [h, u]=[7, 2] has norm/bound=0.3190416871 and witness=3.
LLL[9, 1] with [h, u]=[7, 2] has norm/bound=0.2562215346 and witness=5.
LLL[10, 1] with [h, u]=[9, 3] has norm/bound=1.535379507 E-55 and witness=29.
LLL[11, 1] with [h, u]=[9, 3] has norm/bound=4.934553068 E-14 and witness=11.
LLL[12, 1] with [h, u]=[9, 3] has norm/bound=0.2141565823 and witness=37.
LLL[13, 1] with [h, u]=[9, 3] has norm/bound=0.2258375512 and witness=2.
LLL[14, 1] with [h, u]=[9, 3] has norm/bound=0.2160944726 and witness=61.
LLL[15, 1] with [h, u]=[9, 3] has norm/bound=0.1779331924 and witness=5.
LLL[16, 1] with [h, u]=[9, 3] has norm/bound=0.2458638097 and witness=13.
LLL[17, 1] with [h, u]=[11, 4] has norm/bound=3.951949925 E-24 and witness=2.
LLL[18, 1] with [h, u]=[11, 4] has norm/bound=0.1879600406 and witness=11.
LLL[19, 1] with [h, u]=[11, 4] has norm/bound=0.2106108764 and witness=13.
LLL[20, 1] with [h, u]=[11, 4] has norm/bound=0.1761235534 and witness=101.
LLL[21, 1] with [h, u]=[11, 4] has norm/bound=0.1929548615 and witness=83.
LLL[22, 1] with [h, u]=[11, 4] has norm/bound=0.1707713333 and witness=31.
LLL[23, 1] with [h, u]=[11, 4] has norm/bound=0.1928274294 and witness=71.
LLL[24, 1] with [h, u]=[11, 4] has norm/bound=0.1568574031 and witness=17.
LLL[25, 1] with [h, u]=[13, 5] has norm/bound=0.1266733356 and witness=61.
LLL[26, 1] with [h, u]=[13, 5] has norm/bound=0.1193527275 and witness=47.
LLL[27, 1] with [h, u]=[13, 5] has norm/bound=0.1420230977 and witness=79.
LLL[28, 1] with [h, u]=[13, 5] has norm/bound=0.1150697941 and witness=59.
LLL[29, 1] with [h, u]=[13, 5] has norm/bound=0.1266531634 and witness=101.
LLL[30, 1] with [h, u]=[13, 5] has norm/bound=0.1074611888 and witness=47.
LLL[31, 1] with [h, u]=[13, 5] has norm/bound=0.1172410057 and witness=3.
LLL[32, 1] with [h, u]=[13, 5] has norm/bound=0.1195326339 and witness=23.
LLL[33, 1] with [h, u]=[13, 5] has norm/bound=0.1334955721 and witness=7.
LLL[34, 1] with [h, u]=[13, 5] has norm/bound=0.1248777288 and witness=349.
LLL[35, 1] with [h, u]=[13, 5] has norm/bound=0.1276266609 and witness=3.
LLL[36, 1] with [h, u]=[13, 5] has norm/bound=0.1252424612 and witness=3.
LLL[37, 1] with [h, u]=[15, 6] has norm/bound=0.1006357336 and witness=2.
LLL[38, 1] with [h, u]=[15, 6] has norm/bound=0.0946684291 and witness=2.
LLL[39, 1] with [h, u]=[15, 6] has norm/bound=0.1040232139 and witness=107.
LLL[40, 1] with [h, u]=[15, 6] has norm/bound=0.0993742563 and witness=37.
LLL[41, 1] with [h, u]=[15, 6] has norm/bound=0.0970848877 and witness=2.
LLL[42, 1] with [h, u]=[15, 6] has norm/bound=0.1022023459 and witness=43.
LLL[43, 1] with [h, u]=[15, 6] has norm/bound=0.0920833767 and witness=47.
LLL[44, 1] with [h, u]=[16, 7] has norm/bound=0.0777008415 and witness=3.
LLL[45, 1] with [h, u]=[16, 7] has norm/bound=0.0807295906 and witness=31.
LLL[46, 1] with [h, u]=[16, 7] has norm/bound=7.41270031 E-16 and witness=41.
Validated in 33 sec.
Goodbye!
The actual input file containing N and F and the output certificate are included in this file.