Skip to content
LoveToCalc

Concept — what does that mean?

Prime numbers

A whole number greater than 1 that divides evenly only by 1 and by itself. 2, 3, 5 and 7 are prime — 1 is not.

In Swedish: Primtal

What it is

A prime number is a whole number greater than 1 with exactly two positive divisors: 1 and the number itself. 7 is prime, because the only numbers that divide 7 evenly are 1 and 7. 12 is not, because 12 also divides by 2, 3, 4 and 6.

A whole number greater than 1 that is not prime is composite: it can be written as a product of two smaller whole numbers greater than 1, as 12 = 3 · 4. The numbers 0 and 1 are neither prime nor composite.

The first primes are

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, …

There are 25 primes below 100 and 168 below 1,000. All of them are in the table of primes.

Trying up to the square root is enough because divisors come in pairs. In 91 = 7 · 13 one factor is at most √91 ≈ 9.5, and the same holds for every way of splitting a number into two factors. If there is no divisor below the root, there is none above it either.

Why it matters

Primes are the building blocks of the whole numbers. Every whole number greater than 1 is either a prime or a product of primes, and the product is the same however you arrive at it, apart from the order: 360 is 2³ · 3² · 5 and nothing else. That is the fundamental theorem of arithmetic, and prime factorisation is the method that finds the product.

Most of what you do with divisibility goes through those factors:

Outside school, a widely used kind of encryption, RSA, rests on the fact that multiplying two large primes is fast while recovering them from the product is, with the methods known, very slow.

The prime factorisation calculator splits any number and shows each step, and the worksheets give questions with an answer key.

Common misconceptions

Common questions

How many primes are there? Infinitely many. Euclid’s argument: multiply some primes together and add 1. The new number does not divide by any of them, since there is always 1 left over, so its prime factors are primes that were not on the list. The number itself need not be prime: 2 · 3 · 5 · 7 · 11 · 13 + 1 = 30,031, which is 59 · 509.

Are negative numbers prime? No, not with the definition here. A prime is a whole number greater than 1, so neither negative numbers, 0 nor 1 count.

How do you tell quickly whether a number is prime? Divide by the primes 2, 3, 5, 7, 11, … as long as the prime squared is not larger than the number. If none divides it evenly, the number is prime. For 2, 3 and 5 it is enough to look at the digits — see the divisibility rules.

Prime numbers up to 1,000

Table

Prime numbers up to 1,000
2357111317192329
31374143475359616771
7379838997101103107109113
127131137139149151157163167173
179181191193197199211223227229
233239241251257263269271277281
283293307311313317331337347349
353359367373379383389397401409
419421431433439443449457461463
467479487491499503509521523541
547557563569571577587593599601
607613617619631641643647653659
661673677683691701709719727733
739743751757761769773787797809
811821823827829839853857859863
877881883887907911919929937941
947953967971977983991997

Divisibility rules

Table

Divisibility rules
Divisible byRuleExampleCounterexample
2The last digit is even.124125
3The digit sum is divisible by 3.126127
4The last two digits form a number divisible by 4.168169
5The last digit is 0 or 5.210211
6The number is divisible by both 2 and 3.252253
8The last three digits form a number divisible by 8.336337
9The digit sum is divisible by 9.378379
10The last digit is 0.420421
11The digits alternately added and subtracted give a number divisible by 11.462463
25The last two digits are 00, 25, 50 or 75.1,0501,051

Last reviewed October 20, 2026 ·How pages are reviewed

Calculate it in practice

ArithmeticAll formulas