|
|
|
|
|
by musabg
1491 days ago
|
|
Second one in Go: func IsPrime(n int64) bool {
return big.NewInt(n).ProbablyPrime(0)
}
Each language has its own pros and cons. Go wants to be explicit and simple to be understood. Java is fully-featured.This is just anectodal evidence anyways. And these are tools in the and, and no point for a "tool fight". |
|