mirror of
https://github.com/flancian/garden.git
synced 2026-08-08 07:26:21 +00:00
autopushed
This commit is contained in:
@@ -41,8 +41,6 @@ def is_prime(n):
|
|||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
@click.argument('n', type=click.INT)
|
@click.argument('n', type=click.INT)
|
||||||
@click.option('-f', '--from', 'n0', type=click.INT, help="Lower bound of the range to factor.")
|
|
||||||
@click.option('-t', '--to', 'n1', type=click.INT, help="Upper bound of the range to factor.")
|
|
||||||
def prime(n, n0, n1):
|
def prime(n, n0, n1):
|
||||||
"""Simple program that factors a number using a [[Sieve of Eratosthenes]]."""
|
"""Simple program that factors a number using a [[Sieve of Eratosthenes]]."""
|
||||||
if is_prime(n):
|
if is_prime(n):
|
||||||
|
|||||||
Reference in New Issue
Block a user