More inlines.
Rewrite is_prime_lenstra.