<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mojopuzzler.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Greatest_Common_Divisor</id>
	<title>Greatest Common Divisor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mojopuzzler.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Greatest_Common_Divisor"/>
	<link rel="alternate" type="text/html" href="https://mojopuzzler.org/mediawiki/index.php?title=Greatest_Common_Divisor&amp;action=history"/>
	<updated>2026-05-06T01:45:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://mojopuzzler.org/mediawiki/index.php?title=Greatest_Common_Divisor&amp;diff=2262&amp;oldid=prev</id>
		<title>Gneale: Created page with &quot;===== Return to: Chialisp =====  ===== Return to: Recursive Functions =====   (mod (num1 num2)      (defun remainder (x y)       (r (divmod x y)))      (defun gcd (num1 num2)        (if (= num2 0)            num1            (gcd num2 (remainder num1 num2))))    (gcd num1 num2)    )  ==Example Usage==  brun '(a (q 2 4 (c 2 (c 5 (c 11 ())))) (c (q (a (i (= 11 ()) (q . 5) (q 2 4 (c 2 (c 11 (c (a 6 (c 2 (c 5 (c 11 ())))) ()))))) 1) 6 (divmod 5 11)) 1))' '(99...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mojopuzzler.org/mediawiki/index.php?title=Greatest_Common_Divisor&amp;diff=2262&amp;oldid=prev"/>
		<updated>2023-11-17T15:53:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;===== Return to: &lt;a href=&quot;/mediawiki/index.php/Chialisp&quot; title=&quot;Chialisp&quot;&gt;Chialisp&lt;/a&gt; =====  ===== Return to: &lt;a href=&quot;/mediawiki/index.php/Recursive_Functions&quot; title=&quot;Recursive Functions&quot;&gt;Recursive Functions&lt;/a&gt; =====   (mod (num1 num2)      (defun remainder (x y)       (r (divmod x y)))      (defun gcd (num1 num2)        (if (= num2 0)            num1            (gcd num2 (remainder num1 num2))))    (gcd num1 num2)    )  ==Example Usage==  brun &amp;#039;(a (q 2 4 (c 2 (c 5 (c 11 ())))) (c (q (a (i (= 11 ()) (q . 5) (q 2 4 (c 2 (c 11 (c (a 6 (c 2 (c 5 (c 11 ())))) ()))))) 1) 6 (divmod 5 11)) 1))&amp;#039; &amp;#039;(99...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===== Return to: [[Chialisp|Chialisp]] ===== &lt;br /&gt;
===== Return to: [[Recursive Functions]] =====&lt;br /&gt;
&lt;br /&gt;
 (mod (num1 num2)&lt;br /&gt;
     (defun remainder (x y)&lt;br /&gt;
      (r (divmod x y)))&lt;br /&gt;
     (defun gcd (num1 num2)&lt;br /&gt;
       (if (= num2 0)&lt;br /&gt;
           num1&lt;br /&gt;
           (gcd num2 (remainder num1 num2))))&lt;br /&gt;
   (gcd num1 num2)&lt;br /&gt;
   )&lt;br /&gt;
&lt;br /&gt;
==Example Usage==&lt;br /&gt;
 brun '(a (q 2 4 (c 2 (c 5 (c 11 ())))) (c (q (a (i (= 11 ()) (q . 5) (q 2 4 (c 2 (c 11 (c (a 6 (c 2 (c 5 (c 11 ())))) ()))))) 1) 6 (divmod 5 11)) 1))' '(99 33)'&lt;br /&gt;
&lt;br /&gt;
33&lt;br /&gt;
&lt;br /&gt;
 brun '(a (q 2 4 (c 2 (c 5 (c 11 ())))) (c (q (a (i (= 11 ()) (q . 5) (q 2 4 (c 2 (c 11 (c (a 6 (c 2 (c 5 (c 11 ())))) ()))))) 1) 6 (divmod 5 11)) 1))' '(206 40)'&lt;br /&gt;
&lt;br /&gt;
2&lt;/div&gt;</summary>
		<author><name>Gneale</name></author>
	</entry>
</feed>