mirror of
https://github.com/python/cpython.git
synced 2025-09-18 06:30:38 +00:00
Fix 'primes 0 1'
This commit is contained in:
parent
4271ecaf72
commit
ab6d373aa0
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
# Print prime numbers in a given range
|
# Print prime numbers in a given range
|
||||||
|
|
||||||
def primes(min, max):
|
def primes(min, max):
|
||||||
if 2 >= min:
|
if max >= 2 >= min:
|
||||||
print 2
|
print 2
|
||||||
primes = [2]
|
primes = [2]
|
||||||
i = 3
|
i = 3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue