- Panagiotis Vardalas
This program factors a given semiprime number using Pollard's Rho algorithm.
Converts a string representation of a number to a u128 integer type for easy manipulation and calculations.
Converts a u128 integer type back to a string for printing.
Computes the greatest common divisor of two numbers using the Euclidean algorithm.
Efficiently multiplies two numbers under a modulus to prevent overflow and ensure results fit within the desired range.
A probabilistic method for finding non-trivial factors of large integers. Suitable for larger numbers (outside the 19-22 digit range).
./factor <semiprime>Factors: 104723 107223761No factor found.