Least m such that n! + m is prime: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added Perl time) |
m (→{{header|Phix}}: online tag, with limit) |
||
Line 278: | Line 278: | ||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
{{trans|C}} |
{{trans|C}} |
||
<!--(phixonline)--> |
|||
<syntaxhighlight lang="phix"> |
<syntaxhighlight lang="phix"> |
||
with javascript_semantics |
|||
atom t0 = time() |
atom t0 = time() |
||
requires("1.0.3") -- mpz_nextprime() added |
requires("1.0.3") -- mpz_nextprime() added |
||
constant LIMIT = 10000 |
constant LIMIT = iff(platform()=JS?1000:10000) |
||
include mpfr.e |
include mpfr.e |
||
mpz {fact, p} = mpz_inits(2,1) |
mpz {fact, p} = mpz_inits(2,1) |