summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.go b/main.go
index dac211b..84cb2a7 100644
--- a/main.go
+++ b/main.go
@@ -71,7 +71,7 @@ func factor(N *big.Int) (*big.Int, *big.Int) {
for {
select {
case <-t.C:
- fmt.Println(p, q)
+ fmt.Printf("%x %x\n", p, q)
default:
switch m.Mul(p, q).Cmp(N) {
case -1: // m < N, go up
@@ -108,5 +108,6 @@ func main() {
if err != nil {
log.Fatal(err)
}
- fmt.Println(factor(pub.N))
+ p, q := factor(pub.N)
+ fmt.Printf("%x %x\n", p, q)
}