Module math

Source

Structs§

PrimeIterator
Provides an Iterator for prime numbers.

Functions§

factorize
Factorizes the given number into its prime factors.
gcd
Finds the GCD of a and b.
reduce_fraction
Reduces the fraction numerator/denominator using their GCD.
round_to
Rounds the value with the specified granularity.