Jordan-Pólya numbers: Difference between revisions

Content added Content deleted
m (→‎{{header|J}}: restore missing definition)
m (→‎{{header|J}}: faster (probably -- benchmarks hit by factor of 2 influence from os scheduling))
Line 24: Line 24:


=={{header|J}}==
=={{header|J}}==
<syntaxhighlight lang=J>F=: !P=: p:i.100x
<syntaxhighlight lang=J>F=. !P=. p:i.100x
jpfct=: {{ _2}.!x:i.->.!inv 1+y }}
jpprm=: P{.~F I. 1+]
jpprm=: P{.~F I. 1+]

Fs=. 2}.!i.1+{:P
jpfct=: Fs |.@:{.~ Fs I. 1+]


isjp=: {{
isjp=: {{