Skip to content

Instantly share code, notes, and snippets.

@hatashiro
Created April 13, 2012 12:17
Show Gist options
  • Save hatashiro/2376559 to your computer and use it in GitHub Desktop.
Save hatashiro/2376559 to your computer and use it in GitHub Desktop.
Projecteuler #3
def primefactor(int):
div = 2
obj = int
while True:
if obj % div:
div = div + 1
else:
obj = obj / div
if obj == 1:
return div
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment