Skip to content

Commit 01f48e7

Browse files
author
Christian Bender
authored
Correction: File solv01.py
Identifier 'max' changed in 'maxNumber' , since 'max' is a function.
1 parent 8d9da8f commit 01f48e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: Project Euler/Problem 03/sol1.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def isprime(no):
1717
return False
1818
return True
1919

20-
max=0
20+
maxNumber = 0
2121
n=int(input())
2222
if(isprime(n)):
2323
print n
@@ -31,8 +31,8 @@ def isprime(no):
3131
for i in range(3,n1,2):
3232
if(n%i==0):
3333
if(isprime(n/i)):
34-
max=n/i
34+
maxNumber = n/i
3535
break
3636
elif(isprime(i)):
37-
max=i
38-
print max
37+
maxNumber = i
38+
print maxNumber

0 commit comments

Comments
 (0)