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.
Project Euler #52: Permuted multiples
Project Euler #52: Permuted multiples
Sort by
recency
|
23 Discussions
|
Please Login in order to post a comment
100% python3
Simple solution in Python 3:
JAva Code
100 points/- python3
For this and also problem 33 I found it very useful to implement a function which returns an integer that is invariant to permuting the digits in .
This can be done by returning a product of prime factors where the exponents are the number of times each digit occur in n.
In python this can be implemented as follows:
So for the example given . Then it is just a matter of finding those where by iterating over the possible values of .