Daily puzzle · Number theory · Wednesday, December 2, 2026

2^1 + 1 = 3, 2^2 + 1 = 5, 2^4 + 1 = 17, 2^8 + 1 = 257 and 2^16 + 1 = 65537 are all prime. Fermat bet the next one, 2^32 + 1, is prime too. Was he right?

A circle with a regular 17-sided polygon drawn inside it.

That is 3, 5, 17, 257 and 65537, and Fermat bet yes. Each of these primes gives a regular polygon you can draw with ruler and compass, like the 17-gon.

Show the answerTry it in an empty playground

The answer opens in the playground and runs step by step, with notes on each step. Change any line and run it again.

← The day before: What number is 1 + 1/(1 + 1/(1 + 1/(1 + …))), going on forever?