Is there a graph of prime numbers compared to how many primes come before it?

I created a program that calculates for prime numbers by dividing a given number by 2 and by all previously found prime numbers. Using this I was creating a graph where Y is the prime number and X is the number on the list of primes it is.

The list starts at 3, so on the graph it would be (1,3) and 7927 would be (1000,7927).

My program is very slow, so I am wondering if there is already a graph like this that exists.

(I am not exactly sure what tag should be applied to this, but I believe I chose correctly.)