mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-19 00:37:02 +00:00
Project Euler problem 3 small fix (#631)
This commit is contained in:
parent
4c14ad9dd6
commit
8d4d95099f
|
@ -11,7 +11,7 @@ i=2
|
||||||
while(i*i<=n):
|
while(i*i<=n):
|
||||||
while(n%i==0):
|
while(n%i==0):
|
||||||
prime=i
|
prime=i
|
||||||
n/=i
|
n//=i
|
||||||
i+=1
|
i+=1
|
||||||
if(n>1):
|
if(n>1):
|
||||||
prime=n
|
prime=n
|
||||||
|
|
Loading…
Reference in New Issue
Block a user