Toot

Written by Jon Valdés on 2024-12-27 at 21:38

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

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113726946072253991
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
233.162505 milliseconds
Gemini-to-HTML Time
0.253107 milliseconds

This content has been proxied by September (ba2dc).