mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
New == syntax
This commit is contained in:
parent
4d8e859e8f
commit
bdfcfccbe5
73 changed files with 419 additions and 391 deletions
|
@ -17,7 +17,7 @@ def primes(min, max):
|
|||
i = 3
|
||||
while i <= max:
|
||||
for p in primes:
|
||||
if i%p = 0 or p*p > i: break
|
||||
if i%p == 0 or p*p > i: break
|
||||
if i%p <> 0:
|
||||
primes.append(i)
|
||||
if i >= min: print i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue