Function YAPL::isPrime[][src]

pub fn isPrime(n: u64) -> bool

Test to see if the number given is prime.

Examples

let n = 7;
 
if(prime::isPrime(n))
{
    println!("{}", n);
}