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.
Cannot make my program work correctly and will move to another project. I think I made some mistakes on some assumption but cannot figure it out. But I did learn a lot from this project. Learn the Fermat's theorem and know how to calculate large modulus on exponential, factorials, and combinations. Lots of trick on how to squeeze the performance.
I used brutal force to get the following results, hope they are helpful for you.
Project Euler #172: Investigating numbers with few repeated digits
You are viewing a single comment's thread. Return to all comments →
Cannot make my program work correctly and will move to another project. I think I made some mistakes on some assumption but cannot figure it out. But I did learn a lot from this project. Learn the Fermat's theorem and know how to calculate large modulus on exponential, factorials, and combinations. Lots of trick on how to squeeze the performance.
I used brutal force to get the following results, hope they are helpful for you.