Hey All,
I need a program to input a number, test if it is a prime number or not and then output it if it is prime or output the next prime number if it is not.
So far I have to input section, the function and the prime number test so it works if it is prime but I can't figure out how to output the next prime number.
Any help would be much appreciated.