Skip to content
Mathematics & StatisticsLocal · Stays on device

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.

  • Whole numbers up to 40 digits
  • Free to use
  • No sign-up or watermark
prime-factorization-toolOn this device
Whole numbers up to 40 digits
Open Prime Factorization Tool

About this tool

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.

  1. Input

    Your details

    Whole numbers up to 40 digits

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Shown instantly, ready to copy or export

Local processing pipelineBigInt + Miller–Rabin

How to use it

  1. 1

    Type or paste a whole number (separators are ignored).

  2. 2

    Read the factorisation and whether the number is prime.

  3. 3

    Copy the factorisation or the list of divisors.

Zero-upload architecture

How to use Prime Factorization Tool for free, with no upload

Free, with no sign-up or watermark · Your details stay on your device

  1. 1

    Open Prime Factorization Tool

    Launch the app. There is nothing to install and no account to create.

  2. 2

    Work through it

    Read the factorisation and whether the number is prime.

  3. 3

    Get your result

    Copy the factorisation or the list of divisors.

All 31 maths tools
  • Local

    Modular Arithmetic Calculator

    Calculate sums, differences, products, powers and inverses modulo m, with the extended Euclidean table and a Chinese remainder solver.

    Open tool
  • Local

    Combinatorics Calculator

    Calculate permutations (nPr), combinations (nCr), selections with repetition, multiset arrangements and exact factorials.

    Open tool
  • Local

    Fraction Calculator

    Add, subtract, multiply and divide fractions and mixed numbers exactly, with step-by-step working and repeating-decimal conversion.

    Open tool
  • Local

    Rational Approximation Tool

    Turn a decimal or constant such as π into the best fraction for a maximum denominator or tolerance, with its continued fraction.

    Open tool