Solution
ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2017/ii/paper-2/1g/solution
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 2 1G Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-05
The Legendre prime-counting formula counts positive integers surviving a finite prime sieve. For , put and let be the primes at most . By inclusion-exclusion principle, the number of positive integers at most divisible by none of these primes isThe empty product is . Every composite number at most has a prime factor at most , so the survivors are precisely and the primes between and . ConsequentlyFor , the sieving primes are , andAs a direct check, the primes are .
New to topics? Read the docs here!