Expand description
Primality checks and neighboring prime search.
Functionsยง
- is_
composite - Returns
truewhennis composite. - is_
prime - Returns
truewhennis prime. - next_
prime - Returns the smallest prime strictly greater than
n. - previous_
prime - Returns the largest prime strictly less than
n.