mirror of https://github.com/python/cpython
revert last revision; code was right
This commit is contained in:
parent
1af6fb5298
commit
80790287ab
|
@ -138,9 +138,9 @@ following loop, which searches for prime numbers::
|
|||
... if n % x == 0:
|
||||
... print n, 'equals', x, '*', n/x
|
||||
... break
|
||||
... else:
|
||||
... # loop fell through without finding a factor
|
||||
... print n, 'is a prime number'
|
||||
... else:
|
||||
... # loop fell through without finding a factor
|
||||
... print n, 'is a prime number'
|
||||
...
|
||||
2 is a prime number
|
||||
3 is a prime number
|
||||
|
|
Loading…
Reference in New Issue