Babbage problem: Difference between revisions

Content added Content deleted
Line 1,076: Line 1,076:
===Almost Lisp===
===Almost Lisp===


===== 1. Note =====
==== Note ====


[[File:Babbage Sign Language.jpg|thumb|
[[File:Babbage Sign Language.jpg|thumb|
Line 1,084: Line 1,084:
Charles Babbage is familiar with symbol manipulation and low level programming. We introduce variable assignment (<-), conditional statement (=>) and jump (go).
Charles Babbage is familiar with symbol manipulation and low level programming. We introduce variable assignment (<-), conditional statement (=>) and jump (go).


===== Program =====
==== Program ====


<syntaxhighlight lang="lisp">;; 22.12.09 Renommage
<syntaxhighlight lang="lisp">;; 22.12.09 Renommage
Line 1,099: Line 1,099:
b (print n))</syntaxhighlight>
b (print n))</syntaxhighlight>


===== Execution =====
==== Execution ====


<pre>(conjecture-de-babbage)</pre>
<pre>(conjecture-de-babbage)</pre>
Line 1,106: Line 1,106:
<pre>25264</pre>
<pre>25264</pre>


===== Black box =====
==== Black box ====


Lisp « jargon » is hidden in a black box.
Lisp « jargon » is hidden in a black box.