Totient generator