Ramanujan primes/twins: Difference between revisions

→‎{{header|Wren}}: Regularized the preamble.
(julia example)
(→‎{{header|Wren}}: Regularized the preamble.)
Line 255:
 
=={{header|Wren}}==
{{trans|Phix}}
{{libheader|Wren-trait}}
{{libheader|Wren-math}}
{{libheader|Wren-fmt}}
<br>
As calculating the first 1 million Ramanujan primes individually is out of the question, we follow the Phix entry's clever strategy here of which brings this istask comfortably awithin partialour translationambit.
 
The only reason this is faster than Phix (normally we'd be much slower) is because the basic Ramanujan code is a translation of the very fast C++ code for that task.
<lang ecmascript>import "/trait" for Stepped, Indexed
import "/math" for Int, Math
9,488

edits