Created
May 28, 2015 18:04
-
-
Save nicholastjohnson/d707c416b513b3527a3e to your computer and use it in GitHub Desktop.
Next Prime Solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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