ArticleslgStudy

mathematics

Wilson prime

Wilson prime 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 Wilson prime rather than just read about it. In short: In number theory, a Wilson prime is a prime number p such that p2 divides (p−1)!+1, where "!" denotes the factorial function; compare this with Wilson's theorem, which states that every prime p divides (p−1)!+1. Both are named for 18th-century English mathematician John Wilson; in 1770, Edward Waring credited the theorem to Wilson, although it had been stated centuries earlier by Ibn al-Haytham.

Key takeaways

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

Reference excerpt

In number theory, a Wilson prime is a prime number p such that p2 divides (p−1)!+1, where "!" denotes the factorial function; compare this with Wilson's theorem, which states that every prime p divides (p−1)!+1. Both are named for 18th-century English mathematician John Wilson; in 1770, Edward Waring credited the theorem to Wilson, although it had been stated centuries earlier by Ibn al-Haytham. The only known Wilson primes are 5, 13, and 563 (sequence A007540 in the OEIS). Costa et al. write that "the case p=5 is trivial", and credit the observation that 13 is a Wilson prime to Mathews (1892). Early work on these numbers included searches by N. G. W. H. Beeger and Emma Lehmer, but 563 was not discovered until the early 1950s, when computer searches could be applied to the problem. If any others exist, they must be greater than 2 × 1013. It has been conjectured that infinitely many Wilson primes exist, and that the number of Wilson primes in an interval [x,y] is about log⁡logxy. Several computer searches have been done in the hope of finding new Wilson primes. The Ibercivis distributed computing project includes a search for Wilson primes. Another search was coordinated at the Great Internet Mersenne Prime Search forum.

Generalizations

Wilson primes of order n Wilson's theorem can be expressed in general as (n−1)!(p−n)!≡(−1)n modp for every integer n≥1 and prime p≥n. Generalized Wilson primes of order n are the primes p such that p2 divides (n−1)!(p−n)!−(−1)n. It was conjectured that for every natural number n, there are infinitely many Wilson primes of order n. The smallest generalized Wilson primes of order n are:

Near-Wilson primes

A prime p satisfying the congruence (p−1)!≡−1+Bp (mod⁡p2) with small |B| can be called a near-Wilson prime. Near-Wilson primes with B=0 are bona fide Wilson primes. The table on the right lists all such primes with |B|≤100 from 106 up to 4×1011.

Wilson numbers A Wilson number is a natural number n such that W(n)≡0 (mod⁡n2), where W(n)=±1+∏gcd⁡(k,n)=11≤k≤nk,and where the ±1 term is positive if and only if n has a primitive root and negative otherwise. For every natural number n, W(n) is divisible by n, and the quotients (called generalized Wilson quotients) are listed in (sequence A157249 in the OEIS). The Wilson numbers are

If a Wilson number n is prime, then n is a Wilson prime. There are 13 Wilson numbers up to 5×108.

See also PrimeGrid Table of congruences Wall–Sun–Sun prime Wieferich prime Wolstenholme prime

References

Further reading Crandall, Richard E.; Pomerance, Carl (2001). Prime Numbers: A Computational Perspective. Springer-Verlag. p. 29. ISBN 978-0-387-94777-8. Pearson, Erna H. (1963). "On the Congruences (p − 1)! ≡ −1 and 2p−1 ≡ 1 (mod p2)" (PDF). Math. Comput. 17: 194–195.

External links The Prime Glossary: Wilson prime Weisstein, Eric W. "Wilson prime". MathWorld. Status of the search for Wilson primes

Worked examples

Example 1 — a first encounter with Wilson prime

Start with the simplest possible case. Write down what Wilson prime 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 Wilson prime 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 Wilson prime 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 Wilson prime

In research
Wilson prime 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 Wilson prime 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
Wilson prime is common in secondary-school and first-year university syllabi. It links to neighbouring topics Classes of prime numbers, Factorial and binomial topics, Unsolved problems in number theory, so understanding it makes those chapters shorter.
In everyday life
Look for Wilson prime 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.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Wilson prime” →

How to study Wilson prime in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Wilson prime 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 Wilson prime out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Wilson prime in simple terms?

In number theory, a Wilson prime is a prime number p such that p2 divides (p−1)!+1, where "!" denotes the factorial function; compare this with Wilson's theorem, which states that every prime p divides (p−1)!+1. Both are named for 18th-century English mathematician John Wilson; in 1770, Edward Wari…

Why does Wilson prime 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 Wilson prime?

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 Wilson prime.

Tags

  • Classes of prime numbers
  • Factorial and binomial topics
  • Unsolved problems in number theory

Keep exploring