Monday, February 20, 2012

Next Prime Number

Write code to find the next prime number after a given number.


Code input/output:

N: 14
Next Prime: 17


N: 293
Next Prime: 307


N: 3559
Next Prime: 3571

No comments:

Post a Comment