Y2K38 & Signed VS Unsigned 32-bit Integers, Double Mersenne Primes & Fermat Primes, Hexadecimal 0xff

Опубликовано: 12 Июнь 2026
на канале: Elucyda
170
13

Y2K38 occurs at 2038.01.19 03:14:08 and the Unix Epoch is 1970.01.01 00:00:00 UTC.
For a signed 32-bit integer using two's complement format:
1000 0000 0000 0000 0000 0000 0000 0000 represents -2^31
1111 1111 1111 1111 1111 1111 1111 1111 represents -1
0000 0000 0000 0000 0000 0000 0000 0000 represents 0 (Unix Epoch)
0000 0000 0000 0000 0000 0000 0000 0001 represents 1
0111 1111 1111 1111 1111 1111 1111 1111 represents 2^31 - 1
For an unsigned 32-bit integer:
0000 0000 0000 0000 0000 0000 0000 0000 represents 0 (Unix Epoch)
0000 0000 0000 0000 0000 0000 0000 0001 represents 1
0111 1111 1111 1111 1111 1111 1111 1111 represents 2^31 - 1
1000 0000 0000 0000 0000 0000 0000 0000 represents 2^31
1111 1111 1111 1111 1111 1111 1111 1111 represents 2^32 - 1

Cryptographic Curiosities:    • Cryptographic Curiosities