Tacit programming: Difference between revisions

Jump to navigation Jump to search
2 bytes removed ,  00:07, 2 August 2023
→‎The Number of the Beast: Fixed typo: statement should use ~ not ⍨, monadic ⊢⍨ does nothing
Tags: Mobile edit Mobile web edit
(→‎The Number of the Beast: Fixed typo: statement should use ~ not ⍨, monadic ⊢⍨ does nothing)
Line 196: Line 196:
666                          ⍝ the sum of the squares of the primes up to 17
666                          ⍝ the sum of the squares of the primes up to 17
</syntaxhighlight>
</syntaxhighlight>
Note that <syntaxhighlight lang=apl inline>((⊢⍨∘.×⍨)1↓⍳)</syntaxhighlight> is a train computing primes up to the given input.
Note that <syntaxhighlight lang=apl inline>((⊢~∘.×⍨)1↓⍳)</syntaxhighlight> is a train computing primes up to the given input.


A more satisfying variation of the accursed train is the following.
A more satisfying variation of the accursed train is the following.

Navigation menu