You are viewing a single comment's thread. Return to all comments →
At first I felt this task is really difficult, almost unsolvable but once I found the longest possible chain starting with 2 and which is prime and less then or equal to 10**12. Then I realized this task is not that hard.
So if you feel stuck or just have no ideas. Then build an algorithm which finds the result mentioned before and I believe you will know how to continue.