Finds next prime of input number