safepoint: Remove unused context argument.
[sbcl.git] / tests / gcd.pure.lisp
blobce5a3d25ee670177f7eba90116529990d9639c9f
1 ;;;; tests of GCD with no side effects
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
6 ;;;; While most of SBCL is derived from the CMU CL system, the test
7 ;;;; files (like this one) were written from scratch after the fork
8 ;;;; from CMU CL.
9 ;;;;
10 ;;;; This software is in the public domain and is provided with
11 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
12 ;;;; more information.
14 ;;; note: the below were generated automatically from the following
15 ;;; program:
16 #+nil
17 (progn
18 (defun random-factor (n)
19 (let ((accum 1))
20 (dotimes (i n accum)
21 (setf accum (* accum (nth (random 20)
22 '(2 2 2 3 3
23 5 7 11 13 17
24 19 23 29 31 37
25 41 43 47 53 59)))))))
27 (with-open-file (stream "gcd.impure.lisp"
28 :direction :output :if-exists :supersede)
29 (write `(with-test (:name (gcd :smoke))
30 ,@(loop for i below 40
31 appending (loop for j below (ceiling i 2)
32 for x = (random-factor i)
33 for y = (random-factor j)
34 collect `(assert (= (gcd ,x ,y) ,(gcd x y))))))
35 :stream stream :readably t :escape t :pretty t :case :downcase )))
36 ;;; run from a different lisp implementation. As such, if you get a
37 ;;; failure, check (by hand!) who is right. -- CSR, 2004-08-10
39 (with-test (:name (gcd :smoke))
40 (assert (= (gcd 3 1) 1))
41 (assert (= (gcd 9 1) 1))
42 (assert (= (gcd 1353 1) 1))
43 (assert (= (gcd 2755 13) 1))
44 (assert (= (gcd 3146 1) 1))
45 (assert (= (gcd 56 2) 2))
46 (assert (= (gcd 223706 1) 1))
47 (assert (= (gcd 148665 2) 1))
48 (assert (= (gcd 71862 203) 203))
49 (assert (= (gcd 14464263 1) 1))
50 (assert (= (gcd 21568911 41) 41))
51 (assert (= (gcd 15295874 111) 37))
52 (assert (= (gcd 167524732 1) 1))
53 (assert (= (gcd 20430054 41) 41))
54 (assert (= (gcd 248255254 767) 13))
55 (assert (= (gcd 510104442 5453) 1))
56 (assert (= (gcd 100809345 1) 1))
57 (assert (= (gcd 242162410 41) 1))
58 (assert (= (gcd 660070972 74) 74))
59 (assert (= (gcd 6542405452 117) 1))
60 (assert (= (gcd 4641925173847 1) 1))
61 (assert (= (gcd 629448534 2) 2))
62 (assert (= (gcd 163873565922 155) 31))
63 (assert (= (gcd 1563464979842 442) 34))
64 (assert (= (gcd 3712337724 576173) 23))
65 (assert (= (gcd 4429248 1) 1))
66 (assert (= (gcd 4380921044390 5) 5))
67 (assert (= (gcd 4097970629150 86) 2))
68 (assert (= (gcd 2090198664 1118) 2))
69 (assert (= (gcd 5275411661289 31857) 21))
70 (assert (= (gcd 17015415976168 1) 1))
71 (assert (= (gcd 38602581835881 19) 1))
72 (assert (= (gcd 82578867500655 319) 29))
73 (assert (= (gcd 363169800 20) 20))
74 (assert (= (gcd 2033404107084 23374) 2))
75 (assert (= (gcd 7438317458260 31213) 13))
76 (assert (= (gcd 20223947479736 1) 1))
77 (assert (= (gcd 390609000 11) 1))
78 (assert (= (gcd 406117800 57) 3))
79 (assert (= (gcd 1008217762344 4403) 37))
80 (assert (= (gcd 136581511784536 67022) 62))
81 (assert (= (gcd 43293168048 1344610) 2))
82 (assert (= (gcd 154378910321790 1) 1))
83 (assert (= (gcd 608503422693864 47) 47))
84 (assert (= (gcd 6945109296864 779) 19))
85 (assert (= (gcd 1346702251365156 435) 87))
86 (assert (= (gcd 1388225063690465 644) 7))
87 (assert (= (gcd 1200780158492850 91686) 354))
88 (assert (= (gcd 1551193257090906 2656731) 1749))
89 (assert (= (gcd 2453369841000 1) 1))
90 (assert (= (gcd 386512944051107445 17) 17))
91 (assert (= (gcd 1111364125679340 6) 6))
92 (assert (= (gcd 15858537083857314 21793) 21793))
93 (assert (= (gcd 44179338013272 280645) 41))
94 (assert (= (gcd 64149298745840 43808357) 35131))
95 (assert (= (gcd 4412914630225794 515823) 46893))
96 (assert (= (gcd 7518817068019302045 1) 1))
97 (assert (= (gcd 169216424701305960 17) 1))
98 (assert (= (gcd 178335507754891305 817) 817))
99 (assert (= (gcd 460683358924445799142 518) 518))
100 (assert (= (gcd 113021475230160 74635) 6785))
101 (assert (= (gcd 74228340534140364 363909) 1677))
102 (assert (= (gcd 69242022961311060 48305942) 60458))
103 (assert (= (gcd 286967952870300 2273388) 156))
104 (assert (= (gcd 10593379420837191160 1) 1))
105 (assert (= (gcd 302822258393413362492399 29) 29))
106 (assert (= (gcd 10491072879382200 133) 133))
107 (assert (= (gcd 167206737423420464 609) 7))
108 (assert (= (gcd 72212583812867784 4888799) 47))
109 (assert (= (gcd 4170116471639397292390 1798025) 359605))
110 (assert (= (gcd 83910330283522050 35224) 238))
111 (assert (= (gcd 275373383775647594346 66884092) 104834))
112 (assert (= (gcd 24798951106800092040 1) 1))
113 (assert (= (gcd 14656657495570695990 37) 1))
114 (assert (= (gcd 95470974177676509874110 1219) 1219))
115 (assert (= (gcd 619506317623001424 5957) 7))
116 (assert (= (gcd 11268171656665155960 9858) 186))
117 (assert (= (gcd 6172860073826160 5167394) 3074))
118 (assert (= (gcd 26457493095663264 1491412) 3956))
119 (assert (= (gcd 8481384175941103284 313836405) 51))
120 (assert (= (gcd 60356595775749199080 176098815946) 1716346))
121 (assert (= (gcd 2062895192248935732930 1) 1))
122 (assert (= (gcd 611492274956002440 37) 37))
123 (assert (= (gcd 164614611843685080 1711) 59))
124 (assert (= (gcd 93177516542679418720 62197) 37))
125 (assert (= (gcd 938959746797519770440 127558) 127558))
126 (assert (= (gcd 137670522526899326250 200) 50))
127 (assert (= (gcd 852063402206742880 41643478) 58406))
128 (assert (= (gcd 55947291202307909360 188546228) 6364))
129 (assert (= (gcd 12877971214039423262680 9832253830) 121730))
130 (assert (= (gcd 2217480094627700577948 1) 1))
131 (assert (= (gcd 192158415774146059920 53) 53))
132 (assert (= (gcd 902814024155808960 1829) 31))
133 (assert (= (gcd 1265864304573235487120 4921) 259))
134 (assert (= (gcd 14172662463567665400 95817) 57))
135 (assert (= (gcd 32171996211745702482324 2368555) 259))
136 (assert (= (gcd 971324258606045826300 4576748) 236))
137 (assert (= (gcd 2400649320046378377000 1704690) 930))
138 (assert (= (gcd 953233796456393760 18342152493) 574287))
139 (assert (= (gcd 28906333140964843080 236206740) 823020))
140 (assert (= (gcd 19478907070569571633008 1) 1))
141 (assert (= (gcd 775403093708557121609032 41) 41))
142 (assert (= (gcd 12587009808135760402860 2491) 47))
143 (assert (= (gcd 510685807527370566909720 76) 4))
144 (assert (= (gcd 9842598153710524682146590 10089) 3363))
145 (assert (= (gcd 44936631038618189620242012 30740) 6148))
146 (assert (= (gcd 934589372977008750144 373650) 282))
147 (assert (= (gcd 33027125273398900134069150 840577803) 840577803))
148 (assert (= (gcd 4428219127938822420288 1695783782) 12502))
149 (assert (= (gcd 29316428815807608915440 560764380) 153340))
150 (assert (= (gcd 2366157559867828791011766 1) 1))
151 (assert (= (gcd 1364397376360544429904 19) 19))
152 (assert (= (gcd 4991450791697293128313385277 329) 7))
153 (assert (= (gcd 75448279792981695149550 3009) 3))
154 (assert (= (gcd 181031604499464166188731133 3364) 1))
155 (assert (= (gcd 405831142402606479845286 2746214) 161542))
156 (assert (= (gcd 89170366469003867207160 25337230) 11470))
157 (assert (= (gcd 13523725766340619200 1490114045) 28595))
158 (assert (= (gcd 104705939487154940255412 192200052) 26196))
159 (assert (= (gcd 7232591421499800642000 16584679460) 7820))
160 (assert (= (gcd 14043796716396386984750160 33382708236) 358953852))
161 (assert (= (gcd 11835771070979649489696 1) 1))
162 (assert (= (gcd 13894638105872256412416 23) 23))
163 (assert (= (gcd 147611447155643499428400 118) 2))
164 (assert (= (gcd 13356594697070649024 4558) 106))
165 (assert (= (gcd 15089731174706036171537760 90) 30))
166 (assert (= (gcd 307230141273924828960 1971507) 1581))
167 (assert (= (gcd 2582563944548247741930009096 22873474) 1759498))
168 (assert (= (gcd 1074296602920111687342072 146235518) 21758))
169 (assert (= (gcd 774058642832724262993980 407557010) 2531410))
170 (assert (= (gcd 291091930213008490369569480 13412544348) 26508))
171 (assert (= (gcd 2089068565149831833568 7302038455228) 68171356))
172 (assert (= (gcd 15874791883700662031579460 1) 1))
173 (assert (= (gcd 1064437567441124038217970656 5) 1))
174 (assert (= (gcd 142557826750459447787460 1333) 31))
175 (assert (= (gcd 311779340580033594160200 23693) 23693))
176 (assert (= (gcd 29314187023691666530559664 110143) 110143))
177 (assert (= (gcd 222003853016244177637944900 857463) 857463))
178 (assert (= (gcd 6247776111945111006243552 77976501) 2515371))
179 (assert (= (gcd 1140058514761397155259712 5530338) 502758))
180 (assert (= (gcd 580962736822969724865449808 55686036) 1505028))
181 (assert (= (gcd 4100502596989506786787500 45333475410) 563730))
182 (assert (= (gcd 1497378750311599979536944 262630276090) 361046))
183 (assert (= (gcd 105637634198318524045536 2633013240) 150072))
184 (assert (= (gcd 70489308475051480717893899280 1) 1))
185 (assert (= (gcd 11415822547029425161364106595632 7) 1))
186 (assert (= (gcd 198305933339312916107438448 177) 3))
187 (assert (= (gcd 3127415425979879537134790928 3335) 667))
188 (assert (= (gcd 589703503861221139260034914750 13209) 357))
189 (assert (= (gcd 3108579252052448504121792 14322) 462))
190 (assert (= (gcd 636976201153021006473464400 66264077) 3487583))
191 (assert (= (gcd 9544425315508129998909285900 1488396) 212628))
192 (assert (= (gcd 458100280193857502802977376 260747103934) 6212554))
193 (assert (= (gcd 114208186302155358124900650 22076867505) 6342105))
194 (assert (= (gcd 90107067439719108194114160 28566806069714) 3408519994))
195 (assert (= (gcd 2976572787365723002218245484 110104803958578) 2966904798))
196 (assert (= (gcd 981298276658071427286000 1) 1))
197 (assert (= (gcd 53453375725613238735360 17) 1))
198 (assert (= (gcd 888822833524306124874229800 106) 106))
199 (assert (= (gcd 21275338550698297089687698855820 3021) 3021))
200 (assert (= (gcd 417525245705449941528380320750068 5828) 5828))
201 (assert (= (gcd 1954871230146370370001829871352 22765249) 22765249))
202 (assert (= (gcd 903057827710908645847577520 648545995) 520085))
203 (assert (= (gcd 6002846634833433581621040 28493572159) 27869))
204 (assert (= (gcd 26428903214964558277189300080 100428856) 3463064))
205 (assert (= (gcd 470486531607553676511206181180 28495896) 2964))
206 (assert (= (gcd 483599554429365539310928369206620 5577334078910) 105232718470))
207 (assert (= (gcd 134511400157705323668887400 1285071093558916) 340069628))
208 (assert (= (gcd 25897125642468049125349982599216 1183846707540) 26307704612))
209 (assert (= (gcd 291543186498072665182448708000 1) 1))
210 (assert (= (gcd 1118034209930460291955200 3) 3))
211 (assert (= (gcd 16297594064835666104344589410644 413) 413))
212 (assert (= (gcd 536762539932642345554192060100 1378) 1378))
213 (assert (= (gcd 933250179448203335817687635834340 58029) 69))
214 (assert (= (gcd 65573457048202714607131200 486115) 3655))
215 (assert (= (gcd 85664559165674439863772868932 322014) 322014))
216 (assert (= (gcd 7232817686074320060728552759760 11307940) 11307940))
217 (assert (= (gcd 78400098291720425971762131120 5646921093) 5646921093))
218 (assert (= (gcd 345445746644065669842240 19727989065) 2193705))
219 (assert (= (gcd 627854758484491743169777558200 750371721805653) 156322329))
220 (assert (= (gcd 788233263079483492974876830792850 7170146100) 5867550))
221 (assert (= (gcd 18378856389802641496737518160 6247594493140) 824329660))
222 (assert (= (gcd 24537811627839727524106800 1) 1))
223 (assert (= (gcd 9620902642431357480148667659080 59) 59))
224 (assert (= (gcd 16008524600631853118144316000 629) 1))
225 (assert (= (gcd 4342138447708715023205684275423920 53041) 1711))
226 (assert (= (gcd 2431833161592653384508687244500 47541) 47541))
227 (assert (= (gcd 39424620224103957589082132160 1671734) 1671734))
228 (assert (= (gcd 652830233576052788654372406432 552231327) 12842589))
229 (assert (= (gcd 6892963340916411083970414000 3662431431) 77924073))
230 (assert (= (gcd 29102758215190063506219566460000 10565720) 10565720))
231 (assert (= (gcd 21253900104556838003127171970777418412 1182797770) 62698))
232 (assert
233 (= (gcd 3964268932242030284914943132662620 21244177854110) 18521515130))
234 (assert (= (gcd 6070388091189460078138338240 40809131994181213) 274113073169))
235 (assert (= (gcd 9685989954133695108793384134000 964113514382876) 169529367748))
236 (assert
237 (= (gcd 56468122001858834917195045500 429400787158167902) 2090772606538))
238 (assert (= (gcd 329308642462818241932463312443600 1) 1))
239 (assert (= (gcd 18843408973202596901221568364900 47) 47))
240 (assert (= (gcd 7800980538292163259967028613764250 6) 6))
241 (assert (= (gcd 270433907726619219545089642715200 3422) 58))
242 (assert (= (gcd 45771666919597903071546708768 2342359) 2183))
243 (assert (= (gcd 47198294949461301503537593835384892 314502) 5934))
244 (assert (= (gcd 3165335901519110207943908102359110 14953473) 207))
245 (assert (= (gcd 189219585097956261544520863361400 35605794) 35605794))
246 (assert (= (gcd 38532137569034426600955256933810890813 1341358608707) 6436369))
247 (assert (= (gcd 1396277868664090735481380981225896 312520860) 62504172))
248 (assert (= (gcd 864038349500762576564773759109700 714136202724) 16607818668))
249 (assert (= (gcd 12514185871591242579049167322464 10706997440178) 200614518))
250 (assert (= (gcd 1981802660405609330969478067056636 33312289752) 14779188))
251 (assert (= (gcd 979313401024175219420658240 125278417383795) 1551032145))
252 (assert (= (gcd 1051433196834071287164549263315400 1) 1))
253 (assert (= (gcd 4074026154111369481048033354344 29) 29))
254 (assert (= (gcd 599666571180604695702511920885005100 129) 129))
255 (assert (= (gcd 5703263639326551702474610108800 1978) 1978))
256 (assert (= (gcd 134137932950214683609064669163440 190619) 143))
257 (assert (= (gcd 344735091370772631136645455600 1048985) 1048985))
258 (assert (= (gcd 6759508339299085316106145385400 4969610) 160310))
259 (assert (= (gcd 700334422308861928135313594400 228529587) 432003))
260 (assert (= (gcd 10277417891211405957191810814198480 2516552038) 228777458))
261 (assert (= (gcd 490099971577877358878082782880 9282588354) 17547426))
262 (assert (= (gcd 1954558750269048828645390249600 5575829490) 327989970))
263 (assert (= (gcd 1360588454560018295496656378989200 7868178296420) 14873682980))
264 (assert
265 (= (gcd 4337552841738910859248770564912480 17722936528737830) 338114285990))
266 (assert (= (gcd 215913068853045803981566931862756 7009479781500) 2930844))
267 (assert
268 (= (gcd 44890707654126305940250882318870941900 18329973480720) 1527497790060))
269 (assert (= (gcd 811032943236714514667976787713600 1) 1))
270 (assert (= (gcd 28579720891831355496720656680837200 3) 3))
271 (assert (= (gcd 29332703209780553199747293473184160 1711) 29))
272 (assert (= (gcd 3648979393315349438003046604440000 186) 186))
273 (assert (= (gcd 1159760236369472473822068077011807878780 25714) 25714))
274 (assert (= (gcd 158186359726371025615685433600 31395) 4485))
275 (assert (= (gcd 331091450443070201468559735703944 28424) 28424))
276 (assert (= (gcd 9734443639363161342241553023288200 1961348207) 63269297))
277 (assert (= (gcd 701896612128009033011419603540080 51300) 3420))
278 (assert (= (gcd 86169288128517384618860929451245320 5032162527446) 180164066))
279 (assert (= (gcd 64828800524794653881296183831741773624 4645294472) 6354712))
280 (assert (= (gcd 49068907706533938991402184550000 268183371225) 742890225))
281 (assert (= (gcd 1708602980304476478496020543612288 4083128544) 131713824))
282 (assert (= (gcd 17608179287674151740172985536160 980399424528) 91686096))
283 (assert
284 (= (gcd 43194437079731225735521919644800 178119261126453036) 80633436453804))
285 (assert (= (gcd 25246290024325083695058170420074167420 1) 1))
286 (assert (= (gcd 817555977437791699707628651571149344 59) 59))
287 (assert (= (gcd 19062946261334997559157066059536 533) 41))
288 (assert (= (gcd 6533849124840489114353090499099000 598) 26))
289 (assert (= (gcd 427663965127849896842400211428345149025 234) 117))
290 (assert (= (gcd 352395507261316174741530450071590608 154734) 3774))
291 (assert (= (gcd 391579493632653867660919800000 9221565) 645))
292 (assert (= (gcd 2618798923882923048581401148931738000 681876) 52452))
293 (assert (= (gcd 174712575449141140214591110997980800 233260339838) 126154862))
294 (assert (= (gcd 88598141227372995032227898284800 1929763976) 155288))
295 (assert
296 (= (gcd 210110141308655567793064872567302676320 720390430628) 468699044))
297 (assert (= (gcd 668425085137718599277317523827419000 19898594339442) 58711254))
298 (assert
299 (= (gcd 89533471731097208414073727453200 4173840860670546) 2257350384354))
300 (assert
301 (= (gcd 113987439157802480362236410675251462620 21548296273949445)
302 1134120856523655))
303 (assert
304 (= (gcd 48129335993995093308894209644253760 1009442888504820) 84891337020))
305 (assert
306 (= (gcd 3497836376962291922989777163497680 138736290091634664)
307 3383811953454504))
308 (assert (= (gcd 1969012592912798752707609058217540160 1) 1))
309 (assert (= (gcd 11371924962562208722154622794880 3) 3))
310 (assert (= (gcd 9451631862008339290824315653784000 703) 19))
311 (assert (= (gcd 16869347753325980368094612370435598560 806) 806))
312 (assert (= (gcd 4701845646467068759127854100132739552 3198) 6))
313 (assert (= (gcd 1029865193584911347147121232800485280 1005771) 24531))
314 (assert (= (gcd 10657125216930337802109861408000 2415138) 2838))
315 (assert (= (gcd 14382707743772734802155022983680 247913634) 144894))
316 (assert (= (gcd 60134748581470366378101904574533857248 54828228) 493948))
317 (assert (= (gcd 214830664120540781167218700750596000 505665810) 11759670))
318 (assert (= (gcd 48933004118344447687599112101802800 6263883444) 106167516))
319 (assert (= (gcd 5498670161558110606435630054129739400 262699548132) 1346604))
320 (assert
321 (= (gcd 35941673649029587182509620977230062500 25622409466332) 525598668))
322 (assert
323 (= (gcd 1592802602494326390643157055239113248 736377633395508) 960075141324))
324 (assert
325 (= (gcd 4043816553144402557587143272522043028314 5011466158645380)
326 366067652202))
327 (assert
328 (= (gcd 7171921165220830707276631005512550 1765284492289500) 176528449228950))
329 (assert (= (gcd 1083389923993353036483083606295714771264 1) 1))
330 (assert (= (gcd 2402189359210218692854826119405968750 23) 1))
331 (assert (= (gcd 26149068753160488131648964110990162400 1147) 31))
332 (assert (= (gcd 556184059176863945810376239306506311552 4089) 4089))
333 (assert (= (gcd 67871323087036310486238021899264593800 13395) 13395))
334 (assert (= (gcd 12750401179065252879838440979200 7177173) 7177173))
335 (assert (= (gcd 278110245000092733617125071646080 17748) 17748))
336 (assert (= (gcd 13408203364935178481017292708752000 50619404) 1368092))
337 (assert (= (gcd 124271828931784534297423756437875067000 8839796595) 4068015))
338 (assert
339 (= (gcd 11893442806922081156953529319100769836176 972789007267) 983608703))
340 (assert
341 (= (gcd 352581052555284857902053030133344488264100 923561430099) 54327142947))
342 (assert
343 (= (gcd 6108908012714804315575319947340956346976 31944833628092) 97096758748))
344 (assert (= (gcd 67475643422116264959949054821520228800 22515435540) 326310660))
345 (assert (= (gcd 470601888939348535946408832 5135943991060962937) 36905011))
346 (assert
347 (= (gcd 110759232155568113345545635903016614000 30159198663300)
348 30159198663300))
349 (assert
350 (= (gcd 146100914712024458707469587112300146320 26868173101560) 10304280))
351 (assert
352 (= (gcd 12173192708601511002951184416658091200 466645866900785428350)
353 1496624001041650))
354 (assert (= (gcd 9286427982337931754305327867454626688 1) 1))
355 (assert (= (gcd 5784684831478746253226687170890240 13) 13))
356 (assert (= (gcd 35042260655085685815432622412891903767500 667) 667))
357 (assert (= (gcd 2903871349270676921837488659419545120987500 530) 530))
358 (assert (= (gcd 630123969240840167098426767919876491188000 77691) 25897))
359 (assert (= (gcd 33192703032132982013024959634241667249800 4684718) 126614))
360 (assert (= (gcd 4731525733734729472809717145544850000 90706055) 90706055))
361 (assert (= (gcd 214011009809686092216200126896120006823232 50400042) 258))
362 (assert (= (gcd 5854250735296111435541950856160000 24357777002) 817622))
363 (assert
364 (= (gcd 35348208247612761916374738259136697649608 156806713508) 8596388))
365 (assert
366 (= (gcd 612558317420289618714916924536521515286100 2377007388) 125105652))
367 (assert
368 (= (gcd 181857299802925368992522029882739454720 21606337755618)
369 21606337755618))
370 (assert
371 (= (gcd 4731635341196946327443020710970699860000 58092526675092) 776108892))
372 (assert
373 (= (gcd 22081740554432638182773611616166588288192 61419768950540)
374 12283953790108))
375 (assert (= (gcd 125627844706077784535328068665849312000 30482033400) 32200))
376 (assert
377 (= (gcd 1225504716872819103560254268197955520 510813364186125) 168863922045))
378 (assert
379 (= (gcd 5209185280578468690281136425214396728400 2327880739319250103818)
380 829166238))
381 (assert (= (gcd 73754161795015038015868615941656064 1) 1))
382 (assert (= (gcd 230425011604643097634961294406535254400 31) 31))
383 (assert (= (gcd 13222608481676137093434201748083744000 893) 893))
384 (assert (= (gcd 13348198818240350339028224064019716678960 651) 3))
385 (assert (= (gcd 7236172685650198160266777676385295337308176 23426) 442))
386 (assert (= (gcd 756264162229440667711265021676693350760 28899) 28899))
387 (assert (= (gcd 40915062421030872924283823601517905600 36345062) 36345062))
388 (assert (= (gcd 1174590526522170015825602834292923520 4991486258) 145114))
389 (assert
390 (= (gcd 2891892862328155581145450075391651333218020 35138529818) 35138529818))
391 (assert
392 (= (gcd 1993335355070485984559797658834121810059400 535644500) 2612900))
393 (assert
394 (= (gcd 6324295450641455215591954662726515160 367472693133) 8962748613))
395 (assert
396 (= (gcd 6576388154814679090356195121505112000 15901952377630) 969690370))
397 (assert
398 (= (gcd 117828556355409428513249595788296238400 565992666495795) 33126555))
399 (assert
400 (= (gcd 592831716700236607285748949860604000 139641978135660) 343100683380))
401 (assert
402 (= (gcd 106766839071170184723986891291602032000 1584924526628112)
403 1983635202288))
404 (assert
405 (= (gcd 21677148858122146832326483307664860804937400 247815827510760)
406 9178363981880))
407 (assert
408 (= (gcd 14079549844487257384278196623697173813600 160967604100961853832)
409 42959600534344))
410 (assert
411 (= (gcd 2696480372014145687016224877963234647656980 2219319031453896088860)
412 1258830987778727220))
413 (assert (= (gcd 307212139856834093867812684883625600 1) 1))
414 (assert (= (gcd 13545431257849875145060979241270859310160 29) 29))
415 (assert (= (gcd 137485634482479300158725199474868559498162500 329) 47))
416 (assert (= (gcd 529252417743761759027305009539254400 3243) 3243))
417 (assert (= (gcd 133897419738958073238580385894509887148800 330455) 330455))
418 (assert
419 (= (gcd 3896215507210178905244623173635584334007288624 1005238) 1005238))
420 (assert (= (gcd 17654511984514518592175290794029073043800 1060530) 36570))
421 (assert (= (gcd 16470780256339082688310222474503880382858400 913836) 913836))
422 (assert
423 (= (gcd 57267105834722825210001789897760395576000 2958974018) 62956894))
424 (assert
425 (= (gcd 521977833444747522001426544601807810543216 1066521690) 4960566))
426 (assert
427 (= (gcd 1699559962174727325529414216960251941390400 25883611479) 30924267))
428 (assert
429 (= (gcd 10654036597801063717295948399628964800 317449894126222) 19212606314))
430 (assert
431 (= (gcd 381902381115592200811990304316262139150724960 4640335440216)
432 4640335440216))
433 (assert
434 (= (gcd 425968526187959807410151867411382902838703889232 1882826315615025)
435 4430179566153))
436 (assert
437 (= (gcd 174609167728518272531601927200939868792000 1712923655178450) 6189150))
438 (assert
439 (= (gcd 3325168366561555458817274989681612518000 1699726139891780)
440 130748164607060))
441 (assert (= (gcd 11429650426242566426919762928176000 7414967839104) 5416338816))
442 (assert
443 (= (gcd 2104794191230056678355480848036599377844400 16946684823025584)
444 182222417451888))
445 (assert (= (gcd 5188454261655149422618327055938033890000 1) 1))
446 (assert (= (gcd 11894522530167763519415142641640874994880 7) 7))
447 (assert (= (gcd 5906329981690378696996009087718418780000 185) 185))
448 (assert (= (gcd 3056294774178096513474941936265025440000 658) 658))
449 (assert (= (gcd 10491907660880423349353457742257185280 123369) 123369))
450 (assert (= (gcd 673239479595593149777212259021965839229225628776 15470) 3094))
451 (assert (= (gcd 1506608574369860432616005754109397877696 1474070) 294814))
452 (assert
453 (= (gcd 4849814041048623250005708880379694793905000 2172220582) 2172220582))
454 (assert
455 (= (gcd 21154344928580705924176101470087564940000 5023204186) 5023204186))
456 (assert
457 (= (gcd 346448039376394135288065831861806112294000 776147372) 25037012))
458 (assert
459 (= (gcd 2339009760844587560470606952218133142645504 194201967414) 5248701822))
460 (assert
461 (= (gcd 2242982161480922111384667548175169152 21419749763490) 2316901002))
462 (assert
463 (= (gcd 4717315265246821759830981157482117120 45609714193992) 26227552728))
464 (assert
465 (= (gcd 16628111321698075419789804224660024289936 4643626415880804)
466 1653124391556))
467 (assert
468 (= (gcd 115557531507210992033160068979962880 88406536976058378)
469 36546728803662))
470 (assert
471 (= (gcd 21059511907771200155093927745003762840000 180298981648603620)
472 191197223381340))
473 (assert
474 (= (gcd 2124921015128697258800067298086064536000 2282525112298516782924)
475 15103625661372))
476 (assert
477 (= (gcd 16015671538624533047089928322348864000 49817926936366875)
478 69075001125))
479 (assert
480 (= (gcd 166517667014186289390514558017250969134523800 43413708621878528404068)
481 1188862957578074004))
482 (assert (= (gcd 2321860177398622617128885988647241763878824640 1) 1))
483 (assert (= (gcd 2780796292789128359666429021610464935722000 47) 47))
484 (assert (= (gcd 21297913114430245153455383503409684916193317960 58) 58))
485 (assert (= (gcd 1516745257039775143654568869485529015398000 6293) 6293))
486 (assert (= (gcd 8447692776411453120390905608381515479808 2030) 14))
487 (assert (= (gcd 958876033949638283967045624731391031146081240 9834415) 166685))
488 (assert (= (gcd 4731349833403602529573388098680617532624192 14868) 14868))
489 (assert
490 (= (gcd 6375001358038970462026761077388061675464000 430513678) 430513678))
491 (assert
492 (= (gcd 254088526608579040642428151389718385042344800 4799428101) 255411))
493 (assert
494 (= (gcd 21140490542258031885408065086507444825621023648 164778747198)
495 13189686))
496 (assert (= (gcd 34214837305812460226811046733375808000 4312787868) 746028))
497 (assert
498 (= (gcd 11450197571956515037245443769386989035470896800 75585518430279)
499 5814270648483))
500 (assert
501 (= (gcd 1211397915863796187148880114197307052796506376580 538601201880)
502 11708721780))
503 (assert
504 (= (gcd 5454139401260819402160859765169199667337088 30452838731872)
505 48414687968))
506 (assert
507 (= (gcd 744935981632690384026127091216926530879171660 1032747922358460)
508 60868033380))
509 (assert
510 (= (gcd 324574326062026951443376280715122947502400 103751223626207988025)
511 3334229637375325))
512 (assert
513 (= (gcd 15272163751269260921486082393684080908800 6484309049057400)
514 341279423634600))
515 (assert
516 (= (gcd 386527546655781220813671331401971490218262720 3481571963427119100)
517 1915440648660))
518 (assert
519 (= (gcd 3189682029126430413458911948222943640000 6724598925622907976570)
520 829921474949490))
521 (assert (= (gcd 133126055001116059223314464992298215523836640 1) 1))
522 (assert (= (gcd 709403542855323660533377490060722241678400 7) 7))
523 (assert (= (gcd 139803787314578422635552652090095842837312147438904 123) 123))
524 (assert
525 (= (gcd 171985399350431759069945935900956183322827030835560 18241) 18241))
526 (assert (= (gcd 33090522521924986387051477884789600000 26187) 609))
527 (assert (= (gcd 1733723010009930088165729903139785699319986530 372945) 7935))
528 (assert (= (gcd 56408303994570817306318494803635460247582000 5761730) 10810))
529 (assert
530 (= (gcd 25845509336769185412951159262424903513866295760 64371378271)
531 64371378271))
532 (assert
533 (= (gcd 624970361450506104794172455132584603069611058500 108222780)
534 108222780))
535 (assert
536 (= (gcd 82823962548382643645255524843049561752323600 135325929794)
537 12302357254))
538 (assert
539 (= (gcd 170620453449723034746079844571491973300000 9460614789626)
540 230746702186))
541 (assert
542 (= (gcd 125144597811313015929871740675462711600000 12764411911636)
543 12726233212))
544 (assert
545 (= (gcd 257193319319332344553297882967977761077115600 6510126541380)
546 158783574180))
547 (assert
548 (= (gcd 879624546681838385457288074812140664728758550 10045784120501316)
549 80757786714))
550 (assert
551 (= (gcd 18300938860777100857669855248554588369659200 118088077425391892)
552 1433647093268))
553 (assert
554 (= (gcd 8394780474625841647581984803260010511075000 746584618179400)
555 11198041400))
556 (assert
557 (= (gcd 146802334713757872619395774222116859916800 718775571956687400)
558 854667743111400))
559 (assert
560 (= (gcd 240155883351717999820072393833707008014911556000 1350921510529331832)
561 10157304590446104))
562 (assert
563 (= (gcd 918942437243241528855354123800826649596480 74343962238703160850)
564 3476056267530))
565 (assert
566 (= (gcd 1361069299753299783990135442290762165844800 8281085446358585640)
567 8546011812547560)))