Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 061e659cfb
22 lines (16 sloc) 0.307 kB
import math
def is_prime(n):
if n < 0:
return False
for j in range(2, math.sqrt(n)+1):
if n%j == 0:
return False
return True
big = 600851475143
i = 1
while i*i <= big:
i += 2
if big % i == 0:
if is_prime(i):
maximum = i
print maximum
Jump to Line
Something went wrong with that request. Please try again.