Big Maths Ideas · Beta

Prime patterns

Compare a number grid and an Ulam spiral, then investigate the highlighted primes.

Select a numbered cell. Blue cells are prime in both arrangements.

prime: exactly two positive divisors\text{prime: exactly two positive divisors}
Select a numbered cell. Blue cells are prime in both arrangements.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169

Scroll the diagram sideways to see every label.

41 is prime.

Selected number
41
Positive divisors
1, 41
The idea behind the experiment

An Ulam spiral arranges the positive integers on a square spiral and marks primes. Diagonal patterns can be striking, but a finite pattern does not guarantee infinitely many prime values along a line. Changing the layout never changes whether a number is prime.

Wolfram’s prime spiral reference
Predict, test and explain

Step 1 of 3

Predict

Is 1 a prime number?

InvestigateCompare the grid and spiral. Do the same numbers remain prime?

Explore and compare

Choose the investigation above. Predict what will change before you move a control.

Try it in the simulation. Change one thing at a time.

Notes and saved values stay in this tab. They disappear when you reload.

Hints, self-check and connections
Try a self-check

Fixed values, separate from the diagram controls.

Is 1 a prime number?

positive divisors of 1\text{positive divisors of }1

Hint

Test positive divisors.

Reveal answer

1 has only one positive divisor. A prime has exactly two.

{1}\{1\}

Build an explanation

Hint 1

Test positive divisors.

Hint 2

A prime is greater than 1.

Hint 3

A visual pattern is not a guarantee that every later number is prime.

Worked example

This example uses fixed values, separate from the diagram controls.

Decide whether 9 is prime.

  1. 9 is divisible by 1 and 9.
  2. It is also divisible by 3.
  3. Having more than two divisors makes it composite.

Answer: 9 is composite: divisors 1, 3, 9.

Connect this idea

Watch out: Being indivisible by smaller positive integers is not enough to make 1 prime.