The totient function is totient(), not primepi()