We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I think you are calculating phi(100) but that's not the question...
read the question carefully..
we need to find the number whose totient function value is its permutation...
phi(21) = 12
and the required ratio is also minimum...
so answer is 21 for 100
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #70: Totient permutation
You are viewing a single comment's thread. Return to all comments →
I think you are calculating phi(100) but that's not the question...
read the question carefully.. we need to find the number whose totient function value is its permutation...
phi(21) = 12
and the required ratio is also minimum...
so answer is 21 for 100