Skip to content

Instantly share code, notes, and snippets.

@aemc
Created October 6, 2016 03:44
Show Gist options
  • Save aemc/ce2396bb5e74903f1dde8f57196f2269 to your computer and use it in GitHub Desktop.
Save aemc/ce2396bb5e74903f1dde8f57196f2269 to your computer and use it in GitHub Desktop.
def find_next_prime(n):
if ((n/2) % == 0 ):
n += 1
return n
else:
n += 2
return n
print(find_next_prime(n))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment