Contact, if you are interested in this website/domain name/Sponsorship/Advertisement/Partnership

Prime checker and factorizer

Find out if a number is prime and break it into prime factors. Works for whole numbers up to 1,000,000,000,000,000.

What makes a number prime

A prime has exactly two divisors: 1 and itself. 2, 3, 5, 7 and 11 are prime; 1 is not, because it has only one divisor. Every whole number above 1 is either prime or a product of primes in exactly one way, which is why the prime factorization is so useful.

How the check works

To test a number n, it is enough to try dividing by primes up to √n. If none divides it, n is prime. This tool skips multiples of 2 and 3 to test about a third of the candidates, which keeps even fifteen-digit numbers fast.

Examples

  • 439 is prime, the 85th.
  • 1001 = 7 × 11 × 13.
  • 439439 = 7 × 11 × 13 × 439.
  • 1729 = 7 × 13 × 19, the Hardy–Ramanujan number.