Commit 53960e83 authored by Stefan Behnel's avatar Stefan Behnel

Py3k fixes

parent 56d59182
import cheese
def report_cheese(name):
print "Found cheese:", name
print("Found cheese: " + name)
cheese.find(report_cheese)
......@@ -4,7 +4,7 @@ def primes(kmax):
n = 2
while k < kmax:
i = 0
while i < k and n % p[i] <> 0:
while i < k and n % p[i] != 0:
i = i + 1
if i == k:
p.append(n)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment