let x = 1n;
const N = 25;

for (let i = 0; i < N; i++) {
    x = x * x + 1n;
}

console.log(x.toString().length);

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: