import pyLHD
pyLHD.primes_range(start = 3, stop = 13)[3, 5, 7, 11, 13]
helpers.primes_range(start, stop)
Generate prime numbers from a specified range
| Name | Type | Description | Default |
|---|---|---|---|
start |
int | Start of interval. The interval includes this value | required |
stop |
int | Stop of interval. If value is not a prime number it will return the previous prime integer | required |
| Type | Description |
|---|---|
| ValueError | If start is less than stop |
| Type | Description |
|---|---|
| typing.List[int] | A list of integers from the interval [start, stop] |
Example: