Is Prime Function

Function

isprime( n)

Summary

Returns true if the number n is prime, false otherwise.

Examples

 isprime(2) = true
 isprime(3) = true
 isprime(4) = false
 isprime(5) = true
 isprime(6) = false