Permalink
Cannot retrieve contributors at this time
16 lines (14 sloc)
257 Bytes
|
package prime_test |
|
|
|
import ( |
|
"fmt" |
|
"github.com/afshin/prime" |
|
) |
|
|
|
func ExampleIsPrime() { |
|
var candidate uint64 = 5 |
|
if prime.IsPrime(candidate) { |
|
fmt.Println("Five is prime.") |
|
} else { |
|
fmt.Println("Five is not prime.") |
|
} |
|
// Output: Five is prime. |
|
} |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.