catchmrbharath/sympy — comment on commit 6c2fb70fdb95cf80dc577b98244b4003efab766e
File:  line 0
By smichr:

The test that identified the logical error should probably be added, too. Also, `dumb` is sometimes faster than `smart`, so if a change is going to be made we should make sure that our assumptions about the smarter being faster are correct. In this case they aren't:

(tot is your current function)

```python
>>> t=time();jnk=[tot(i) for i in xrange(1,1000)];print time()-t
1.98099994659
>>> t=time();jnk=[tot(i) for i in xrange(1,1000)];print time()-t
1.02399992943
>>> t=time();jnk=[totient(i) for i in xrange(1,1000)];print time()-t
0.0240001678467
>>> t=time();jnk=[totient_(i) for i in xrange(1,1000)];print time()-t
2.27099990845
```