Skip to content

Instantly share code, notes, and snippets.

@nicholastjohnson
Created May 28, 2015 18:04
Show Gist options
  • Save nicholastjohnson/d707c416b513b3527a3e to your computer and use it in GitHub Desktop.
Save nicholastjohnson/d707c416b513b3527a3e to your computer and use it in GitHub Desktop.
Next Prime Solution
import gmpy2
def find_closest_prime(n):
up = gmpy2.next_prime(n)
return up
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment