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

m
→‎{{header|Phix}}: online tag, with limit
m (→‎{{header|Phix}}: use pygments, added progress and full run times)
m (→‎{{header|Phix}}: online tag, with limit)
 
(One intermediate revision by the same user not shown)
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)
Line 333 ⟶ 335:
"26 minutes and 15s"
</pre>
For comparison, the Julia entry above took 18 mins 38s on the same box, and Perl an even more impressive 10 mins 44s.
 
=={{header|Quackery}}==
7,820

edits