Kaydet (Commit) 80790287 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

revert last revision; code was right

üst 1af6fb52
...@@ -138,9 +138,9 @@ following loop, which searches for prime numbers:: ...@@ -138,9 +138,9 @@ following loop, which searches for prime numbers::
... if n % x == 0: ... if n % x == 0:
... print n, 'equals', x, '*', n/x ... print n, 'equals', x, '*', n/x
... break ... break
... else: ... else:
... # loop fell through without finding a factor ... # loop fell through without finding a factor
... print n, 'is a prime number' ... print n, 'is a prime number'
... ...
2 is a prime number 2 is a prime number
3 is a prime number 3 is a prime number
......
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