fir type error (float != int) for apparently more strict python

This commit is contained in:
Dan Ballard 2013-01-30 20:47:41 -08:00
parent c6e7c0e1f3
commit e58504c3f3
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ if max < 1:
for cnt in range(3, max, 2) :
testMax = math.sqrt(cnt)+1
isPrime = 1
for test in range(3, testMax, 2):
for test in range(3, int(testMax), 2):
isPrime = cnt % test
if isPrime == 0:
break