Jordan-Pólya numbers: Difference between revisions
Content added Content deleted
(Added Easylang) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 1,667: | Line 1,667: | ||
{{libheader|Wren-fmt}} |
{{libheader|Wren-fmt}} |
||
This uses the recursive PARI/Python algorithm in the OEIS entry. |
This uses the recursive PARI/Python algorithm in the OEIS entry. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "./set" for Set |
||
import "./seq" for Lst |
import "./seq" for Lst |
||
import "./fmt" for Fmt |
import "./fmt" for Fmt |
||
Line 1,771: | Line 1,771: | ||
{{libheader|Wren-sort}} |
{{libheader|Wren-sort}} |
||
This uses the same non-recursive algorithm as the Phix entry to generate the J-P numbers which, at 1.1 seconds on my machine, is about 40 times quicker than the OEIS algorithm. |
This uses the same non-recursive algorithm as the Phix entry to generate the J-P numbers which, at 1.1 seconds on my machine, is about 40 times quicker than the OEIS algorithm. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "./sort" for Find |
||
import "./seq" for Lst |
import "./seq" for Lst |
||
import "./fmt" for Fmt |
import "./fmt" for Fmt |