Next Prime Number program generates prime numbers.