Skip to content

Commit

Permalink
Update cmd/shor
Browse files Browse the repository at this point in the history
  • Loading branch information
itsubaki committed Jun 5, 2024
1 parent 171b82c commit 195f46d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/shor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ func main() {
return
}

if number.IsPrime(N) {
fmt.Printf("N=%d is prime.\n", N)
return
}

if number.IsEven(N) {
fmt.Printf("N=%d is even. p=%d, q=%d.\n", N, 2, N/2)
return
Expand All @@ -41,6 +36,11 @@ func main() {
return
}

if number.IsPrime(N) {
fmt.Printf("N=%d is prime.\n", N)
return
}

if a < 0 {
a = rand.Coprime(N)
}
Expand Down

0 comments on commit 195f46d

Please sign in to comment.