Prime Factorization Tool
Find the prime factors of a whole number up to 40 digits, plus all divisors, the divisor count and sum, and Euler’s totient.
Open toolCalculate sums, differences, products, powers and inverses modulo m, with the extended Euclidean table and a Chinese remainder solver.
Enter a, b and a modulus m to get (a + b), (a − b), (a × b) and aᵇ mod m, a mod m, gcd(a, m) and the modular inverse a⁻¹ — or a clear “not defined” when gcd(a, m) ≠ 1. The inverse is checked (a × a⁻¹ ≡ 1) and the extended Euclidean algorithm is shown row by row, so you can follow the working by hand.
Results are always the non-negative remainder, also for negative inputs. Powers use square-and-multiply, so huge exponents are instant; a negative exponent uses the inverse. The Chinese remainder theorem mode solves systems such as x ≡ 2 (mod 3), x ≡ 3 (mod 5), x ≡ 2 (mod 7), including moduli that share factors, and says when the system has no solution. All arithmetic is exact (BigInt, up to 300 digits). Everything is calculated in your browser; nothing you enter is uploaded.
Your details
Whole numbers up to 300 digits
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Shown instantly, ready to copy or export
Enter a, b and the modulus m — or switch to the Chinese remainder mode.
Read each result; the inverse row says when it does not exist.
Follow the extended Euclidean table for the working.
Zero-upload architecture
Free, with no sign-up or watermark · Your details stay on your device
Launch the app. There is nothing to install and no account to create.
Read each result; the inverse row says when it does not exist.
Follow the extended Euclidean table for the working.
Find the prime factors of a whole number up to 40 digits, plus all divisors, the divisor count and sum, and Euler’s totient.
Open toolConvert whole numbers and fractions between any bases from 2 to 36, with repeating digits and two’s-complement views.
Open toolAdd, subtract, multiply and divide fractions and mixed numbers exactly, with step-by-step working and repeating-decimal conversion.
Open toolTurn a decimal or constant such as π into the best fraction for a maximum denominator or tolerance, with its continued fraction.
Open tool