Skip to content
Test versionSearch

Mathematics

Exact prime lists, tests and factorisation

List primes up to a set limit, test whether a whole number is prime or show its full prime factorisation. Zero and one are handled explicitly.

How it worksFAQRelated tools

Content reviewed:

The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. JSON, HTML and TXT downloads keep your inputs and all result rows; long integers keep every digit you entered. Automatic recalculation after editing is off unless you switch it on. Nothing is saved, imported or sent automatically.

Own sieve lists every prime through a limit 0–1000. Exact trial division checks or factors integers 0–1000000000; zero and one have no prime factorisation. No probabilistic test, security guarantee or full 100000 source-list equivalence.

Decimal results are approximate. Inputs stay in this browser tab.

How it works

Own exact integer algorithms: sieve/trial division, Fibonacci recurrence, elementary counting and extended Euclid. Own sieve lists every prime through a limit 0–1000. Exact trial division checks or factors integers 0–1000000000; zero and one have no prime factorisation. No probabilistic test, security guarantee or full 100000 source-list equivalence.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Operation
Prime factorisation
Integer or list limit
360

Result

Integer
360
Prime classification
Composite
Complete prime factors
2^3 × 3^2 × 5
One proper divisor (dash if absent)
2

Frequently asked questions

How do I find the prime factors of a number?

Choose the factor operation and enter an integer from 0 to 1,000,000,000. The tool uses exact trial division. The editable example factors 360.

How do I check whether a number is prime?

Choose the test operation and enter an integer from 0 to 1,000,000,000. Exact trial division classifies it, with zero and one handled explicitly.

How do I list primes up to a limit?

Use the list operation with a limit from 0 to 1000. The tool's own sieve lists every prime through that limit.

What about 0 and 1?

Zero and one have no prime factorisation, and the tool handles them explicitly.

Is this a probabilistic or security-grade test?

No. It uses exact trial division, with no probabilistic test or security guarantee.

Can it list primes beyond 1000?

No. The list limit is 0 to 1000, and there is no full 100000 source-list equivalence.