prime go library for checking the given number is prime or not getting source go get github.com/fakturk/prime go install github.com/fakturk/prime usage import "github.com/fakturk/prime" prime.IsPrime(number)