Hi, I’m struggling to understand the problem “Totient Function.” Can anyone would assist me here?
Problem link: https://www.spoj.com/problems/DCEPCA03/
What is it you don’t understand? You need to calculate the value of H as given in the pseudocode. But you’ll need to find a more efficient way to calculate it.