1 | #!/usr/bin/python3 |
As the chall shows, we could get the flag via successfully running the code above lmaoo.
This problem equals to the formula:
Think about Carmichael theorem, using factordb to factorize
Make combinations of all the prime factors, the total times are
I also use a method like Pollard p-1 algorithm to get the flag faster.
1 | from Crypto.Util.number import * |