Tacit programming: Difference between revisions
Jump to navigation
Jump to search
(→Trains) Tags: Mobile edit Mobile web edit |
Greta Samsa (talk | contribs) (→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>(( | 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. |