Modular Arithmetic Calculator
Calculate sums, differences, products, powers and inverses modulo m, with the extended Euclidean table and a Chinese remainder solver.
Open toolFind the prime factors of a whole number up to 40 digits, plus all divisors, the divisor count and sum, and Euler’s totient.
Enter a whole number and get its prime factorisation in exponent form (360 = 2³ × 3² × 5), whether it is prime, the full list of divisors (up to 2,000 of them), the number of divisors τ(n), their sum σ(n), Euler’s totient φ(n) and whether it is a perfect square.
Small factors are removed by trial division; larger ones are found with Pollard–Brent rho and confirmed prime with the Miller–Rabin test, which is proven exact below about 3.3 × 10²⁴ and probabilistic (error below 4⁻²⁰) above. Numbers up to 40 digits are accepted. If a number with two very large prime factors cannot be split within the 2.5-second limit, the page says which part is composite but unfactored rather than guessing. Everything is calculated in your browser; nothing you enter is uploaded.
Your details
Whole numbers up to 40 digits
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Shown instantly, ready to copy or export
Type or paste a whole number (separators are ignored).
Read the factorisation and whether the number is prime.
Copy the factorisation or the list of divisors.
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 the factorisation and whether the number is prime.
Copy the factorisation or the list of divisors.
Calculate sums, differences, products, powers and inverses modulo m, with the extended Euclidean table and a Chinese remainder solver.
Open toolCalculate permutations (nPr), combinations (nCr), selections with repetition, multiset arrangements and exact factorials.
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