# Approximating $\pi$ using Euler's identity with primes

May 21, 2020

In this notebook, I implement a method to approximate $\pi$ using the identity where $p$ are all the prime numbers, starting from 2. If we call the right-hand side of the identity $P$, then we have that