is_prime
Check if the given number is prime
Arguments
n
- The given numberiter
- The number of iterations to run when sqrting the number, the higher the more accurate (usually 10 is enough)
Returns
bool
- if the given number is prime
Fully qualified path: alexandria_math::is_prime::is_prime
#![allow(unused)] fn main() { pub fn is_prime(n: u128, iter: usize) -> bool }