ArticleslgStudy

mathematics

Prime number

Prime number is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Prime number rather than just read about it. In short: A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number.

Prime number — main illustration
Prime number — illustration

Key takeaways

  • Prime number belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Prime number to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Prime number from memory before moving on to harder problems.

Reference excerpt

A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways of writing it as a product, 1 × 5 or 5 × 1, involve 5 itself. However, 4 is composite because it is a product (2 × 2) in which both numbers are smaller than 4. Primes are central in number theory because of the fundamental theorem of arithmetic: every natural number greater than 1 is either a prime itself or can be factorized as a product of primes that is unique up to their order. The property of being prime is called primality. A simple but slow method of checking the primality of a given number ⁠ n {\displaystyle n} ⁠, called trial division, tests whether ⁠ n {\displaystyle n} ⁠ is a multiple of any integer between 2 and ⁠ n {\displaystyle {\sqrt {n}}} ⁠. Faster algorithms include the Miller–Rabin primality test, which is fast but has a small chance of error, and the AKS primality test, which always produces the correct answer in polynomial time but is too slow to be practical. Particularly fast methods are available for numbers of special forms, such as Mersenne numbers, and these have been used to find large prime numbers. There are infinitely many primes, as demonstrated by Euclid around 300 BC. No known simple formula separates prime numbers from composite numbers. However, the distribution of primes within the natural numbers in the large can be statistically modelled. The first result in that direction is the prime number theorem, proven at the end of the 19th century, which says roughly that the probability of a randomly chosen large number being prime is inversely proportional to its number of digits, that is, to its logarithm. Several historical questions regarding prime numbers are still unsolved. These include Goldbach's conjecture, that every even integer greater than 2 can be expressed as the sum of two primes, and the twin prime conjecture, that there are infinitely many pairs of primes that differ by two. Such questions spurred the development of various branches of number theory, focusing on analytic or algebraic aspects of numbers. Primes are used in several routines in information technology, such as public-key cryptography, which relies on the difficulty of factoring large numbers into their prime factors. In abstract algebra, objects that behave in a generalized way like prime numbers include prime elements and prime ideals.

Definition and examples

A natural number (1, 2, 3, 4, 5, 6, etc.) is called a prime number (or a prime) if it is greater than 1 and cannot be written as the product of two smaller natural numbers. The numbers greater than 1 that are not prime are called composite numbers. In other words, ⁠ n {\displaystyle n} ⁠ is prime if ⁠ n {\displaystyle n} ⁠ items cannot be divided up into smaller equal-size groups of more than one item, or if it is not possible to arrange ⁠ n {\displaystyle n} ⁠ dots into a rectangular grid that is more than one dot wide and more than one dot high. For example, among the numbers 1 through 6, the numbers 2, 3, and 5 are the prime numbers, as there are no other numbers that divide them evenly (without a remainder). 1 is not prime, as it is specifically excluded in the definition. 4 = 2 × 2 and 6 = 2 × 3 are both composite.

The divisors of a natural number ⁠ n {\displaystyle n} ⁠ are the natural numbers that divide ⁠ n {\displaystyle n} ⁠ evenly. Every natural number has both 1 and itself as a divisor. If it has any other divisor, it cannot be prime. This leads to an equivalent definition of prime numbers: they are the numbers with exactly two positive divisors. Those two are 1 and the number itself. As 1 has only one divisor, itself, it is not prime by this definition. Yet another way to express the same thing is that a number ⁠ n {\displaystyle n} ⁠ is prime if it is greater than one and if none of the numbers 2 , 3 , … , n − 1 {\displaystyle 2,3,\dots ,n-1} divides ⁠ n {\displaystyle n} ⁠ evenly. The first 25 prime numbers (all the prime numbers less than 100) are:

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97 (sequence A000040 in the OEIS). No even number ⁠ n {\displaystyle n} ⁠ greater than 2 is prime because any such number can be expressed as the product ⁠ 2 × n / 2 {\displaystyle 2\times n/2} ⁠. Therefore, every prime number other than 2 is an odd number, and is called an odd prime. Similarly, when written in the usual decimal system, all prime numbers larger than 5 end in 1, 3, 7, or 9. The numbers that end with other digits are all composite: decimal numbers that end in 0, 2, 4, 6, or 8 are even, and decimal numbers that end in 0 or 5 are divisible by 5. The set of all primes is sometimes denoted by P {\displaystyle \mathbf {P} } (a boldface capital P) or by P {\displaystyle \mathbb {P} } (a blackboard bold capital P).

History

… excerpt ends here. Continue reading the full article.

Illustrations

Prime number: Composite numbers can be arranged into rectangles but prime numbers cannot.
Composite numbers can be arranged into rectangles but prime numbers cannot.
Prime number: Demonstration, with Cuisenaire rods, that 7 is prime, because none of 2, 3, 4, 5, or 6 divide it evenly
Demonstration, with Cuisenaire rods, that 7 is prime, because none of 2, 3, 4, 5, or 6 divide it evenly
Prime number: The Rhind Mathematical Papyrus
The Rhind Mathematical Papyrus
Prime number: The relative error of 
  
    
      
        
          
            
              n
              
                log
                ⁡
                n
              
            
          
        
      
    
    {\displaystyle {\tfrac {n}{\log n}}}
  
 and the logarithmic integral 
  
    
      
        Li
        ⁡
        (
        n
        )
      
    
    {\displaystyle \operatorname {Li} (n)}
  
 as approximations to the prime-counting function. Both relative errors decrease to zero as ⁠
  
    
      
        n
      
    
    {\displaystyle n}
  
⁠ grows, but the convergence to zero is much more rapid for the logarithmic integral.
The relative error of n log ⁡ n {\displaystyle {\tfrac {n}{\log n}}} and the logarithmic integral Li ⁡ ( n ) {\displaystyle \operatorname {Li} (n)} as approximations to the prime-counting function. Both relative errors decrease to zero as ⁠ n {\displaystyle n} ⁠ grows, but the convergence to zero is much more rapid for the logarithmic integral.
Prime number illustration

Worked examples

Example 1 — a first encounter with Prime number

Start with the simplest possible case. Write down what Prime number claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Prime number before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Prime number ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Prime number

In research
Prime number appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Prime number in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Prime number is common in secondary-school and first-year university syllabi. It links to neighbouring topics Integer sequences, Prime numbers, so understanding it makes those chapters shorter.
In everyday life
Look for Prime number outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Prime number in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Prime number means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Prime number out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Prime number in simple terms?

A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number.

Why does Prime number matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Prime number?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Prime number.

Tags

  • Integer sequences
  • Prime numbers

Keep exploring