Just found a (pretty dumb) one for 32 bit uints. All Fermat numbers are primes in the U32 range:
https://en.wikipedia.org/wiki/Fermat_number
The first Fermat number that isn't a prime is 2^32 + 1. So, by quite a narrow margin, all the u32 Fermat numbers are primes :)
=> More informations about this toot | View the thread | More toots from jon_valdes@mastodon.gamedev.place
text/gemini
This content has been proxied by September (ba2dc).