Simple program that finds the nth prime.