There is no commentSelect some text and then click Comment, or simply add a comment to this page from below to start a discussion.
TSG CTF 2020 Sweet like Apple Pie Writeup
is given. We can immediately calculate from by using an appropriate series expansion of . Note that there are two corresponding values.
Now let and the calculation error be . We want to calculate
Now if we calculate ,
From the condition given in the challenge script, . And if we experiment with the script we can tell that the precision of the function in the script is about 150 digit in decimal, so we can evaluate . So:
So, from Legendre's theorem in Diophantine approximations: