Formulas for Primes

Prev: Floating-Point

Sections

  • 18-1 Introduction
  • 18-2 Willans’s Formulas
  • 18-3 Wormell’s Formula
  • 18-4 Formulas for Other Difficult Functions

Problems

  1. Prove that for any non-constant polynomial with integral coefficients, is composite for an infinite number of values of .

    Hint: if , consider , where is an integer greater than 1.

  2. Prove Wilson’s theorem: an integer is prime if and only if

    Hint: to show that if is prime, then , group the terms of the factorial in pairs such that . Use Theorem MI of Section 10-16 on page 240.

  3. Show that if is a composite integer greater than 4, then

  4. Calculate an estimate of the value of that satisfies Mills’s theorem, and in the process give an informal proof of the theorem. Assume that for there exists a prime between and . This depends upon the Riemann Hypothesis, although it has been proved independent of RH for sufficiently large .

  5. Consider the set of numbers of the form described in the book, where and are integers. Show that 2 and 3 are primes in this set, that is, they cannot be decomposed into factors in the set unless one of the factors is , a unit. Continue the exercise from the book’s final sentence.