In the totient() recipe, the call to uniq_justseen() can be replaced with set().
This makes the recipe a little faster, a little shorter, and a little clearer. It eliminates the dependency on uniq_justseen(). And it eliminates the precondition that the output of factor() is ordered.
The published totient recipe uses uniq_justseen() mainly to show an application of that recipe.