-
1 Comment
Rafael S.T. Vieira
on 25 Nov 2022
Nice solution using the Euler's totient function. I've tried it too, but I couldn't figure out a friendly algorithm like this. I've resorted to my probability knowledge :)
Suggested Problems
-
1628 Solvers
-
Usage of java.math : N Choose K with unlimited precision
50 Solvers
-
Pandigital number n°1 (Inspired by Project Euler 32)
104 Solvers
-
Integer sequence - 2 : Kolakoski sequence
169 Solvers
-
There are 10 types of people in the world
1150 Solvers
More from this Author116
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!