Adding method for computing the distance between two primes and plotting points.