Jump to content

Babbage problem: Difference between revisions

→‎APL: Add ⍣ operator.
No edit summary
(→‎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}}==
422

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.