Skip to content

Instantly share code, notes, and snippets.

@Hydrotoast
Created August 31, 2013 05:38
Show Gist options
  • Save Hydrotoast/6396403 to your computer and use it in GitHub Desktop.
Save Hydrotoast/6396403 to your computer and use it in GitHub Desktop.
import math
def isPrime(n):
for i in range(2, math.sqrt(n)):
if n % i == 0:
return False
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment