Prime Factorization Generator
Decompose N into prime factors with exponents (e.g., 360 = 2³·3²·5). Useful for LCM, GCD and number theory.
Decomposição:
—
Lista de fatores: —
Prime factorisation with the exponents on show
Every integer greater than 1 can be written in exactly one way as a product of primes — that is the fundamental theorem of arithmetic. 360 is two cubed times three squared times five, and no other combination of primes gives 360. That uniqueness is what makes factorisation more than a curiosity: the greatest common divisor, the least common multiple and the divisor count all fall out of it.
Type the number and the page returns the factorisation with exponents in reduced form. The method is trial division: divide by 2 while it works, then by 3, and so on up to the square root of what remains — whatever is left above that is necessarily prime. It is the simplest algorithm there is and handles everyday numbers comfortably.
The difficulty of factoring large numbers is no accident: it underpins much of the cryptography in use. RSA leans on the gap between multiplying two three-hundred-digit primes, which is instant, and recovering the factors from the product, which no known classical computer does in reasonable time. This page handles numbers up to the trillions; above that, trial division stops being practical and methods like Pollard's rho and the number field sieve take over.
Frequently asked questions
Why is testing up to the square root enough?
How does it relate to GCD and LCM?
How do I count divisors from the factorisation?
Related Tools
First N Primes Generator
List the first N prime numbers using the Sieve of Eratosthenes. Useful for number-theory exercises, educational cryptography demos and algorithm testing. Runs in your browser.
Fibonacci Generator (first N)
Generate the first N Fibonacci numbers using BigInt for overflow-free output. Useful for didactics, algorithm testing and series analysis.
Divisors Generator
List all positive divisors of N. Shows total count and whether N is prime (only 2 divisors) or perfect.
Perfect Number Generator
List perfect numbers (where the sum of proper divisors equals the number itself) below a ceiling. Examples: 6, 28, 496, 8128.
Cache-Control max-age Explained
Convert the Cache-Control max-age value (in seconds) into a readable time in hours and days. Useful for understanding and debugging HTTP cache and CDNs.
.htpasswd bcrypt Generator
Build the .htpasswd line with a real bcrypt hash ($2y$ prefix), the scheme Apache recommends. You pick the cost and everything is computed in your browser.