Skip to content

Instantly share code, notes, and snippets.

@pcg79
Last active August 29, 2015 13:56
Show Gist options
  • Save pcg79/8867065 to your computer and use it in GitHub Desktop.
Save pcg79/8867065 to your computer and use it in GitHub Desktop.
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