Least m such that n! + m is prime: Difference between revisions
Least m such that n! + m is prime (view source)
Revision as of 21:49, 17 December 2023
, 6 months ago→{{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)
|