Last active
August 29, 2015 13:56
-
-
Save pcg79/8867065 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 factors(n): | |
count = 0 | |
for i in range(1, n): | |
if n % i == 0: | |
count = count + 1 | |
if count >= 500 | |
return true | |
return false | |
j=0 | |
for i in range(1, 50000000): | |
if factors(j): | |
text_file = open("PE12.txt", "w") | |
text_file.write("%s"%j) | |
text_file.close() | |
break | |
j=i+j |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment