30 n = sqrt(number * 1.0) + 1;
33 for (i = 2; i <= n; i++)
69 while (*number % factor == 0)
84 int64_t factor, lastFactor;
int64_t smallest_factor(int64_t number)
Find the smallest prime factor of a number.
int64_t largest_prime_factor(int64_t number)
Find the largest prime factor of a number.
int64_t is_prime(int64_t number)
Determine if a number is prime.
int64_t next_prime_factor(int64_t *number)
Extract the next prime factor from a number.