Least m such that n! + m is prime: Difference between revisions

m
→‎{{header|Phix}}: online tag, with limit
m (→‎{{header|Phix}}: added Perl time)
m (→‎{{header|Phix}}: online tag, with limit)
 
Line 278:
=={{header|Phix}}==
{{trans|C}}
<!--(phixonline)-->
<syntaxhighlight lang="phix">
with javascript_semantics
atom t0 = time()
requires("1.0.3") -- mpz_nextprime() added
constant LIMIT = iff(platform()=JS?1000:10000)
include mpfr.e
mpz {fact, p} = mpz_inits(2,1)
7,824

edits