70 + totient refactoring