Skip to the content.

2018-03-2

I have to emphasize that I have checked all the answers by myself.

Breaking!!! ChatGPT solves the problem and dramatically improves algorithm

ChatGPT’s Solution

ChatGPT-o4-mini-high solved the problem #2 of March 2018 Math magic and improves the algorithm dramatically so it calculates instantly even if n=100. Also, I corrected human errors.

Download Code

Result upto n=200