MCPcopy Create free account
hub / github.com/EbTech/rust-algorithms / is_prime

Function is_prime

src/math/mod.rs:68–83  ·  view source on GitHub ↗

Assuming x >= 0, returns whether x is prime

(n: i64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

factorizeFunction · 0.85

Calls 1

is_strong_probable_primeFunction · 0.85

Tested by

no test coverage detected