P-99: 2.11 Compare the two methods of calculating Euler's totient function
P-99: Ninety-Nine Prolog Problemsの問題にMercuryで解答していきます.
$ time ./p99_39a 4032 real 0m12.336s user 0m12.340s sys 0m0.005s $ time ./p99_39b 4032 real 0m1.221s user 0m1.216s sys 0m0.006s
2.10 の解法のほうが高速だった。