this post was submitted on 17 Jul 2024
253 points (93.2% liked)
Showerthoughts
29786 readers
430 users here now
A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. A showerthought should offer a unique perspective on an ordinary part of life.
Rules
- All posts must be showerthoughts
- The entire showerthought must be in the title
- Avoid politics
- 3.1) NEW RULE as of 5 Nov 2024, trying it out
- 3.2) Political posts often end up being circle jerks (not offering unique perspective) or enflaming (too much work for mods).
- 3.3) Try c/politicaldiscussion, volunteer as a mod here, or start your own community.
- Posts must be original/unique
- Adhere to Lemmy's Code of Conduct
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
How often do prime numbers occur in epoch time?
Well the convention was to store it as a 32 bit signed integer, so that is any number from -2^31 to (2^31 - 1). Prime numbers are formally defined as a subset of whole numbers, so let's ignore the negative numbers and the number zero.
Fun fact: the largest signed 32-bit integer is itself a prime. And the wikipedia page lists it as the 105,097,565th prime.
By the time we hit the 2038 problem, there will have been about 105 million seconds since 1970 where the Unix time was a prime number. And it's a 10-digit number in base 10, where prime frequency is something about 4% of the numbers.
Does that answer your question about prime frequency today? Eh, I'm sure someone else can figure that out. If not, I'll probably have to wait until I'm in front of a computer.