Skip to content

Instantly share code, notes, and snippets.

@bordy
Created November 13, 2013 16:26
Show Gist options
  • Save bordy/7451903 to your computer and use it in GitHub Desktop.
Save bordy/7451903 to your computer and use it in GitHub Desktop.
Untitled 1
def find_primes(num):
i = 2
while i * i < num:
while num % i == 0:
num = num/i
i = i + 1
print num
find_primes(600851475143)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment