2,147,483,647: Difference between revisions
"Also, this number is in most browsers the highest to accept positive or negative z-index in CSS." |
Undid revision 707761940 by 122.107.249.21 (talk) |
||
Line 20: | Line 20: | ||
==In computing== |
==In computing== |
||
The number 2,147,483,647 (or [[hexadecimal]] 7FFF,FFFF<sub>16</sub>) is the maximum positive value for a [[32-bit]] [[Integer (computer science)|signed binary integer]] in [[computing]]. It is therefore the maximum value for variables declared as integers (e.g., as <code>int</code>) in many programming languages, and the maximum possible score, money, etc. for many [[History of video game consoles (fifth generation)|video games]]. The appearance of the number often reflects an error, [[Arithmetic overflow|overflow]] condition, or missing value.<ref>See, for example: [http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/fstat.htm]. A search for images on Google will find many with [[metadata]] values of 2147483647. [[:Image:Waldo Jaquith - Dark Edge of the Moon (by-sa).jpg|This image]], for example, claims to have been taken with a camera aperture of 2147483647.</ref> In December 2014, Google initially claimed that [[Psy|PSY's]] music video "[[Gangnam Style]]" exceeded the 32-bit integer limit for [[YouTube]] view count, necessitating YouTube to upgrade the variable to a 64-bit integer |
The number 2,147,483,647 (or [[hexadecimal]] 7FFF,FFFF<sub>16</sub>) is the maximum positive value for a [[32-bit]] [[Integer (computer science)|signed binary integer]] in [[computing]]. It is therefore the maximum value for variables declared as integers (e.g., as <code>int</code>) in many programming languages, and the maximum possible score, money, etc. for many [[History of video game consoles (fifth generation)|video games]]. The appearance of the number often reflects an error, [[Arithmetic overflow|overflow]] condition, or missing value.<ref>See, for example: [http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/fstat.htm]. A search for images on Google will find many with [[metadata]] values of 2147483647. [[:Image:Waldo Jaquith - Dark Edge of the Moon (by-sa).jpg|This image]], for example, claims to have been taken with a camera aperture of 2147483647.</ref> In December 2014, Google initially claimed that [[Psy|PSY's]] music video "[[Gangnam Style]]" exceeded the 32-bit integer limit for [[YouTube]] view count, necessitating YouTube to upgrade the variable to a 64-bit integer.<ref>{{Cite web|url = https://plus.google.com/u/0/wm/4/+youtube/posts/BUXfdWqu86Q|title = Gangnam Style YouTube Overflow|date = |accessdate = |website = |publisher = |last = |first = }}</ref><ref>{{Cite web|url = http://edition.cnn.com/2014/12/03/showbiz/gangnam-style-youtube/index.html?hpt=hp_t4|title = 'Gangnam Style' breaks YouTube|date = 2014-12-03|accessdate = 2014-12-19 |website = http://www.cnn.com/ |publisher = CNN.com |last = |first = }}</ref> Google later admitted that this was a joke.<ref>{{cite web|url = http://www.cnet.com/news/gangnam-style-busts-youtubes-view-counter-not-so-fast|title = ''Gangnam Style' busts YouTube's view counter? Not so fast'}}</ref> |
||
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.<ref>{{cite web | url =http://www.opengroup.org/onlinepubs/000095399/ | title = The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition (definition of epoch) | work = [[IEEE]] and [[The Open Group]] | publisher = [[The Open Group]] | year = 2004 | accessdate = 7 March 2008 | quote = }}</ref> 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 <code>time_t</code> type are susceptible to the [[Year 2038 problem]].<ref>{{Citation |url=http://www.2038bug.com/ |title=The Year-2038 Bug |accessdate=9 April 2009 | archiveurl= https://web.archive.org/web/20090318084855/http://www.2038bug.com/| archivedate= 18 March 2009 <!--DASHBot-->| deadurl= no}}.</ref> (Systems employing a wider [[9223372036854775807|64-bit time_t]] type do not suffer from this limitation.) |
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.<ref>{{cite web | url =http://www.opengroup.org/onlinepubs/000095399/ | title = The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition (definition of epoch) | work = [[IEEE]] and [[The Open Group]] | publisher = [[The Open Group]] | year = 2004 | accessdate = 7 March 2008 | quote = }}</ref> 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 <code>time_t</code> type are susceptible to the [[Year 2038 problem]].<ref>{{Citation |url=http://www.2038bug.com/ |title=The Year-2038 Bug |accessdate=9 April 2009 | archiveurl= https://web.archive.org/web/20090318084855/http://www.2038bug.com/| archivedate= 18 March 2009 <!--DASHBot-->| deadurl= no}}.</ref> (Systems employing a wider [[9223372036854775807|64-bit time_t]] type do not suffer from this limitation.) |
Revision as of 22:53, 3 April 2016
2147483647 | |
---|---|
Cardinal | two billion, one hundred and forty-seven million, four hundred and eighty-three thousand, six hundred and forty-seven |
Ordinal | 2147483647th (two billion one hundred forty-seven million four hundred eighty-three thousand six hundred forty-seventh) |
Factorization | 2147483647 |
Prime | Yes |
Greek numeral | ͵γχμζ´ |
Roman numeral | N/A |
Binary | 11111111111111111111111111111112 |
Ternary | 121121222121102021013 |
Senary | 5530320055316 |
Octal | 177777777778 |
Duodecimal | 4BB2308A712 |
Hexadecimal | 7FFFFFFF16 |
The number 2,147,483,647 (two billion, one hundred and forty-seven million, four hundred and eighty-three thousand, six hundred and forty-seven) is the eighth Mersenne prime, equal to 231 − 1. It is one of only four known double Mersenne primes.[1]
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 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]
Barlow's prediction
In 1811, Peter Barlow, not anticipating future interest in prime 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 1814 work 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.
In computing
The number 2,147,483,647 (or hexadecimal 7FFF,FFFF16) 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, and the maximum possible score, money, etc. for many video games. The appearance of the number often reflects an error, overflow condition, or missing value.[8] In December 2014, Google initially claimed that PSY's music video "Gangnam Style" exceeded the 32-bit integer limit for YouTube view count, necessitating YouTube to upgrade the variable to a 64-bit integer.[9][10] Google later admitted that this was a joke.[11]
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.[12] 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.[13] (Systems employing a wider 64-bit time_t type do not suffer from this limitation.)
Also, this number is in most browsers the highest to accept positive or negative z-index in CSS.
See also
References
- ^ Weisstein, Eric W., "Double Mersenne Number", From MathWorld, A Wolfram Web Resource.
- ^ Dunham, William (1999), Euler: The Master of Us All, Washington, DC: Mathematical Association of America, p. 4, ISBN 0-88385-328-0.
- ^ Gautschi, Walter (1994), Mathematics of computation, 1943-1993: a half-century of computational mathematics, Proceedings of Symposia in Applied Mathematics, vol. 48, Providence, RI: American Mathematical Society, p. 486, ISBN 0-8218-0291-7.
- ^ Caldwell, Chris (8 December 2009), The largest known prime by year.
- ^ Barlow, Peter (1811), An Elementary Investigation of the Theory of Numbers, London: J. Johnson & Co.
- ^ Barlow, Peter (1814), A new mathematical and philosophical dictionary: comprising an explanation of terms and principles of pure and mixed mathematics, and such branches of natural philosophy as are susceptible of mathematical investigation, London: G. and S. Robinson.
- ^ Shanks, Daniel (2001), Solved and Unsolved Problems in Number Theory (4th ed.), Providence, RI: American Mathematical Society, p. 495, ISBN 0-8218-2824-X.
- ^ See, for example: [1]. A search for images on Google will find many with metadata values of 2147483647. This image, for example, claims to have been taken with a camera aperture of 2147483647.
- ^ "Gangnam Style YouTube Overflow".
- ^ "'Gangnam Style' breaks YouTube". http://www.cnn.com/. CNN.com. 3 December 2014. Retrieved 19 December 2014.
{{cite web}}
: External link in
(help)|website=
- ^ "Gangnam Style' busts YouTube's view counter? Not so fast'".
- ^ "The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition (definition of epoch)". IEEE and The Open Group. The Open Group. 2004. Retrieved 7 March 2008.
- ^ The Year-2038 Bug, archived from the original on 18 March 2009, retrieved 9 April 2009
{{citation}}
: Unknown parameter|deadurl=
ignored (|url-status=
suggested) (help).
External links