Prime Factorization Calculator
Find prime factors. Verify the product.
Prime Factorization Calculator
Factor an integer
Exact primes. Verified products.
Signed whole-number decimal only; no rounding or truncation.
Calculation and report options
A bounded split-iteration budget, shared with enabled batch inputs. Increase effort for an unfinished cofactor.
Signed input magnitudes must satisfy . Negative numbers retain a separate sign factor. Zero and units have dedicated explanations. Complete divisor lists are generated only when their exact count is at most 5,000.
Complete prime factorization verified by exact reconstruction.
Prime factorization
Complete prime factorization verified by exact reconstruction.
Signed input: composite. Absolute-value classification: composite.
Standard: 1,000,000 split iterations. Split iterations used: . The effort budget is shared with enabled batch rows.
Exact reconstruction and prime powers
Every listed prime is checked within the deterministic input range. Reconstruction multiplies verified factors and any explicitly unresolved cofactor; reconstruction alone is not a proof that an unfinished cofactor is prime.
Verified prime with multiplicity .
Verified prime with multiplicity .
Verified prime with multiplicity .
Properties of the positive magnitude
These functions apply to the absolute value, including for a negative input. They are computed only after its factorization is complete.
Positive divisor count
Sum of positive divisors
Euler totient
Product of distinct prime factors
Prime factors with repetition
Distinct prime factors
- Magnitude is not a perfect square.
- Magnitude is not a perfect cube.
- Magnitude is not square-free.
- Divisor-sum classification: abundant.
Step-by-step division ladder
This sorted division ladder verifies the discovered prime product. It is an educational reconstruction, not a transcript of the runtime splitting algorithm. The sign factor is kept separate. An incomplete ladder ends at the unresolved cofactor.
Division 1
Division 2
Division 3
Division 4
Division 5
Division 6
Positive divisors and factor pairs
Lists refer to the absolute value. The full generated list is retained in copy and CSV; print uses the visible page.
Page 1 of 1. Positive divisors: 24; positive factor pairs: 12.
Positive divisors, ascending
Turn an integer into a checkable prime-product record
Grouped and repeated prime factors
Read the same exact decomposition as prime powers or repeated factors. Multiplicity matters: finding a prime once does not account for every copy in a prime power. A separate sign factor keeps negative examples understandable without treating minus one as a prime or confusing the signed input with its positive magnitude.
Divisor and coprimality properties
Use a completed decomposition to count positive divisors, add them, calculate Euler's totient and identify the distinct-prime product. Square, cube and square-free checks apply to the magnitude. These properties are withheld when an unresolved cofactor remains, so a useful partial product does not become an unsupported complete arithmetic summary.
A reproducible single or batch report
Preserve repeated batch rows and their source order, and keep each row's completion status. A full report includes exact reconstruction and the educational division ladder alongside generated divisor lists. The on-screen list can stay short while copied and downloaded working retain the complete generated data needed to review a result later.
Prime factorization formulas and worked examples
For a positive magnitude , the fundamental theorem of arithmetic gives with distinct primes and positive integer exponents . The prime order may change, but the multiplicities do not. For negative input, retain the separate sign factor . A unit uses an empty prime product.
A complete classroom decomposition
Divide out each repeated prime and collect equal factors. Multiplying the prime powers reconstructs the starting magnitude.
A negative input keeps its sign
Factor the positive magnitude and retain the sign separately. The sign factor is not counted among the positive prime factors.
Count choices of prime exponents
Each positive divisor selects an exponent from zero through the corresponding exponent in the full factorization. Multiplying these choice counts gives the total.
Sum the positive divisors
A finite geometric sum for each prime power accounts for all possible divisor contributions. Multiplication combines the independent choices.
For a complete positive factorization, , and . Euler's totient counts the positive integers up to the magnitude that are coprime to it; it is not the total number of divisors. These positive-integer formulas are not used for zero.
Primality is classified deterministically only for , using the bounded witness theorem cited below. Splitting work is separately limited. An unfinished identity such as still names the unresolved composite cofactor ; exact multiplication is not a license to call that cofactor prime.
Separate exact evidence from unfinished computation
Whole numbers stay whole
- Text parsing preserves large adjacent integers and rejects decimal inputs instead of silently truncating them. The magnitude limit is explicit and matches the deterministic primality domain.
- Each listed prime is checked, multiplicities are retained, and an independent product identity closes the decomposition. Derived full divisor properties require completion.
- Zero, units and negative signs receive their own explanations. A positive prime magnitude never makes a negative signed input a prime number under the selected convention.
Work that remains inspectable
- A background worker keeps expensive splitting separate from the interface. Pending, cancelled and failed jobs cannot leave an old answer available as though it belonged to the new input.
- The division ladder is explicitly a reconstruction of discovered factors, rather than an invented account of the runtime algorithm. It ends at the unresolved cofactor when necessary.
- Complete generated lists stay in copied and downloaded reports. The visible page count and enumeration limit distinguish browsing a subset from claiming an incomplete divisor list is exhaustive.
For integer arithmetic, classroom explanations and exact checks
Students
Connect repeated division with prime powers and compare prime, composite, unit and zero examples. Inspect how the exponents determine divisor choices, and keep the sign convention visible when a negative integer has a prime or composite magnitude.
Technical readers
Check bounded machine-word integers with exact arithmetic and explicit computational limits. A composite classification can remain useful before every factor is resolved, provided its unresolved cofactor is retained and unsupported full properties are not inferred from a partial product.
Teachers
Build explanations around repeated factors, perfect squares, factor pairs and the distinction between totient and divisor count. Native result content and supporting formulas are readable without JavaScript for the default example. Complete exports let an answer key retain more detail than a compact visual list.
How it works in three quick steps.
Enter an integer without rounding it
Type a signed whole-number decimal without grouping commas, a fraction slash or an exponent expression. The input is kept as text until exact integer parsing, so a decimal is rejected instead of being truncated to a different question. Negative inputs keep their sign separate, and zero and units receive dedicated explanations rather than a fabricated list of primes.
Review verified factors and the reconstruction
Read the grouped prime powers or switch to repeated prime factors. Each listed prime is checked in the supported deterministic range, and the reconstruction verifies their product together with any unresolved cofactor. If bounded splitting stops early, increase the effort setting or retain the explicitly partial report. Cancellation and changing the input terminate the current background calculation instead of blocking the interface.
Explore divisors and keep a complete report
For a complete nonzero factorization, compare the positive-magnitude divisor count, sum, totient and other properties. Browse the generated divisor or factor-pair list using its page controls, or enable an independent batch. Copy the explanation or LaTeX, download complete CSV working, share the enabled inputs, or print the visible report. Exports retain generated lists beyond the currently displayed page.
Retain the exact factors, warnings and complete generated working
Copy the explanation or LaTeX
Copy summary keeps completion messages, exact reconstruction, factor properties and division working. Copy LaTeX supplies the selected typeset product source for a compatible editor. If the clipboard is unavailable, use the complete CSV report instead of retyping a large integer from its visual display.
Download a complete CSV report
The rectangular report stores generated divisors and factor pairs in separate rows, not merely the current visual page. Long integer cells carry a text marker to avoid spreadsheet rounding. It also keeps batch completion warnings and the selected work policy. It has descriptive headers and is therefore a retained report rather than the numeric source template expected by local import.
Print the current report or save PDF
Print the selected grouped or repeated form, visible division ladder, enabled batch and current divisor page. Browser page margins isolate the report from navigation and controls. Keep a CSV when you need all generated list pages, and retain the explicit unresolved-cofactor message whenever a result is partial.
Frequently Asked Questions
Is a negative number such as negative seven prime?
Why do zero and one need special explanations?
How large an integer can this tool handle exactly?
Is primality testing the same as finding every prime factor?
What does an exact reconstruction prove?
How are positive divisors and factor pairs listed?
Why can I cancel, retry or increase factorization effort?
What do sharing, local import, CSV and printing retain?
About this Prime Factorization Calculator
Toolarithm's Prime Factorization Calculator is designed to make an integer decomposition understandable and checkable. A tidy product can hide several different questions: whether the original input is prime, whether its positive magnitude is prime, whether every prime multiplicity has been found, and whether enough information exists to list all divisors. This page keeps those questions separate. It reads a bounded signed decimal integer exactly, preserves its sign convention and shows both the discovered factors and their reconstruction identity. An unfinished computation remains explicitly unfinished rather than acquiring the appearance of a certified complete answer.
The interface supports learning as well as numerical checking. Prime powers emphasize repeated multiplicity, while an expanded product connects those exponents with repeated division. The ladder supplies a readable verification of the discovered factor product; it does not pretend to reproduce the internal splitting algorithm. Once a nonzero factorization is complete, positive-magnitude properties and a bounded divisor list become available. Their labels distinguish a count of divisors, a sum of divisors and a count of coprime positive integers, which are related arithmetic functions but answer different questions.
Practical computation also needs an honest stopping rule. Large inputs run in a cancellable background worker, and the selected effort policy bounds splitting attempts across the enabled job. Sharing retains the source settings needed to repeat that job, while copied and downloaded reports preserve its completion status and exact working. Visual pagination is a browsing choice, not a deletion of generated data. The result is intended for educational and technical verification inside the stated machine-word domain; it does not claim unbounded integer factorization or allow a product check by itself to stand in for a primality test.
Who maintains this page
Ownership and review
Written and maintained by the Toolarithm editorial team. No review date is shown without a maintained editorial record. No independent professional review is claimed.
Methodology
Equations are checked by substituting worked examples into the stated relationship and comparing the result with the interactive implementation.
Read the editorial methodologyDates and sources
Review dates change only after a substantive method or content check.
Keep building