Project Euler problem 3 small fix (#631)

This commit is contained in:
Sanders Lin 2019-02-10 00:35:52 +08:00 committed by John Law
parent 4c14ad9dd6
commit 8d4d95099f

View File

@ -11,7 +11,7 @@ i=2
while(i*i<=n):
while(n%i==0):
prime=i
n/=i
n//=i
i+=1
if(n>1):
prime=n