Explore the building blocks of integers: divisibility, primes, and the Fundamental Theorem of Arithmetic
Every whole number above 1 is built from primes in exactly one way. Take numbers apart, sieve out the primes, and look for the odd patterns they leave behind.
Pick a number and click any node to see the divisors it connects to. Compare a prime's two-node lattice with a busy one like 60 or 120.
12 = 2^2 × 3
Number theory begins with the simplest question: how do integers relate to each other through division? The prime numbers are the atoms of arithmetic — every integer greater than 1 can be written uniquely as a product of primes.
This is the Fundamental Theorem of Arithmetic, and it underpins everything in number theory. In this section, you'll explore divisibility structures, watch prime factorization unfold step by step, and discover the mysterious patterns that primes create.
Every integer has a structured hierarchy of divisors. The Hasse diagram shows this hierarchy as a graph: divisors are nodes, and edges connect each divisor to its immediate multiples. Click any node to see its relationships.
Enter a number and step through trial division as it peels off the smallest prime each time. The same primes always come out.
Press Set to begin.
Watch trial division break any number into its prime building blocks. The algorithm divides by the smallest prime factor at each step until only 1 remains. The result is always unique — that's the Fundamental Theorem of Arithmetic in action.
Run the sieve and watch each prime cross off its multiples in waves. Whatever survives is prime.
One of the oldest algorithms in mathematics (circa 240 BC). Starting from 2, cross off all multiples of each prime. What remains are the primes. Watch the beautiful wave patterns emerge as composites are eliminated.
The integers wind outward in a spiral with the primes lit up. Look for the diagonal lines where primes cluster.
Each dot is an integer spiraling outward from the center. Amber dots are primes — notice the diagonal alignments.
Discovered by Stanislaw Ulam while doodling in a lecture: write integers in a spiral and highlight the primes. Unexpectedly, primes cluster along diagonal lines. This mystery — why diagonals? — hints at deep patterns in prime distribution that motivate the rest of this module.
Spot a mistake or have an idea?