Skip to content
Browse files

Reduce instruction count of totient

  • Loading branch information...
1 parent f9213bd commit 06e39662d0322cc9709e968a199504c7f815f3ef @kulp committed Aug 31, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 ex/totient.tas.cpp
View
3 ex/totient.tas.cpp
@@ -23,11 +23,10 @@
call(gcd)
k <- b <> 1
- k <- k + 1
popall(b,c,d)
- b <- b + k
+ b <- b + k + 1
d <- d - 1
goto(loop)

0 comments on commit 06e3966

Please sign in to comment.
Something went wrong with that request. Please try again.