On 26/06/2021 4:50 pm, David Crayford wrote:

That's an exaggeration. C is just over 3x faster.

C

    mckoss-c830;14285;5.0;1;algorithm=wheel,faithful=yes,bits=1


The C implementations are confusing because there are various algorithm changes as well, rather than just the language change. This one uses the wheel algorithm instead of the base (original). I don't know enough math or algorithms to say what difference that makes.

I think the solution_2/sieve_1of2.c is the one that corresponds to the C++ code.

--
Andrew Rowley
Black Hill Software

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to