Sieve of Eratosthenes: Difference between revisions

(→‎Immutable arrays, by segments: +sub_section "as list comprehension")
Line 1,326:
=== Rotations ===
 
<syntaxhighlight lang="apl">sieve←PRIMES←{{1⊖⍵~(1↑⍵)×1↓⍳⍴⍵}⍣{2=1↑⍺}1↓⍳⍵}</syntaxhighlight>
 
=={{header|AppleScript}}==
422

edits