  In this paper, we propose a new primality test, and then we employ this test
to find a formula for {\pi} that computes the number of primes within any
interval. We finally propose a new formula that computes the nth prime number
as well as the next prime for any given number
