zerohertzLib.algorithm.prime ¶
Functions:
| Name | Description |
|---|---|
soe | Sieve of Eratosthenes |
soe ¶
Sieve of Eratosthenes
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n_max | int | 구하고자 하는 소수 범위의 최댓값 | required |
Returns:
| Type | Description |
|---|---|
list[int] | N까지 존재하는 소수 list |
Examples: