Babbage problem: Difference between revisions

Content added Content deleted
No edit summary
(→‎APL: Add ⍣ operator.)
Line 178: Line 178:


=={{header|APL}}==
=={{header|APL}}==
===⍳ operator===
If at all possible, I would sit down at a terminal <i>with</i> Babbage and invite him to experiment with the various functions used in the program.
If at all possible, I would sit down at a terminal <i>with</i> Babbage and invite him to experiment with the various functions used in the program.
<syntaxhighlight lang="apl"> ⍝ We know that 99,736 is a valid answer, so we only need to test the positive integers from 1 up to there:
<syntaxhighlight lang="apl"> ⍝ We know that 99,736 is a valid answer, so we only need to test the positive integers from 1 up to there:
Line 191: Line 192:
{{out}}
{{out}}
<pre>25264</pre>
<pre>25264</pre>
===⍣ operator===
<syntaxhighlight lang=apl>2+⍣{269696=1000000|⍺*2}520</syntaxhighlight>


=={{header|AppleScript}}==
=={{header|AppleScript}}==