// IsPrime returns if the provided number is a prime number or not.
IsPrime returns if the provided number is a prime number or not.
// IsPrime returns if the provided number is a prime number or not .
func IsPrime(candidate uint64) bool {
	sqrt := uint64(math.Sqrt(float64(candidate)))
	for i := uint64(2); i <= sqrt; i++ {
		if (candidate % i) == 0 {
			return false
		}
	}
	return candidate > 1
}
func IsPrime ( candidate uint64 ) bool { sqrt := uint64 ( math . Sqrt ( float64 ( candidate ) ) ) for i := uint64 ( 2 ) ; i <= sqrt ; i ++ { if ( candidate % i ) == 0 { return false } } return candidate > 1 }
IsPrime returns if the provided number is a prime number or not.
IsPrime returns if the provided number is a prime number or not .