Loading AI tools
Natural number From Wikipedia, the free encyclopedia
The number 2,147,483,647 is the eighth Mersenne prime, equal to 231 − 1. It is one of only four known double Mersenne primes.[1]
2147483647 | |
---|---|
Cardinal | two billion one hundred forty-seven million four hundred eighty-three thousand six hundred forty-seven |
Ordinal | 2147483647th (two billion one hundred forty-seven million four hundred eighty-three thousand six hundred forty-seventh) |
Factorization | prime |
Prime | 105,097,565th |
Greek numeral | ͵γχμζ´ |
Roman numeral | N/A |
Binary | 11111111111111111111111111111112 |
Ternary | 121121222121102021013 |
Senary | 5530320055316 |
Octal | 177777777778 |
Duodecimal | 4BB2308A712 |
Hexadecimal | 7FFFFFFF16 |
The primality of this number was proven by Leonhard Euler, who reported the proof in a letter to Daniel Bernoulli written in 1772.[2] Euler used trial division, improving on Pietro Cataldi's method, so that at most 372 divisions were needed.[3] It thus improved upon the previous record-holding prime, 6,700,417, also discovered by Euler, forty years earlier. The number 2,147,483,647 remained the largest known prime until 1867.[4]
In computing, this number is the largest value that a signed 32-bit integer field can hold.
At the time of its discovery, 2,147,483,647 was the largest known prime number. In 1811, Peter Barlow, not anticipating future interest in perfect numbers, wrote (in An Elementary Investigation of the Theory of Numbers):
Euler ascertained that 231 − 1 = 2147483647 is a prime number; and this is the greatest at present known to be such, and, consequently, the last of the above perfect numbers [i.e., 230(231 − 1)], which depends upon this, is the greatest perfect number known at present, and probably the greatest that ever will be discovered; for as they are merely curious, without being useful, it is not likely that any person will attempt to find one beyond it.[5]
He repeated this prediction in his work from 1814, A New Mathematical and Philosophical Dictionary.[6][7]
In fact, a larger prime was discovered in 1855 by Thomas Clausen (67,280,421,310,721), though a proof was not provided. Furthermore, 3,203,431,780,337 was proven to be prime in 1867.[4]
The number 2,147,483,647 (or hexadecimal 7FFFFFFF16) is the maximum positive value for a 32-bit signed binary integer in computing. It is therefore the maximum value for variables declared as integers (e.g., as int
) in many programming languages.
The data type time_t, used on operating systems such as Unix, is a signed integer counting the number of seconds since the start of the Unix epoch (midnight UTC of 1 January 1970), and is often implemented as a 32-bit integer.[8] The latest time that can be represented in this form is 03:14:07 UTC on Tuesday, 19 January 2038 (corresponding to 2,147,483,647 seconds since the start of the epoch). This means that systems using a 32-bit time_t
type are susceptible to the Year 2038 problem.[9]
On 1 January 2022, a bug was reported for Microsoft Exchange systems where email delivery would fail. An internal malware scanner (enabled by default since 2013) used the date and time as a signed 32-bit integer. The integer would change during the new year to 2,201,010,001 (with the first two digits representing the year), surpassing the maximum value for this data type.[10]
The number 2,147,483,647 often becomes a hard limit for various statistics in video games, such as points or money, if they are represented by signed 32-bit integers (rather than floating-point, double-precision or arbitrary-precision).[11][12] Going over this limit by legitimate means, or by modding or hacking the game, results in many different outcomes caused by integer overflow.[13] The most common outcome is the number "wrapping" into the negatives. Another potential outcome is game crashing, thus meaning there was no failsafe implemented in the event the value exceeds the signed 32-bit limit—generally if the underlying engine has undefined behavior, instead of a wraparound behavior, for integer overflow. A well-known example in video games is that of Old School RuneScape and Grand Theft Auto V, where the number is used as the maximum amount of coins (or any other item) that a player can hold at once with normal methods, known as a "max cash stack".[14][15] In similar cases, where an unsigned instead of signed 32-bit integer is used, the limit might be extended to 4,294,967,295.[11] Another well-known example is Minecraft's hard limit for travel. The game crashes when trying to travel beyond this point and the game renderer stops ~147 blocks past that point.[16]
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.