Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Factors and multiples0/7
  • Fractions0/7
  • Decimals0/6
  • Percentages0/6
  • Algebra0/7
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
∣\mid∣Maths, module 1: Factors and multiples, lesson 3 of 7

Prime and composite numbers

Primes have exactly two factors. Sieve them out by hand and see why there is no largest prime.

9 minute read3 things to try5 questionsFree

A prime number has exactly two factors: 1 and itself. 2, 3, 5, 7, 11 and 13 are prime. A whole number above 1 that is not prime is composite: it has at least one more factor. 1 is neither prime nor composite, because it has only one factor.

Try it

Which of these is prime?

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 5 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • A prime has exactly two factors; 1 is not prime.
  • To test nnn, try only primes up to n\sqrt{n}n​.
  • There are infinitely many primes (Euclid’s proof).

More in Factors and multiples

  1. 1What factors are
  2. 2Multiples
  3. 3Prime and composite numbers
  4. 4Prime factor trees
  5. 5Divisibility tests
  6. 6Highest common factor
  7. 7Lowest common multiple