Paper 2, Section I, G

Number Theory
Part II, 2017

State and prove Legendre's formula for π(x)\pi(x). Use it to compute π(42)\pi(42).