Expand description
Tests if the given integer within a string is prime
Parameters
n_str
is the string containing the integer to test its primality
Examples
extern crate is_prime;
use is_prime::*;
fn main() {
// The first RSA Prime
assert!(is_prime("37975227936943673922808872755445627854565536638199") == true);
// The first RSA Prime + 1
assert!(is_prime("37975227936943673922808872755445627854565536638200") == false);
}