A simple sieve in Phobos?

bearophile bearophileHUGS at lycos.com
Tue Mar 18 18:44:15 PDT 2014


Chris Williams:

> Yeah, several methods work just fine if you change their 
> declaration to isIntegral!T || is(typeof(T) == BigInt). gcd() 
> is one of them.
>
> Unfortunately, I don't trust rewriting isIntegral, so this sort 
> of change would need to be on a function-by-function basis.

Don explained me that a GCD on BigInts should use a more 
efficient algorithm.

Bye,
bearophile


More information about the Digitalmars-d mailing list