Created
November 13, 2013 16:26
-
-
Save bordy/7451903 to your computer and use it in GitHub Desktop.
Untitled 1
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
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