diff options
Diffstat (limited to 'H34.hs')
-rw-r--r-- | H34.hs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -0,0 +1,3 @@ +-- http://en.wikipedia.org/wiki/Euler%27s_totient_function +totient :: Integral a => a -> Bool +totient x = length $ filter ((==1).(gcd x)) [1..x] |