Free to use, no account

Kalkulator for primtallsfaktorisering

Bryt et positivt heltall ned i primfaktorer. Se primtallspotenser, gjentatte faktorer, divisjonsstigen og antallet positive divisorer. Regnestykket utføres lokalt i nettleseren din.

Skriv inn et heltall fra 1 til 1,000,000,000,000. Faktoriseringen bruker nøyaktig heltallsaritmetikk i denne nettleseren.

Hvordan finner du primtallsfaktorene til et tall?

Del på det minste primtallet som går opp i tallet, og gjenta med kvotienten til resten er et primtall. For eksempel er 360 = 2³ × 3² × 5.

Veiledning

Slik bruker du prime-factorization-calculator

The Prime Factorization Calculator breaks a whole number into the prime numbers that multiply to make it. It shows the result with powers, the same factors written out one by one, the step-by-step division ladder, and how many positive divisors the number has. It works with exact whole numbers in your browser and does not accept decimals, negatives or zero.

Slik gjør du

  1. Type a positive whole number with digits only. Commas, spaces, decimals and minus signs are not accepted.
  2. Press Factor the number, or press the 360 example button to load a sample.
  3. Read the table: prime powers, expanded factors, how many different primes and total prime factors there are, the divisor count and the division steps. Use Copy results to keep it.

Eksempler

The classic 360

Du skriver inn
Heltall
360
Du får
Primtallspotenser
2^3 × 3^2 × 5
Utvidet faktorisering
2 × 2 × 2 × 3 × 3 × 5
Ulike primtall
3
Totalt antall primtallsfaktorer
6
Antall divisorer
24

360 divides by 2 three times to 45, then by 3 twice to 5, which is prime. The divisor count is (3+1) × (2+1) × (1+1) = 24.

Kjørt med verktøyets egen kode.

A larger number

Du skriver inn
Heltall
600851475143
Du får
Primtallspotenser
71 × 839 × 1471 × 6857
Ulike primtall
4
Antall divisorer
16

Four different primes, each used once, so there are 2 × 2 × 2 × 2 = 16 divisors. The tool checks small primes first and then uses a faster method for what is left.

Kjørt med verktøyets egen kode.

A prime and the number one

Du skriver inn
Heltall
97
Du får
Primtallspotenser
97
Ulike primtall
1
Antall divisorer
2

A prime has only itself as a factor and exactly two divisors, 1 and itself. The number 1 gives an empty list of primes and a divisor count of 1, and the steps say it has no prime factors.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Checking homework on factor trees and prime powers.
  • Finding the greatest common divisor or least common multiple by comparing prime powers.
  • Counting the divisors of a number without listing them.
  • Simplifying fractions by spotting shared prime factors.

Begrensninger

  • The tool accepts whole numbers from 1 up to 1,000,000,000,000 (10^12). Anything above that, zero, a negative, a decimal or text is rejected with an error message.
  • Factoring has a time limit of about 4 seconds. A number with very large prime factors may be stopped with a message, so a failure does not mean the number is prime.
  • It does not show the full list of divisors, only how many there are.
  • It is a maths aid. Do not use it for security or encryption work, where much larger numbers are involved.

Tips

  • Paste a number with digits only; remove commas first.
  • Use the divisor count formula yourself: add 1 to each exponent and multiply.
  • Check the division steps if your classwork asks you to show the ladder.

Vanlige spørsmål

What is a prime factorization?

It is a way to write a whole number greater than 1 as a product of primes. Apart from the order of the factors, there is only one such way for each number.

How is the divisor count worked out?

Write the number as primes with exponents, add 1 to each exponent, then multiply those numbers. For 360 = 2^3 × 3^2 × 5 that is 4 × 3 × 2 = 24 divisors.

Why does it say 1 has no prime factors?

The number 1 is not prime and cannot be split further, so its list of primes is empty. It still has one divisor, itself.

Why did a big number give a time-limit message?

Finding large prime factors can take very long. The tool stops after about 4 seconds so the page stays usable. Try a different number, or a specialised program for huge values.

Can I factor a negative number or a decimal?

No. Only positive whole numbers made of digits are accepted. For a negative, factor its absolute value and remember the sign yourself.

Is my number sent anywhere?

No. The arithmetic runs in your browser and the tool does not upload or save what you type.

Kilder

Ofte stilte spørsmål

Hvordan finner du primtallsfaktorene til et tall?

Del på det minste primtallet som går opp i tallet, og gjenta med kvotienten til resten er et primtall. For eksempel er 360 = 2³ × 3² × 5.

Lastes tallene mine opp?

Nei. Beregningen kjøres i denne nettleseren, og verktøyet laster ikke opp eller lagrer inndataene dine.

Hva er primtallsfaktoriseringen av 360?

360 = 2³ × 3² × 5. Skrevet med gjentatte primfaktorer blir det 2 × 2 × 2 × 3 × 3 × 5.

Hvor mange divisorer har et tall?

Hvis primtallspotensene er pᵃ × qᵇ, er antall divisorer (a + 1)(b + 1). Kalkulatoren viser antallet for det støttede positive heltallet.

Kan det faktorisere tall av alle størrelser?

Dette nettleserverktøyet godtar heltall fra 1 til 1,000,000,000,000. Større verdier ligger utenfor det oppgitte området.