Primorial numbers: Difference between revisions

m
Phix/mpfr
m (Minor edit to C++ code)
m (Phix/mpfr)
Line 1,918:
 
=={{header|Phix}}==
{{libheader|Phix/mpfr}}
Multiplying the vector elements in pairs is much faster for essentially the same reason that merge sort is faster than insertion sort.<br>
You could probably optimise the number of mpz_init() this invokes a fair bit, if you really wanted to.
7,805

edits