mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 16:27: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(n%i==0):
|
||||
prime=i
|
||||
n/=i
|
||||
n//=i
|
||||
i+=1
|
||||
if(n>1):
|
||||
prime=n
|
||||
|
|
Loading…
Reference in New Issue
Block a user