Introduction

Our goal in this project report is to create a list of twin primes $(a,b)$ where $0\leq a,b\leq n$. Also, we want to plot all of the twin primes so we can see if there is any structure that can help us determine how many twin primes there are. These goals will be achieved by:

  • Defining a function that determines if a number is a prime

  • Defining a function that finds twime primes within a certain range

  • Plot the twin primes on a graph

Here is the outline of the tools that will be used in order to complete the list of goals. To determine all of the twin primes within range $n$:

  • prime( )-which will determine whether a number is a prime or not

  • twin_prime( )-which will determine all of the twin primes whithin a range

In order to plot all of the twin primes we will use:

  • matplotlib.plyplot to graph the function

  • %matplotlib inline in order to make the graph visible within the cells