130
Calculus and Prime Numbers Shahriar Shahriari Department of Mathematics Pomona College Claremont, CA 91711 December 8, 2010

Calculus and Prime Numbers

Embed Size (px)

Citation preview

Page 1: Calculus and Prime Numbers

Calculus and Prime Numbers

Shahriar Shahriari

Department of MathematicsPomona College

Claremont, CA 91711

December 8, 2010

Page 2: Calculus and Prime Numbers

The sequence of primes

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, . . .

is mysterious, haphazard, and important.

What can we say about them, and do techniques from calculushelp at all?

Page 3: Calculus and Prime Numbers

The sequence of primes

2, 3, 5,

7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, . . .

is mysterious, haphazard, and important.

What can we say about them, and do techniques from calculushelp at all?

Page 4: Calculus and Prime Numbers

The sequence of primes

2, 3, 5, 7, 11, 13, 17, 19,

23, 29, 31, 37, 41, 43, 47, . . .

is mysterious, haphazard, and important.

What can we say about them, and do techniques from calculushelp at all?

Page 5: Calculus and Prime Numbers

The sequence of primes

2, 3, 5, 7, 11, 13, 17, 19, 23,

29, 31, 37, 41, 43, 47, . . .

is mysterious, haphazard, and important.

What can we say about them, and do techniques from calculushelp at all?

Page 6: Calculus and Prime Numbers

The sequence of primes

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31,

37, 41, 43, 47, . . .

is mysterious, haphazard, and important.

What can we say about them, and do techniques from calculushelp at all?

Page 7: Calculus and Prime Numbers

The sequence of primes

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41,

43, 47, . . .

is mysterious, haphazard, and important.

What can we say about them, and do techniques from calculushelp at all?

Page 8: Calculus and Prime Numbers

The sequence of primes

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, . . .

is mysterious, haphazard, and important.

What can we say about them, and do techniques from calculushelp at all?

Page 9: Calculus and Prime Numbers

The sequence of primes

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, . . .

is mysterious, haphazard, and important.

What can we say about them, and do techniques from calculushelp at all?

Page 10: Calculus and Prime Numbers

The sequence of primes

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, . . .

is mysterious, haphazard, and important.

What can we say about them, and do techniques from calculushelp at all?

Page 11: Calculus and Prime Numbers

QuestionAre there any nice formulas for finding primes?

Page 12: Calculus and Prime Numbers

Fermat (1601–1661)

Definition (Fermat Numbers)

Fn = 2(2n) + 1 for n = 0, 1, . . .

Page 13: Calculus and Prime Numbers

Fermat (1601–1661)

Definition (Fermat Numbers)

Fn = 2(2n) + 1 for n = 0, 1, . . .

Page 14: Calculus and Prime Numbers

Example

The first few Fermat numbers (2(2n) + 1) are:

F0 = 3, F1 = 5, F2 = 17, F3 = 257, F4 = 65537,

F5 = 4294967297, F6 = 18446744073709551617.

Conjecture (Fermat)

Fermat: F0, F1, F2, F3, and F4 are all prime numbers and so Fn

should always be prime.

Page 15: Calculus and Prime Numbers

Example

The first few Fermat numbers (2(2n) + 1) are:

F0 = 3, F1 = 5, F2 = 17, F3 = 257, F4 = 65537,

F5 = 4294967297, F6 = 18446744073709551617.

Conjecture (Fermat)

Fermat: F0, F1, F2, F3, and F4 are all prime numbers and so Fn

should always be prime.

Page 16: Calculus and Prime Numbers

Unfortunately, for Fermat, no other Fermat numbers have beenfound to be primes.

Example (Euler)

In 1732, Leonhard Euler (1707–1783) showed that

641 divides F5 = 4,294,967,297.

Question

• Are there any other Fermat numbers that are prime?

• Is the number of Fermat primes finite?

• Is F33 prime or composite?

All are open problems.

Page 17: Calculus and Prime Numbers

Unfortunately, for Fermat, no other Fermat numbers have beenfound to be primes.

Example (Euler)

In 1732, Leonhard Euler (1707–1783) showed that

641 divides F5 = 4,294,967,297.

Question

• Are there any other Fermat numbers that are prime?

• Is the number of Fermat primes finite?

• Is F33 prime or composite?

All are open problems.

Page 18: Calculus and Prime Numbers

Unfortunately, for Fermat, no other Fermat numbers have beenfound to be primes.

Example (Euler)

In 1732, Leonhard Euler (1707–1783) showed that

641 divides F5 = 4,294,967,297.

Question

• Are there any other Fermat numbers that are prime?

• Is the number of Fermat primes finite?

• Is F33 prime or composite?

All are open problems.

Page 19: Calculus and Prime Numbers

Unfortunately, for Fermat, no other Fermat numbers have beenfound to be primes.

Example (Euler)

In 1732, Leonhard Euler (1707–1783) showed that

641 divides F5 = 4,294,967,297.

Question

• Are there any other Fermat numbers that are prime?

• Is the number of Fermat primes finite?

• Is F33 prime or composite?

All are open problems.

Page 20: Calculus and Prime Numbers

Unfortunately, for Fermat, no other Fermat numbers have beenfound to be primes.

Example (Euler)

In 1732, Leonhard Euler (1707–1783) showed that

641 divides F5 = 4,294,967,297.

Question

• Are there any other Fermat numbers that are prime?

• Is the number of Fermat primes finite?

• Is F33 prime or composite?

All are open problems.

Page 21: Calculus and Prime Numbers

Unfortunately, for Fermat, no other Fermat numbers have beenfound to be primes.

Example (Euler)

In 1732, Leonhard Euler (1707–1783) showed that

641 divides F5 = 4,294,967,297.

Question

• Are there any other Fermat numbers that are prime?

• Is the number of Fermat primes finite?

• Is F33 prime or composite?

All are open problems.

Page 22: Calculus and Prime Numbers

Latest results

On March 27, 2010, Michael Vang of USA discovered the sixthknown factor of the F12:

17353230210429594579133099699123162989482444520899×215+1.

The previously known factors of F12 had been discovered in 1877,1903, 1903, 1974 and 1986, respectively.

On November 20, 2010 Alexey V. Komkov found the following newfactor of the Fermat number F299:

272392805475× 2304 + 1.

Page 23: Calculus and Prime Numbers

Latest results

On March 27, 2010, Michael Vang of USA discovered the sixthknown factor of the F12:

17353230210429594579133099699123162989482444520899×215+1.

The previously known factors of F12 had been discovered in 1877,1903, 1903, 1974 and 1986, respectively.

On November 20, 2010 Alexey V. Komkov found the following newfactor of the Fermat number F299:

272392805475× 2304 + 1.

Page 24: Calculus and Prime Numbers

Latest results

On March 27, 2010, Michael Vang of USA discovered the sixthknown factor of the F12:

17353230210429594579133099699123162989482444520899×215+1.

The previously known factors of F12 had been discovered in 1877,1903, 1903, 1974 and 1986, respectively.

On November 20, 2010 Alexey V. Komkov found the following newfactor of the Fermat number F299:

272392805475× 2304 + 1.

Page 25: Calculus and Prime Numbers

Definition (Mersenne Numbers)

Father Marin Mersenne (1588–1648) suggested that the numbers

Mp = 2p − 1 where p is a prime,

called Mersenne numbers, may generate many primes.

Through December 2010, 47 Mersenne primes have been found.Mp is a prime for the following values of p:

2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607,1279, 2203, 2281, 3217, 4253, 4423, 9689, 9941, 11213,19937, 21701, 23209, 44497, 86243, 110503, 132049,216091, 756839, 859433, 1257787, 1398269, 2976221,3021377, 6972593, 13466917, 20996011, 24036583,25964951, 30402457, 32582657, 37156667, 42643801,43112609.

Page 26: Calculus and Prime Numbers

Definition (Mersenne Numbers)

Father Marin Mersenne (1588–1648) suggested that the numbers

Mp = 2p − 1 where p is a prime,

called Mersenne numbers, may generate many primes.

Through December 2010, 47 Mersenne primes have been found

.Mp is a prime for the following values of p:

2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607,1279, 2203, 2281, 3217, 4253, 4423, 9689, 9941, 11213,19937, 21701, 23209, 44497, 86243, 110503, 132049,216091, 756839, 859433, 1257787, 1398269, 2976221,3021377, 6972593, 13466917, 20996011, 24036583,25964951, 30402457, 32582657, 37156667, 42643801,43112609.

Page 27: Calculus and Prime Numbers

Definition (Mersenne Numbers)

Father Marin Mersenne (1588–1648) suggested that the numbers

Mp = 2p − 1 where p is a prime,

called Mersenne numbers, may generate many primes.

Through December 2010, 47 Mersenne primes have been found.Mp is a prime for the following values of p:

2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607,1279, 2203, 2281, 3217, 4253, 4423, 9689, 9941, 11213,19937, 21701, 23209, 44497, 86243, 110503, 132049,216091, 756839, 859433, 1257787, 1398269, 2976221,3021377, 6972593, 13466917, 20996011, 24036583,25964951, 30402457, 32582657, 37156667, 42643801,43112609.

Page 28: Calculus and Prime Numbers

As of December 2010, the largest prime known

was the Mersenneprime

M43,112,609 = 243112609 − 1.

This gigantic prime has 12,978,189 digits, found on August 23,2008 by the computers of the UCLA’s Math Dept as part of theGreat Internet Mersenne Prime Search (GIMPS). Awarded a$100,000 prize for being the first prime with more than 10 milliondigits.On April 12th, 2009, the 47th known Mersenne prime,M42,643,801 = 242,643,801 − 1, a 12,837,064 digit number was foundby Odd Magnar Strindmo from Melhus, Norway! Second largestknown prime, 141,125 digits smaller than the largest prime.See http://www.mersenne.org/ to join the hunt and to see thelatest records.

Page 29: Calculus and Prime Numbers

As of December 2010, the largest prime known was the Mersenneprime

M43,112,609 = 243112609 − 1.

This gigantic prime has 12,978,189 digits, found on August 23,2008 by the computers of the UCLA’s Math Dept as part of theGreat Internet Mersenne Prime Search (GIMPS). Awarded a$100,000 prize for being the first prime with more than 10 milliondigits.On April 12th, 2009, the 47th known Mersenne prime,M42,643,801 = 242,643,801 − 1, a 12,837,064 digit number was foundby Odd Magnar Strindmo from Melhus, Norway! Second largestknown prime, 141,125 digits smaller than the largest prime.See http://www.mersenne.org/ to join the hunt and to see thelatest records.

Page 30: Calculus and Prime Numbers

As of December 2010, the largest prime known was the Mersenneprime

M43,112,609 = 243112609 − 1.

This gigantic prime has 12,978,189 digits,

found on August 23,2008 by the computers of the UCLA’s Math Dept as part of theGreat Internet Mersenne Prime Search (GIMPS). Awarded a$100,000 prize for being the first prime with more than 10 milliondigits.On April 12th, 2009, the 47th known Mersenne prime,M42,643,801 = 242,643,801 − 1, a 12,837,064 digit number was foundby Odd Magnar Strindmo from Melhus, Norway! Second largestknown prime, 141,125 digits smaller than the largest prime.See http://www.mersenne.org/ to join the hunt and to see thelatest records.

Page 31: Calculus and Prime Numbers

As of December 2010, the largest prime known was the Mersenneprime

M43,112,609 = 243112609 − 1.

This gigantic prime has 12,978,189 digits, found on August 23,2008 by the computers of the UCLA’s Math Dept as part of theGreat Internet Mersenne Prime Search (GIMPS).

Awarded a$100,000 prize for being the first prime with more than 10 milliondigits.On April 12th, 2009, the 47th known Mersenne prime,M42,643,801 = 242,643,801 − 1, a 12,837,064 digit number was foundby Odd Magnar Strindmo from Melhus, Norway! Second largestknown prime, 141,125 digits smaller than the largest prime.See http://www.mersenne.org/ to join the hunt and to see thelatest records.

Page 32: Calculus and Prime Numbers

As of December 2010, the largest prime known was the Mersenneprime

M43,112,609 = 243112609 − 1.

This gigantic prime has 12,978,189 digits, found on August 23,2008 by the computers of the UCLA’s Math Dept as part of theGreat Internet Mersenne Prime Search (GIMPS). Awarded a$100,000 prize for being the first prime with more than 10 milliondigits.

On April 12th, 2009, the 47th known Mersenne prime,M42,643,801 = 242,643,801 − 1, a 12,837,064 digit number was foundby Odd Magnar Strindmo from Melhus, Norway! Second largestknown prime, 141,125 digits smaller than the largest prime.See http://www.mersenne.org/ to join the hunt and to see thelatest records.

Page 33: Calculus and Prime Numbers

As of December 2010, the largest prime known was the Mersenneprime

M43,112,609 = 243112609 − 1.

This gigantic prime has 12,978,189 digits, found on August 23,2008 by the computers of the UCLA’s Math Dept as part of theGreat Internet Mersenne Prime Search (GIMPS). Awarded a$100,000 prize for being the first prime with more than 10 milliondigits.On April 12th, 2009

, the 47th known Mersenne prime,M42,643,801 = 242,643,801 − 1, a 12,837,064 digit number was foundby Odd Magnar Strindmo from Melhus, Norway! Second largestknown prime, 141,125 digits smaller than the largest prime.See http://www.mersenne.org/ to join the hunt and to see thelatest records.

Page 34: Calculus and Prime Numbers

As of December 2010, the largest prime known was the Mersenneprime

M43,112,609 = 243112609 − 1.

This gigantic prime has 12,978,189 digits, found on August 23,2008 by the computers of the UCLA’s Math Dept as part of theGreat Internet Mersenne Prime Search (GIMPS). Awarded a$100,000 prize for being the first prime with more than 10 milliondigits.On April 12th, 2009, the 47th known Mersenne prime,M42,643,801 = 242,643,801 − 1, a 12,837,064 digit number was foundby Odd Magnar Strindmo from Melhus, Norway! Second largestknown prime, 141,125 digits smaller than the largest prime.

See http://www.mersenne.org/ to join the hunt and to see thelatest records.

Page 35: Calculus and Prime Numbers

As of December 2010, the largest prime known was the Mersenneprime

M43,112,609 = 243112609 − 1.

This gigantic prime has 12,978,189 digits, found on August 23,2008 by the computers of the UCLA’s Math Dept as part of theGreat Internet Mersenne Prime Search (GIMPS). Awarded a$100,000 prize for being the first prime with more than 10 milliondigits.On April 12th, 2009, the 47th known Mersenne prime,M42,643,801 = 242,643,801 − 1, a 12,837,064 digit number was foundby Odd Magnar Strindmo from Melhus, Norway! Second largestknown prime, 141,125 digits smaller than the largest prime.See http://www.mersenne.org/ to join the hunt and to see thelatest records.

Page 36: Calculus and Prime Numbers

Why do Mersenne primes hold the record for the largest primes?

The reason is the following Theorem that gives a criterion forMersenne primes:

Theorem (Lucas-Lehmer Test)

p a prime greater than two. Construct the sequence:

4, 14, 194, 37634, 1416317954, 2005956546822746114, . . .

where the first term is r1 = 4 and rn = r2n−1 − 2.

Now Mp = 2p − 1 is a prime if and only if Mp is a divisor of rp−1,the (p − 1)st term of the above sequence.

Page 37: Calculus and Prime Numbers

Why do Mersenne primes hold the record for the largest primes?The reason is the following Theorem that gives a criterion forMersenne primes:

Theorem (Lucas-Lehmer Test)

p a prime greater than two. Construct the sequence:

4, 14, 194, 37634, 1416317954, 2005956546822746114, . . .

where the first term is r1 = 4 and rn = r2n−1 − 2.

Now Mp = 2p − 1 is a prime if and only if Mp is a divisor of rp−1,the (p − 1)st term of the above sequence.

Page 38: Calculus and Prime Numbers

Why do Mersenne primes hold the record for the largest primes?The reason is the following Theorem that gives a criterion forMersenne primes:

Theorem (Lucas-Lehmer Test)

p a prime greater than two. Construct the sequence:

4, 14, 194, 37634, 1416317954, 2005956546822746114, . . .

where the first term is r1 = 4 and rn = r2n−1 − 2.

Now Mp = 2p − 1 is a prime if and only if Mp is a divisor of rp−1,the (p − 1)st term of the above sequence.

Page 39: Calculus and Prime Numbers

Why do Mersenne primes hold the record for the largest primes?The reason is the following Theorem that gives a criterion forMersenne primes:

Theorem (Lucas-Lehmer Test)

p a prime greater than two. Construct the sequence:

4, 14, 194, 37634, 1416317954, 2005956546822746114, . . .

where the first term is r1 = 4 and rn = r2n−1 − 2.

Now Mp = 2p − 1 is a prime if and only if Mp is a divisor of rp−1,the (p − 1)st term of the above sequence.

Page 40: Calculus and Prime Numbers

F (a, b, c, d, e, f , g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) =

[k + 2][1− (wz + h + j − q)2 − (2n + p + q + z − e)2

−(y2(a2 − 1) + 1− x2)2 − ((e4 + 2e3)(a + 1)2 + 1− o2)2

−(16(k + 1)3(k + 2)(n + 1)2 + 1− f 2)2

−“((a + u2(u2 − a))2 − 1)(n + 4dy)2 + 1− (x + cu)2

”2

−(ai + k + 1− l − i)2 − (16r2y4(a2 − 1) + 1− u2)2

−((g(k + 2) + k + 1)(h + j) + h − z)2

−(p − m + l(a − n − 1) + b(2a(n + 1)− n(n + 2)− 2))2

−(z − pm + pl(a − p) + t(2ap − p2 − 1))2

−(q − x + y(a − p − 1) + s(2a(p + 1)− p(p + 2)− 2))2

−(l2(a2 − 1) + 1− m2)2 − (n + l + v − y)2].

Theoremp is a prime if and only if p is a positive value of the polynomial F .

Page 41: Calculus and Prime Numbers

F (a, b, c, d, e, f , g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) =

[k + 2][1− (wz + h + j − q)2 − (2n + p + q + z − e)2

−(y2(a2 − 1) + 1− x2)2 − ((e4 + 2e3)(a + 1)2 + 1− o2)2

−(16(k + 1)3(k + 2)(n + 1)2 + 1− f 2)2

−“((a + u2(u2 − a))2 − 1)(n + 4dy)2 + 1− (x + cu)2

”2

−(ai + k + 1− l − i)2 − (16r2y4(a2 − 1) + 1− u2)2

−((g(k + 2) + k + 1)(h + j) + h − z)2

−(p − m + l(a − n − 1) + b(2a(n + 1)− n(n + 2)− 2))2

−(z − pm + pl(a − p) + t(2ap − p2 − 1))2

−(q − x + y(a − p − 1) + s(2a(p + 1)− p(p + 2)− 2))2

−(l2(a2 − 1) + 1− m2)2 − (n + l + v − y)2].

Theoremp is a prime if and only if p is a positive value of the polynomial F .

Page 42: Calculus and Prime Numbers

QuestionHow are primes distributed?

Prime DesertsCan you find 1,000,000 consecutive composite numbers?

47! + 2, 47! + 3, 47! + 4, . . . , 47! + 47

is a sequence of 46 consecutive composite numbers.So, there are prime deserts of arbitrary length.Does it seem as if the primes are further and further apart as wego forward on the number line?

Page 43: Calculus and Prime Numbers

QuestionHow are primes distributed?

Prime DesertsCan you find 1,000,000 consecutive composite numbers?

47! + 2, 47! + 3, 47! + 4, . . . , 47! + 47

is a sequence of 46 consecutive composite numbers.So, there are prime deserts of arbitrary length.Does it seem as if the primes are further and further apart as wego forward on the number line?

Page 44: Calculus and Prime Numbers

QuestionHow are primes distributed?

Prime DesertsCan you find 1,000,000 consecutive composite numbers?

47! + 2,

47! + 3, 47! + 4, . . . , 47! + 47

is a sequence of 46 consecutive composite numbers.So, there are prime deserts of arbitrary length.Does it seem as if the primes are further and further apart as wego forward on the number line?

Page 45: Calculus and Prime Numbers

QuestionHow are primes distributed?

Prime DesertsCan you find 1,000,000 consecutive composite numbers?

47! + 2, 47! + 3,

47! + 4, . . . , 47! + 47

is a sequence of 46 consecutive composite numbers.So, there are prime deserts of arbitrary length.Does it seem as if the primes are further and further apart as wego forward on the number line?

Page 46: Calculus and Prime Numbers

QuestionHow are primes distributed?

Prime DesertsCan you find 1,000,000 consecutive composite numbers?

47! + 2, 47! + 3, 47! + 4,

. . . , 47! + 47

is a sequence of 46 consecutive composite numbers.So, there are prime deserts of arbitrary length.Does it seem as if the primes are further and further apart as wego forward on the number line?

Page 47: Calculus and Prime Numbers

QuestionHow are primes distributed?

Prime DesertsCan you find 1,000,000 consecutive composite numbers?

47! + 2, 47! + 3, 47! + 4, . . . , 47! + 47

is a sequence of 46 consecutive composite numbers.

So, there are prime deserts of arbitrary length.Does it seem as if the primes are further and further apart as wego forward on the number line?

Page 48: Calculus and Prime Numbers

QuestionHow are primes distributed?

Prime DesertsCan you find 1,000,000 consecutive composite numbers?

47! + 2, 47! + 3, 47! + 4, . . . , 47! + 47

is a sequence of 46 consecutive composite numbers.So, there are prime deserts of arbitrary length.

Does it seem as if the primes are further and further apart as wego forward on the number line?

Page 49: Calculus and Prime Numbers

QuestionHow are primes distributed?

Prime DesertsCan you find 1,000,000 consecutive composite numbers?

47! + 2, 47! + 3, 47! + 4, . . . , 47! + 47

is a sequence of 46 consecutive composite numbers.So, there are prime deserts of arbitrary length.Does it seem as if the primes are further and further apart as wego forward on the number line?

Page 50: Calculus and Prime Numbers

Twin Primes

{3, 5},

{11, 13}, {41, 43}

are examples of “twin primes” as are

{101, 103}, {10006427, 10006429},

and

{65516468355× 2333333 − 1 & 65516468355× 2333333 + 1}.

Could there be an infinite pair of twin primes?The twin prime conjecture says that the answer is yes.

Conjecture (Schinzel’s Conjecture)

There exists an infinite number of positive integers n such thateach of the numbers n + 1, n + 3, n + 7, n + 9, and n + 13 is aprime.

Page 51: Calculus and Prime Numbers

Twin Primes

{3, 5}, {11, 13},

{41, 43}

are examples of “twin primes” as are

{101, 103}, {10006427, 10006429},

and

{65516468355× 2333333 − 1 & 65516468355× 2333333 + 1}.

Could there be an infinite pair of twin primes?The twin prime conjecture says that the answer is yes.

Conjecture (Schinzel’s Conjecture)

There exists an infinite number of positive integers n such thateach of the numbers n + 1, n + 3, n + 7, n + 9, and n + 13 is aprime.

Page 52: Calculus and Prime Numbers

Twin Primes

{3, 5}, {11, 13}, {41, 43}

are examples of “twin primes” as are

{101, 103},

{10006427, 10006429},

and

{65516468355× 2333333 − 1 & 65516468355× 2333333 + 1}.

Could there be an infinite pair of twin primes?The twin prime conjecture says that the answer is yes.

Conjecture (Schinzel’s Conjecture)

There exists an infinite number of positive integers n such thateach of the numbers n + 1, n + 3, n + 7, n + 9, and n + 13 is aprime.

Page 53: Calculus and Prime Numbers

Twin Primes

{3, 5}, {11, 13}, {41, 43}

are examples of “twin primes” as are

{101, 103}, {10006427, 10006429},

and

{65516468355× 2333333 − 1 & 65516468355× 2333333 + 1}.

Could there be an infinite pair of twin primes?The twin prime conjecture says that the answer is yes.

Conjecture (Schinzel’s Conjecture)

There exists an infinite number of positive integers n such thateach of the numbers n + 1, n + 3, n + 7, n + 9, and n + 13 is aprime.

Page 54: Calculus and Prime Numbers

Twin Primes

{3, 5}, {11, 13}, {41, 43}

are examples of “twin primes” as are

{101, 103}, {10006427, 10006429},

and

{65516468355× 2333333 − 1 & 65516468355× 2333333 + 1}.

Could there be an infinite pair of twin primes?The twin prime conjecture says that the answer is yes.

Conjecture (Schinzel’s Conjecture)

There exists an infinite number of positive integers n such thateach of the numbers n + 1, n + 3, n + 7, n + 9, and n + 13 is aprime.

Page 55: Calculus and Prime Numbers

Twin Primes

{3, 5}, {11, 13}, {41, 43}

are examples of “twin primes” as are

{101, 103}, {10006427, 10006429},

and

{65516468355× 2333333 − 1 & 65516468355× 2333333 + 1}.

Could there be an infinite pair of twin primes?

The twin prime conjecture says that the answer is yes.

Conjecture (Schinzel’s Conjecture)

There exists an infinite number of positive integers n such thateach of the numbers n + 1, n + 3, n + 7, n + 9, and n + 13 is aprime.

Page 56: Calculus and Prime Numbers

Twin Primes

{3, 5}, {11, 13}, {41, 43}

are examples of “twin primes” as are

{101, 103}, {10006427, 10006429},

and

{65516468355× 2333333 − 1 & 65516468355× 2333333 + 1}.

Could there be an infinite pair of twin primes?The twin prime conjecture says that the answer is yes.

Conjecture (Schinzel’s Conjecture)

There exists an infinite number of positive integers n such thateach of the numbers n + 1, n + 3, n + 7, n + 9, and n + 13 is aprime.

Page 57: Calculus and Prime Numbers

Twin Primes

{3, 5}, {11, 13}, {41, 43}

are examples of “twin primes” as are

{101, 103}, {10006427, 10006429},

and

{65516468355× 2333333 − 1 & 65516468355× 2333333 + 1}.

Could there be an infinite pair of twin primes?The twin prime conjecture says that the answer is yes.

Conjecture (Schinzel’s Conjecture)

There exists an infinite number of positive integers n such thateach of the numbers n + 1, n + 3, n + 7, n + 9, and n + 13 is aprime.

Page 58: Calculus and Prime Numbers

Definitionπ(x) = the number of primes between up to and including x .

Example

π(4) = 2, π(10) = 4

π(47) = 15, π(100) = 25

Page 59: Calculus and Prime Numbers

Definitionπ(x) = the number of primes between up to and including x .

Example

π(4) = 2, π(10) = 4

π(47) = 15, π(100) = 25

Page 60: Calculus and Prime Numbers

Questionπ(x) is a discontinuous function. Can we find a smooth functionthat approximates π(x)?

Page 61: Calculus and Prime Numbers

x π(x) π(x)/x x/π(x)

10 4 .4 2.5100 25 .25 4

1000 168 .168 5.9523810000 1229 .1229 8.1367

100000 9592 .09592 10.4254106 78498 .078498 12.7392107 664579 .0664579 15.0471108 5761455 .0576146 17.3567109 50847534 .0508475 19.6666

Table: The number of primes up to 109

Page 62: Calculus and Prime Numbers

Let f (x) be a smooth function that approximates xπ(x) .

If we can find f (x) then we can approximate π(x).We notice:

f (10x) = f (x) + 2.3

When in doubt, differentiate

10f ′(10x) = f ′(x)

Assume f ′(1) = 1

get f ′(10) = 1/10

and f ′(100) = 1/100.

Page 63: Calculus and Prime Numbers

Let f (x) be a smooth function that approximates xπ(x) .

If we can find f (x) then we can approximate π(x).

We notice:

f (10x) = f (x) + 2.3

When in doubt, differentiate

10f ′(10x) = f ′(x)

Assume f ′(1) = 1

get f ′(10) = 1/10

and f ′(100) = 1/100.

Page 64: Calculus and Prime Numbers

Let f (x) be a smooth function that approximates xπ(x) .

If we can find f (x) then we can approximate π(x).We notice:

f (10x) = f (x) + 2.3

When in doubt, differentiate

10f ′(10x) = f ′(x)

Assume f ′(1) = 1

get f ′(10) = 1/10

and f ′(100) = 1/100.

Page 65: Calculus and Prime Numbers

Let f (x) be a smooth function that approximates xπ(x) .

If we can find f (x) then we can approximate π(x).We notice:

f (10x) = f (x) + 2.3

When in doubt, differentiate

10f ′(10x) = f ′(x)

Assume f ′(1) = 1

get f ′(10) = 1/10

and f ′(100) = 1/100.

Page 66: Calculus and Prime Numbers

Let f (x) be a smooth function that approximates xπ(x) .

If we can find f (x) then we can approximate π(x).We notice:

f (10x) = f (x) + 2.3

When in doubt, differentiate

10f ′(10x) = f ′(x)

Assume f ′(1) = 1

get f ′(10) = 1/10

and f ′(100) = 1/100.

Page 67: Calculus and Prime Numbers

Let f (x) be a smooth function that approximates xπ(x) .

If we can find f (x) then we can approximate π(x).We notice:

f (10x) = f (x) + 2.3

When in doubt, differentiate

10f ′(10x) = f ′(x)

Assume f ′(1) = 1

get f ′(10) = 1/10

and f ′(100) = 1/100.

Page 68: Calculus and Prime Numbers

Let f (x) be a smooth function that approximates xπ(x) .

If we can find f (x) then we can approximate π(x).We notice:

f (10x) = f (x) + 2.3

When in doubt, differentiate

10f ′(10x) = f ′(x)

Assume f ′(1) = 1

get f ′(10) = 1/10

and f ′(100) = 1/100.

Page 69: Calculus and Prime Numbers

Let f (x) be a smooth function that approximates xπ(x) .

If we can find f (x) then we can approximate π(x).We notice:

f (10x) = f (x) + 2.3

When in doubt, differentiate

10f ′(10x) = f ′(x)

Assume f ′(1) = 1

get f ′(10) = 1/10

and f ′(100) = 1/100.

Page 70: Calculus and Prime Numbers

Let f (x) be a smooth function that approximates xπ(x) .

If we can find f (x) then we can approximate π(x).We notice:

f (10x) = f (x) + 2.3

When in doubt, differentiate

10f ′(10x) = f ′(x)

Assume f ′(1) = 1

get f ′(10) = 1/10

and f ′(100) = 1/100.

Page 71: Calculus and Prime Numbers

Theoremf a differentiable function, f (10x) = f (x) + 2.3, and f ′(1) = 1,then

f ′(10n) =1

10n,

for all positive integers n.

Page 72: Calculus and Prime Numbers

Theoremf a differentiable function, f (10x) = f (x) + 2.3, and f ′(1) = 1,then

f ′(10n) =1

10n,

for all positive integers n.

Page 73: Calculus and Prime Numbers

Bigger tables can convince you that, for any a ∈ R, you want

f (ax) = f (x) + g(a),

where g(a) is a constant (depending on a).

Theoremf a differentiable function. For every a ∈ R, we havef (ax) = f (x) + g(a). Assume f ′(1) = 1, then

f ′(x) = 1/x .

DefinitionFor all x > 0, we define ln(x) by

ln(x) =

∫ x

1

1

tdt.

Page 74: Calculus and Prime Numbers

Bigger tables can convince you that, for any a ∈ R, you want

f (ax) = f (x) + g(a),

where g(a) is a constant (depending on a).

Theoremf a differentiable function. For every a ∈ R, we havef (ax) = f (x) + g(a). Assume f ′(1) = 1, then

f ′(x) = 1/x .

DefinitionFor all x > 0, we define ln(x) by

ln(x) =

∫ x

1

1

tdt.

Page 75: Calculus and Prime Numbers

Bigger tables can convince you that, for any a ∈ R, you want

f (ax) = f (x) + g(a),

where g(a) is a constant (depending on a).

Theoremf a differentiable function. For every a ∈ R, we havef (ax) = f (x) + g(a). Assume f ′(1) = 1, then

f ′(x) = 1/x .

DefinitionFor all x > 0, we define ln(x) by

ln(x) =

∫ x

1

1

tdt.

Page 76: Calculus and Prime Numbers

Bigger tables can convince you that, for any a ∈ R, you want

f (ax) = f (x) + g(a),

where g(a) is a constant (depending on a).

Theoremf a differentiable function. For every a ∈ R, we havef (ax) = f (x) + g(a). Assume f ′(1) = 1, then

f ′(x) = 1/x .

DefinitionFor all x > 0, we define ln(x) by

ln(x) =

∫ x

1

1

tdt.

Page 77: Calculus and Prime Numbers

x

π(x)≈ f (x) = ln x

⇒ π(x) ≈ x

ln x.

Theorem (The Prime Number Theorem—PNT)

Let π(x) denote the number of primes up to x then

limx→∞

π(x)

x/ ln(x)= 1.

PNT conjectured by Gauss in 1792 when he was fifteen. It wasproved by Hadamard and Poussin in 1896.

Whenever he had a few spare minutes, Gauss would find the nextso many primes. He had a list of primes up to 3 million. His listhas only about 72 mistakes!

Page 78: Calculus and Prime Numbers

x

π(x)≈ f (x) = ln x ⇒ π(x) ≈ x

ln x.

Theorem (The Prime Number Theorem—PNT)

Let π(x) denote the number of primes up to x then

limx→∞

π(x)

x/ ln(x)= 1.

PNT conjectured by Gauss in 1792 when he was fifteen. It wasproved by Hadamard and Poussin in 1896.

Whenever he had a few spare minutes, Gauss would find the nextso many primes. He had a list of primes up to 3 million. His listhas only about 72 mistakes!

Page 79: Calculus and Prime Numbers

x

π(x)≈ f (x) = ln x ⇒ π(x) ≈ x

ln x.

Theorem (The Prime Number Theorem—PNT)

Let π(x) denote the number of primes up to x then

limx→∞

π(x)

x/ ln(x)= 1.

PNT conjectured by Gauss in 1792 when he was fifteen. It wasproved by Hadamard and Poussin in 1896.

Whenever he had a few spare minutes, Gauss would find the nextso many primes. He had a list of primes up to 3 million. His listhas only about 72 mistakes!

Page 80: Calculus and Prime Numbers

x

π(x)≈ f (x) = ln x ⇒ π(x) ≈ x

ln x.

Theorem (The Prime Number Theorem—PNT)

Let π(x) denote the number of primes up to x then

limx→∞

π(x)

x/ ln(x)= 1.

PNT conjectured by Gauss in 1792 when he was fifteen. It wasproved by Hadamard and Poussin in 1896.

Whenever he had a few spare minutes, Gauss would find the nextso many primes. He had a list of primes up to 3 million. His listhas only about 72 mistakes!

Page 81: Calculus and Prime Numbers

Carl Friedrich Gauss (1777–1855)

Page 82: Calculus and Prime Numbers

Corollary

limx→∞

π(2x)

π(x)

= limx→∞

π(2x)

2x/ ln(2x)

x/ ln(x)

π(x)

2x/ ln(2x)

x/ ln(x)= 2.

A theorem in number theory (Bertrand’s postulate): there isalways a prime between n and 2n.

We have now argued that, for large enough x , there is roughly thesame number of primes between x and 2x as there are between 1and x .

Page 83: Calculus and Prime Numbers

Corollary

limx→∞

π(2x)

π(x)= lim

x→∞

π(2x)

2x/ ln(2x)

x/ ln(x)

π(x)

2x/ ln(2x)

x/ ln(x)

= 2.

A theorem in number theory (Bertrand’s postulate): there isalways a prime between n and 2n.

We have now argued that, for large enough x , there is roughly thesame number of primes between x and 2x as there are between 1and x .

Page 84: Calculus and Prime Numbers

Corollary

limx→∞

π(2x)

π(x)= lim

x→∞

π(2x)

2x/ ln(2x)

x/ ln(x)

π(x)

2x/ ln(2x)

x/ ln(x)= 2.

A theorem in number theory (Bertrand’s postulate): there isalways a prime between n and 2n.

We have now argued that, for large enough x , there is roughly thesame number of primes between x and 2x as there are between 1and x .

Page 85: Calculus and Prime Numbers

Corollary

limx→∞

π(2x)

π(x)= lim

x→∞

π(2x)

2x/ ln(2x)

x/ ln(x)

π(x)

2x/ ln(2x)

x/ ln(x)= 2.

A theorem in number theory (Bertrand’s postulate): there isalways a prime between n and 2n.

We have now argued that, for large enough x , there is roughly thesame number of primes between x and 2x as there are between 1and x .

Page 86: Calculus and Prime Numbers

Corollary

limx→∞

π(2x)

π(x)= lim

x→∞

π(2x)

2x/ ln(2x)

x/ ln(x)

π(x)

2x/ ln(2x)

x/ ln(x)= 2.

A theorem in number theory (Bertrand’s postulate): there isalways a prime between n and 2n.

We have now argued that, for large enough x , there is roughly thesame number of primes between x and 2x as there are between 1and x .

Page 87: Calculus and Prime Numbers

Corollary

limx→∞

π(2x)

π(x)= lim

x→∞

π(2x)

2x/ ln(2x)

x/ ln(x)

π(x)

2x/ ln(2x)

x/ ln(x)= 2.

A theorem in number theory (Bertrand’s postulate): there isalways a prime between n and 2n.

We have now argued that, for large enough x , there is roughly thesame number of primes between x and 2x as there are between 1and x .

Page 88: Calculus and Prime Numbers

Gauss improves PNT

Pick a random integer between 1 and n. What is the probabilitythat it will be prime?

There are n integers and π(n) of them are primes.

So the probability of getting a prime is

π(n)

n

≈ n/ ln(n)

n=

1

ln(n)

Heuristic: The “probability” that a large number x is prime is

≈ 1

ln(x)

Page 89: Calculus and Prime Numbers

Gauss improves PNT

Pick a random integer between 1 and n. What is the probabilitythat it will be prime?

There are n integers and π(n) of them are primes.

So the probability of getting a prime is

π(n)

n

≈ n/ ln(n)

n=

1

ln(n)

Heuristic: The “probability” that a large number x is prime is

≈ 1

ln(x)

Page 90: Calculus and Prime Numbers

Gauss improves PNT

Pick a random integer between 1 and n. What is the probabilitythat it will be prime?

There are n integers and π(n) of them are primes.

So the probability of getting a prime is

π(n)

n

≈ n/ ln(n)

n=

1

ln(n)

Heuristic: The “probability” that a large number x is prime is

≈ 1

ln(x)

Page 91: Calculus and Prime Numbers

Gauss improves PNT

Pick a random integer between 1 and n. What is the probabilitythat it will be prime?

There are n integers and π(n) of them are primes.

So the probability of getting a prime is

π(n)

n≈ n/ ln(n)

n=

1

ln(n)

Heuristic: The “probability” that a large number x is prime is

≈ 1

ln(x)

Page 92: Calculus and Prime Numbers

Gauss improves PNT

Pick a random integer between 1 and n. What is the probabilitythat it will be prime?

There are n integers and π(n) of them are primes.

So the probability of getting a prime is

π(n)

n≈ n/ ln(n)

n=

1

ln(n)

Heuristic: The “probability” that a large number x is prime is

≈ 1

ln(x)

Page 93: Calculus and Prime Numbers

Li(x)

n 2 3 4 . . . 46 47

Prob n prime 1 1 0 . . . 0 1

Prob n prime 1/ ln(2) 1/ ln(3) 1/ ln(4) . . . 1/ ln(46) 1/ ln(47)

π(x) ≈ 1

ln(2)+

1

ln(3)+ · · ·+ 1

ln(x)

.

.............

.............

...

.............

.............

.

.............

............

.......................

.....................

...................

...................

...................

....................

.......................

......................... ........................... .............................. ............. ................ ................... ...................... ......................... ................ ........... .............. ................. ..................... ........................ ........................... ............................... .................................. .............. ........... ........ .............. -

6

2 3 4 5 x. . . t

y

Page 94: Calculus and Prime Numbers

Li(x)

n 2 3 4 . . . 46 47

Prob n prime 1 1 0 . . . 0 1

Prob n prime

1/ ln(2) 1/ ln(3) 1/ ln(4) . . . 1/ ln(46) 1/ ln(47)

π(x) ≈ 1

ln(2)+

1

ln(3)+ · · ·+ 1

ln(x)

.

.............

.............

...

.............

.............

.

.............

............

.......................

.....................

...................

...................

...................

....................

.......................

......................... ........................... .............................. ............. ................ ................... ...................... ......................... ................ ........... .............. ................. ..................... ........................ ........................... ............................... .................................. .............. ........... ........ .............. -

6

2 3 4 5 x. . . t

y

Page 95: Calculus and Prime Numbers

Li(x)

n 2 3 4 . . . 46 47

Prob n prime 1 1 0 . . . 0 1

Prob n prime 1/ ln(2) 1/ ln(3) 1/ ln(4)

. . . 1/ ln(46) 1/ ln(47)

π(x) ≈ 1

ln(2)+

1

ln(3)+ · · ·+ 1

ln(x)

.

.............

.............

...

.............

.............

.

.............

............

.......................

.....................

...................

...................

...................

....................

.......................

......................... ........................... .............................. ............. ................ ................... ...................... ......................... ................ ........... .............. ................. ..................... ........................ ........................... ............................... .................................. .............. ........... ........ .............. -

6

2 3 4 5 x. . . t

y

Page 96: Calculus and Prime Numbers

Li(x)

n 2 3 4 . . . 46 47

Prob n prime 1 1 0 . . . 0 1

Prob n prime 1/ ln(2) 1/ ln(3) 1/ ln(4) . . . 1/ ln(46) 1/ ln(47)

π(x) ≈ 1

ln(2)+

1

ln(3)+ · · ·+ 1

ln(x)

.

.............

.............

...

.............

.............

.

.............

............

.......................

.....................

...................

...................

...................

....................

.......................

......................... ........................... .............................. ............. ................ ................... ...................... ......................... ................ ........... .............. ................. ..................... ........................ ........................... ............................... .................................. .............. ........... ........ .............. -

6

2 3 4 5 x. . . t

y

Page 97: Calculus and Prime Numbers

Li(x)

n 2 3 4 . . . 46 47

Prob n prime 1 1 0 . . . 0 1

Prob n prime 1/ ln(2) 1/ ln(3) 1/ ln(4) . . . 1/ ln(46) 1/ ln(47)

π(x) ≈ 1

ln(2)+

1

ln(3)+ · · ·+ 1

ln(x)

.

.............

.............

...

.............

.............

.

.............

............

.......................

.....................

...................

...................

...................

....................

.......................

......................... ........................... .............................. ............. ................ ................... ...................... ......................... ................ ........... .............. ................. ..................... ........................ ........................... ............................... .................................. .............. ........... ........ .............. -

6

2 3 4 5 x. . . t

y

Page 98: Calculus and Prime Numbers

Li(x)

n 2 3 4 . . . 46 47

Prob n prime 1 1 0 . . . 0 1

Prob n prime 1/ ln(2) 1/ ln(3) 1/ ln(4) . . . 1/ ln(46) 1/ ln(47)

π(x) ≈ 1

ln(2)+

1

ln(3)+ · · ·+ 1

ln(x)

.

.............

.............

...

.............

.............

.

.............

............

.......................

.....................

...................

...................

...................

....................

.......................

......................... ........................... .............................. ............. ................ ................... ...................... ......................... ................ ........... .............. ................. ..................... ........................ ........................... ............................... .................................. .............. ........... ........ .............. -

6

2 3 4 5 x. . . t

y

Page 99: Calculus and Prime Numbers

So

π(x) ≈ 1

ln(2)+

1

ln(3)+ · · ·+ 1

ln(x)≈

∫ x

2

1

ln(t)dt

Definition

Li(x) = Logarithmic integral =

∫ x

2

1

ln(t)dt

Page 100: Calculus and Prime Numbers

So

π(x) ≈ 1

ln(2)+

1

ln(3)+ · · ·+ 1

ln(x)≈

∫ x

2

1

ln(t)dt

Definition

Li(x) = Logarithmic integral =

∫ x

2

1

ln(t)dt

Page 101: Calculus and Prime Numbers

How good is Li(x)?

Gauss had found 6762 primesbetween 2, 600, 000 and 2, 700, 000.

To test the new approximation for π(x) he calculates

∫ 2700000

2600000

dx

ln(x)=

6761.332

Maple gives the number of primes as 6765 and approximates theintegral as 6761.3243

Page 102: Calculus and Prime Numbers

How good is Li(x)?

Gauss had found 6762 primesbetween 2, 600, 000 and 2, 700, 000.

To test the new approximation for π(x) he calculates

∫ 2700000

2600000

dx

ln(x)=

6761.332

Maple gives the number of primes as 6765 and approximates theintegral as 6761.3243

Page 103: Calculus and Prime Numbers

How good is Li(x)?

Gauss had found 6762 primesbetween 2, 600, 000 and 2, 700, 000.

To test the new approximation for π(x) he calculates

∫ 2700000

2600000

dx

ln(x)=

6761.332

Maple gives the number of primes as 6765 and approximates theintegral as 6761.3243

Page 104: Calculus and Prime Numbers

How good is Li(x)?

Gauss had found 6762 primesbetween 2, 600, 000 and 2, 700, 000.

To test the new approximation for π(x) he calculates

∫ 2700000

2600000

dx

ln(x)= 6761.332

Maple gives the number of primes as 6765 and approximates theintegral as 6761.3243

Page 105: Calculus and Prime Numbers

How good is Li(x)?

Gauss had found 6762 primesbetween 2, 600, 000 and 2, 700, 000.

To test the new approximation for π(x) he calculates

∫ 2700000

2600000

dx

ln(x)= 6761.332

Maple gives the number of primes as 6765 and approximates theintegral as 6761.3243

Page 106: Calculus and Prime Numbers

x π(x) x/ ln x − π(x)

Li(x)− π(x)

102 25 −3

5

103 168 −23

10

104 1, 229 −143

17

105 9, 592 −906

38

106 78, 498 −6, 116

130

107 664, 579 −44, 158

339

108 5, 761, 455 −332, 774

754

109 50, 847, 534 −2, 592, 592

1, 701

1010 455, 052, 511 −20, 758, 029

3, 104

Page 107: Calculus and Prime Numbers

x π(x) x/ ln x − π(x) Li(x)− π(x)

102 25 −3

5

103 168 −23

10

104 1, 229 −143

17

105 9, 592 −906

38

106 78, 498 −6, 116

130

107 664, 579 −44, 158

339

108 5, 761, 455 −332, 774

754

109 50, 847, 534 −2, 592, 592

1, 701

1010 455, 052, 511 −20, 758, 029

3, 104

Page 108: Calculus and Prime Numbers

x π(x) x/ ln x − π(x) Li(x)− π(x)

102 25 −3 5103 168 −23 10104 1, 229 −143

17

105 9, 592 −906

38

106 78, 498 −6, 116

130

107 664, 579 −44, 158

339

108 5, 761, 455 −332, 774

754

109 50, 847, 534 −2, 592, 592

1, 701

1010 455, 052, 511 −20, 758, 029

3, 104

Page 109: Calculus and Prime Numbers

x π(x) x/ ln x − π(x) Li(x)− π(x)

102 25 −3 5103 168 −23 10104 1, 229 −143 17105 9, 592 −906 38106 78, 498 −6, 116

130

107 664, 579 −44, 158

339

108 5, 761, 455 −332, 774

754

109 50, 847, 534 −2, 592, 592

1, 701

1010 455, 052, 511 −20, 758, 029

3, 104

Page 110: Calculus and Prime Numbers

x π(x) x/ ln x − π(x) Li(x)− π(x)

102 25 −3 5103 168 −23 10104 1, 229 −143 17105 9, 592 −906 38106 78, 498 −6, 116 130107 664, 579 −44, 158 339108 5, 761, 455 −332, 774 754109 50, 847, 534 −2, 592, 592

1, 701

1010 455, 052, 511 −20, 758, 029

3, 104

Page 111: Calculus and Prime Numbers

x π(x) x/ ln x − π(x) Li(x)− π(x)

102 25 −3 5103 168 −23 10104 1, 229 −143 17105 9, 592 −906 38106 78, 498 −6, 116 130107 664, 579 −44, 158 339108 5, 761, 455 −332, 774 754109 50, 847, 534 −2, 592, 592 1, 7011010 455, 052, 511 −20, 758, 029 3, 104

Page 112: Calculus and Prime Numbers

Georg Bernhard Riemann (1826–1866)

Page 113: Calculus and Prime Numbers

Riemann in 1860

Gauss counted primes as 1 and composites as 0 and got

Li(x) ≈ π(x)

Riemann: squares of primes as 1/2, cubes of primes as 1/3, . . .

n 2 3 4 . . . 46 47

Prob n prime 1 1 1/2 . . . 0 1

Prob n prime 1/ ln(2) 1/ ln(3) 1/ ln(4) . . . 1/ ln(46) 1/ ln(47)

Page 114: Calculus and Prime Numbers

Riemann in 1860

Gauss counted primes as 1 and composites as 0 and got

Li(x) ≈ π(x)

Riemann: squares of primes as 1/2, cubes of primes as 1/3, . . .

n 2 3 4 . . . 46 47

Prob n prime 1 1 1/2 . . . 0 1

Prob n prime 1/ ln(2) 1/ ln(3) 1/ ln(4) . . . 1/ ln(46) 1/ ln(47)

Page 115: Calculus and Prime Numbers

Riemann in 1860

Gauss counted primes as 1 and composites as 0 and got

Li(x) ≈ π(x)

Riemann: squares of primes as 1/2, cubes of primes as 1/3, . . .

n 2 3 4 . . . 46 47

Prob n prime 1 1 1/2 . . . 0 1

Prob n prime 1/ ln(2) 1/ ln(3) 1/ ln(4) . . . 1/ ln(46) 1/ ln(47)

Page 116: Calculus and Prime Numbers

⇒ Li(x) ≈ π(x) +1

2π(√

x) +1

3π( 3√

x) + · · ·

Or equivalently

π(x) ≈ Li(x)− 1

2Li(√

x)− 1

3Li( 3√

x)− . . .︸ ︷︷ ︸R(x)

Page 117: Calculus and Prime Numbers

⇒ Li(x) ≈ π(x) +1

2π(√

x) +1

3π( 3√

x) + · · ·

Or equivalently

π(x) ≈ Li(x)− 1

2Li(√

x)− 1

3Li( 3√

x)− . . .︸ ︷︷ ︸R(x)

Page 118: Calculus and Prime Numbers

Riemann found that

R(x) = 1 +∞∑

n=1

1

nζ(n + 1)

(ln x)n

n!

where

ζ(s) = 1 +1

2s+

1

3s+ · · ·

is the Riemann zeta function.

Page 119: Calculus and Prime Numbers

How good is R(x)?

x π(x)

R(x)

100, 000, 000 5, 761, 455

5, 761, 552

200, 000, 000 11, 078, 937

11, 079, 090

300, 000, 000 16, 252, 323

16, 252, 355

400, 000, 000 21, 336, 326

21, 336, 185

500, 000, 000 26, 355, 867

26, 355, 517

600, 000, 000 31, 324, 703

31, 324, 622

700, 000, 000 36, 252, 931

36, 252, 719

800, 000, 000 41, 146, 179

41, 146, 248

900, 000, 000 46, 009, 215

46, 009, 949

1, 000, 000, 000 50, 847, 534

50, 847, 455

Page 120: Calculus and Prime Numbers

How good is R(x)?

x π(x) R(x)

100, 000, 000 5, 761, 455

5, 761, 552

200, 000, 000 11, 078, 937

11, 079, 090

300, 000, 000 16, 252, 323

16, 252, 355

400, 000, 000 21, 336, 326

21, 336, 185

500, 000, 000 26, 355, 867

26, 355, 517

600, 000, 000 31, 324, 703

31, 324, 622

700, 000, 000 36, 252, 931

36, 252, 719

800, 000, 000 41, 146, 179

41, 146, 248

900, 000, 000 46, 009, 215

46, 009, 949

1, 000, 000, 000 50, 847, 534

50, 847, 455

Page 121: Calculus and Prime Numbers

How good is R(x)?

x π(x) R(x)

100, 000, 000 5, 761, 455 5, 761, 552200, 000, 000 11, 078, 937 11, 079, 090300, 000, 000 16, 252, 323

16, 252, 355

400, 000, 000 21, 336, 326

21, 336, 185

500, 000, 000 26, 355, 867

26, 355, 517

600, 000, 000 31, 324, 703

31, 324, 622

700, 000, 000 36, 252, 931

36, 252, 719

800, 000, 000 41, 146, 179

41, 146, 248

900, 000, 000 46, 009, 215

46, 009, 949

1, 000, 000, 000 50, 847, 534

50, 847, 455

Page 122: Calculus and Prime Numbers

How good is R(x)?

x π(x) R(x)

100, 000, 000 5, 761, 455 5, 761, 552200, 000, 000 11, 078, 937 11, 079, 090300, 000, 000 16, 252, 323 16, 252, 355400, 000, 000 21, 336, 326 21, 336, 185500, 000, 000 26, 355, 867

26, 355, 517

600, 000, 000 31, 324, 703

31, 324, 622

700, 000, 000 36, 252, 931

36, 252, 719

800, 000, 000 41, 146, 179

41, 146, 248

900, 000, 000 46, 009, 215

46, 009, 949

1, 000, 000, 000 50, 847, 534

50, 847, 455

Page 123: Calculus and Prime Numbers

How good is R(x)?

x π(x) R(x)

100, 000, 000 5, 761, 455 5, 761, 552200, 000, 000 11, 078, 937 11, 079, 090300, 000, 000 16, 252, 323 16, 252, 355400, 000, 000 21, 336, 326 21, 336, 185500, 000, 000 26, 355, 867 26, 355, 517600, 000, 000 31, 324, 703 31, 324, 622700, 000, 000 36, 252, 931 36, 252, 719800, 000, 000 41, 146, 179

41, 146, 248

900, 000, 000 46, 009, 215

46, 009, 949

1, 000, 000, 000 50, 847, 534

50, 847, 455

Page 124: Calculus and Prime Numbers

How good is R(x)?

x π(x) R(x)

100, 000, 000 5, 761, 455 5, 761, 552200, 000, 000 11, 078, 937 11, 079, 090300, 000, 000 16, 252, 323 16, 252, 355400, 000, 000 21, 336, 326 21, 336, 185500, 000, 000 26, 355, 867 26, 355, 517600, 000, 000 31, 324, 703 31, 324, 622700, 000, 000 36, 252, 931 36, 252, 719800, 000, 000 41, 146, 179 41, 146, 248900, 000, 000 46, 009, 215 46, 009, 949

1, 000, 000, 000 50, 847, 534

50, 847, 455

Page 125: Calculus and Prime Numbers

How good is R(x)?

x π(x) R(x)

100, 000, 000 5, 761, 455 5, 761, 552200, 000, 000 11, 078, 937 11, 079, 090300, 000, 000 16, 252, 323 16, 252, 355400, 000, 000 21, 336, 326 21, 336, 185500, 000, 000 26, 355, 867 26, 355, 517600, 000, 000 31, 324, 703 31, 324, 622700, 000, 000 36, 252, 931 36, 252, 719800, 000, 000 41, 146, 179 41, 146, 248900, 000, 000 46, 009, 215 46, 009, 949

1, 000, 000, 000 50, 847, 534 50, 847, 455

Page 126: Calculus and Prime Numbers

Riemann does even more!

ζ(z) = 1 +1

2z+

1

3z+ · · ·

is only defined for z > 1.

Riemann finds a way to define ζ(z) for all complex numbersz = r + it except z = 1.He then proves the following exact formula:

π(x) = R(x)−∑ρ

R(xρ)

where ρ ∈ {zeroes of the ζ function}

Page 127: Calculus and Prime Numbers

Riemann does even more!

ζ(z) = 1 +1

2z+

1

3z+ · · ·

is only defined for z > 1.

Riemann finds a way to define ζ(z) for all complex numbersz = r + it except z = 1.

He then proves the following exact formula:

π(x) = R(x)−∑ρ

R(xρ)

where ρ ∈ {zeroes of the ζ function}

Page 128: Calculus and Prime Numbers

Riemann does even more!

ζ(z) = 1 +1

2z+

1

3z+ · · ·

is only defined for z > 1.

Riemann finds a way to define ζ(z) for all complex numbersz = r + it except z = 1.He then proves the following exact formula:

π(x) = R(x)−∑ρ

R(xρ)

where ρ ∈ {zeroes of the ζ function}

Page 129: Calculus and Prime Numbers

Conjecture (The Riemann Hypothesis)

The complex roots of the Riemann zeta function are of the form12 + it.

This conjecture—which has been the object of intense recenteffort—is one of the most important outstanding mathematicsproblems.

Page 130: Calculus and Prime Numbers

Conjecture (The Riemann Hypothesis)

The complex roots of the Riemann zeta function are of the form12 + it.

This conjecture—which has been the object of intense recenteffort—is one of the most important outstanding mathematicsproblems.