Update Totient.java

fixed edge case when n is prime