Compare commits
No commits in common. "b49e323ea48972021954d4ba73484d1b0b6dd64d" and "8af8fe09797927de1b5fb2d8c398cffa03b9f20e" have entirely different histories.
b49e323ea4
...
8af8fe0979
@ -2,12 +2,12 @@ package num
|
||||
|
||||
func IsPrime(n int) bool {
|
||||
if n <= 1 {
|
||||
return false
|
||||
return false;
|
||||
}
|
||||
for i := 2; i < n; i++ {
|
||||
if n%i == 0 {
|
||||
return false
|
||||
if n % i == 0 {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -3,8 +3,8 @@ package num
|
||||
import "testing"
|
||||
|
||||
type checklist struct {
|
||||
n int
|
||||
ret bool
|
||||
n int;
|
||||
ret bool;
|
||||
}
|
||||
|
||||
func TestNum(t *testing.T) {
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
module git.alienyuki.com/yuki/hellogomod/ymod
|
||||
|
||||
go 1.24.4
|
||||
@ -1,5 +0,0 @@
|
||||
package ylib
|
||||
|
||||
func YHello() string {
|
||||
return "Hello, yuki!"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user