Start here · Friendly prime playground

What is a prime number?

No timers, no pressure, just play. Arrange glowing dots into rectangles, hunt hidden primes from 1 to 100, and snap prime bricks together like LEGO!

Play 1 · Shapes

Can you build a rectangle?

Pick a number of glowing dots and arrange them into equal rows. If only a single straight line works, that number is prime!

Pick a number
12

Rows: 3

Drag the rows slider or tap the glowing stage to try shapes.

Play 2 · The Prime Hunt

Hunt every prime from 1 to 100!

Tap multiples on the board to cross them out, or press a colorful wave button below. Every number left standing lights up gold!

Cross out multiples in a wave:

Play 3 · Two Tricky Numbers

Wait — what about 1 and 2?

Two tiny numbers that spark the best questions!

Definition

Why isn't 1 a prime number?

A prime number has exactly two clean ways to divide it: by 1 and by itself. Poor 1 only has one!

Even more important: if 1 were a prime brick, you could snap extra 1s onto any number forever (12 = 2 × 2 × 3 × 1 × 1…). Leaving 1 out gives every number one special recipe!

Without 1, every number has just one unique brick recipe.

Proven

Why is 2 the ONLY even prime?

Every even number splits cleanly into two equal rows. For 4, 6, 8, and every bigger even number, that makes a real rectangle!

Only 2 is so tiny that two equal pieces is still just one straight line. So 2 wears the crown as the only even prime!

2 stays a line — 4, 6, and 8 all fold into rectangles.

Play 4 · Building Blocks

Build numbers from prime bricks!

Every whole number bigger than 1 is built from primes — just like LEGO models are built from bricks. Drag or tap bricks onto the mat!

Proven Every number bigger than 1 has only ONE secret prime recipe!

Prime bricks — drag or tap to snap:

Your brick mat Tap any brick on the mat to take it off.

Or tap a number to break it into prime bricks:

Play 5 · Did You Know?

Primes live in the real world too!

These glowing building blocks pop up in forests, secret locks, and infinite skies.

Proven

Primes never end!

More than 2,300 years ago, a Greek mathematician named Euclid proved that primes go on forever. No matter how giant a prime you find, there is always a bigger one waiting!

Euclid, ~300 BCE

In nature

Prime-number cicadas!

Some cicada bugs sleep underground for 13 or 17 years — both prime numbers! Scientists think prime schedules make it much harder for hungry predators to catch them all at once.

13-year & 17-year cicadas

In real life

Secret locks for your messages!

Multiplying two giant prime bricks is fast for a computer, but splitting the huge answer back apart is super hard. That one-way trick keeps your messages and games safe online!

Modern secret codes

For curious minds, parents & teachers (the exact math)
Definition

Definition of a prime number

An integer p > 1 is prime if its only positive divisors are 1 and p. Every integer n > 1 with more than two divisors is composite; 1 is neither prime nor composite.

Proven

Fundamental Theorem of Arithmetic

Every integer n > 1 can be written as a product of primes in exactly one way, up to the order of the factors. Excluding 1 is what makes this prime factorization unique.

Proven

Euclid's Theorem (Elements, Book IX, Prop. 20)

There are infinitely many prime numbers. Given any finite list p₁, …, pₖ, the number p₁·p₂···pₖ + 1 has a prime factor not on the list.

Proven

Sieve of Eratosthenes (~240 BCE)

Every composite number n ≤ N has a prime factor ≤ √N. For N = 100, √100 = 10, so crossing out multiples of 2, 3, 5, and 7 leaves all 25 primes up to 100 (OEIS A000040).