[Tutor] Finding prime numbers

Shawn Milochik Shawn at Milochik.com
Wed Sep 19 19:15:30 CEST 2007


Okay, I caught one bug already myself:

 for y in range(3,(math.sqrt(x) + 1)):

should be

for y in range(3,(int(math.sqrt(x)) + 1)):


More information about the Python-list mailing list