Babbage problem: Difference between revisions
→APL: Add ⍣ operator.
Cyril Nocton (talk | contribs) No edit summary |
Cyril Nocton (talk | contribs) (→APL: Add ⍣ operator.) |
||
Line 178:
=={{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.
<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 ⟶ 192:
{{out}}
<pre>25264</pre>
===⍣ operator===
<syntaxhighlight lang=apl>2+⍣{269696=1000000|⍺*2}520</syntaxhighlight>
=={{header|AppleScript}}==
|