Created
October 6, 2016 03:44
-
-
Save aemc/ce2396bb5e74903f1dde8f57196f2269 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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