testing value of last digit of an integer.

Kevin Ryde user42 at zip.com.au
Mon Apr 5 00:43:33 CEST 2004


"delta trinity" <deltatrinity at hotmail.com> writes:
>
> you could use mpz_divisible_p
> It is much faster than doing a complete division.

Yep.  Or mpz_congruent_ui_p rather, I imagine.


More information about the gmp-discuss mailing list