65535 (number)
Encyclopedia
65535 is the integer after 65534 and before 65536.

In mathematics

65535 is a Mersenne number, being . But since its index, 16, is not prime, 65535 cannot be a Mersenne prime
Mersenne prime
In mathematics, a Mersenne number, named after Marin Mersenne , is a positive integer that is one less than a power of two: M_p=2^p-1.\,...

. It is the product of the first four Fermat primes: 65535 = (2 + 1)(4 + 1)(16 + 1)(256 + 1). Because of this property, it is possible to construct with compass and straightedge
Compass and straightedge
Compass-and-straightedge or ruler-and-compass construction is the construction of lengths, angles, and other geometric figures using only an idealized ruler and compass....

 a regular polygon
Regular polygon
A regular polygon is a polygon that is equiangular and equilateral . Regular polygons may be convex or star.-General properties:...

 with 65535 sides. See constructible polygon
Constructible polygon
In mathematics, a constructible polygon is a regular polygon that can be constructed with compass and straightedge. For example, a regular pentagon is constructible with compass and straightedge while a regular heptagon is not....

.

65535 is the 15th 626-gonal
Polygonal number
In mathematics, a polygonal number is a number represented as dots or pebbles arranged in the shape of a regular polygon. The dots were thought of as alphas . These are one type of 2-dimensional figurate numbers.- Definition and examples :...

 number, the 5th 6555-gonal number, the 3rd 21846-gonal number.

In computing

65535 is a frequently occurring number in the field of computing
Computing
Computing is usually defined as the activity of using and improving computer hardware and software. It is the computer-specific part of information technology...

 because it is the highest number which can be represented by an unsigned 16 bit binary
Binary numeral system
The binary numeral system, or base-2 number system, represents numeric values using two symbols, 0 and 1. More specifically, the usual base-2 system is a positional notation with a radix of 2...

 number. Some computer programming environments may have pre-defined constant values representing 65535, with names like "MAX_UNSIGNED_SHORT". In older computers with processors operating with a 16-bit address bus (such as the MOS Technology 6502
MOS Technology 6502
The MOS Technology 6502 is an 8-bit microprocessor that was designed by Chuck Peddle and Bill Mensch for MOS Technology in 1975. When it was introduced, it was the least expensive full-featured microprocessor on the market by a considerable margin, costing less than one-sixth the price of...

 and the Zilog Z80
Zilog Z80
The Zilog Z80 is an 8-bit microprocessor designed by Zilog and sold from July 1976 onwards. It was widely used both in desktop and embedded computer designs as well as for military purposes...

), 65535 was the highest addressable memory location. Such processors thus supported at most 64 kibibyte
Kibibyte
The kibibyte is a multiple of the unit byte for quantities of digital information. The binary prefix kibi means 1024; therefore, 1 kibibyte is . The unit symbol for the kibibyte is KiB. The unit was established by the International Electrotechnical Commission in 1999 and has been accepted for use...

s (64 KiB) of total memory. Of course, this is assuming byte-addressed memory. In Internet protocols, 65535 is also the number of TCP and UDP port
TCP and UDP port
In computer networking, a port is an application-specific or process-specific software construct serving as a communications endpoint in a computer's host operating system. A port is associated with an IP address of the host, as well as the type of protocol used for communication...

s available at an IP address
IP address
An Internet Protocol address is a numerical label assigned to each device participating in a computer network that uses the Internet Protocol for communication. An IP address serves two principal functions: host or network interface identification and location addressing...

, since port 0 is reserved.

A Java class or interface can have max. 65535 number of methods. The code of a constructor in Java is limited to 65535 bytes. In some implementations of Tiny BASIC
Tiny BASIC
Tiny BASIC is a dialect of the BASIC programming language that can fit into as little as 2 or 3 KB of memory. This small size made it invaluable in the early days of microcomputers , when typical memory size was only 4–8 KB.- History :...

, inputting a command that divides any number by zero
Division by zero
In mathematics, division by zero is division where the divisor is zero. Such a division can be formally expressed as a / 0 where a is the dividend . Whether this expression can be assigned a well-defined value depends upon the mathematical setting...

 will return 65535.

In an unpatched version of Microsoft Excel
Microsoft Excel
Microsoft Excel is a proprietary commercial spreadsheet application written and distributed by Microsoft for Microsoft Windows and Mac OS X. It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications...

 2007, many mathematical computations evaluating to 65535 will display incorrectly. For example =850*77.1 displays as 100000 rather than 65535. Microsoft reports this to be a display-only bug for only 6 floating point numbers
Floating point
In computing, floating point describes a method of representing real numbers in a way that can support a wide range of values. Numbers are, in general, represented approximately to a fixed number of significant digits and scaled using an exponent. The base for the scaling is normally 2, 10 or 16...

 near 65535 and 6 near 65536. These display issues do not occur in editions of Excel that have been updated to Office 2007 service pack
Service pack
A service pack is a collection of updates, fixes or enhancements to a software program delivered in the form of a single installable package. Many companies, such as Microsoft or Autodesk, typically release a service pack when the number of individual patches to a given program reaches a certain ...

 2.

65535 is also the limit for many player variables in video games, such as attack damage in the game "StarCraft
StarCraft
StarCraft is a military science fiction real-time strategy video game developed by Blizzard Entertainment. The first game of the StarCraft series was released for Microsoft Windows on 31 March 1998. With more than 11 million copies sold worldwide as of February 2009, it is one of the best-selling...

", experience point
Experience point
An experience point is a unit of measurement used in many role-playing games and role-playing video games to quantify a player character's progression through the game...

s in Dragon Warrior
Dragon Warrior
Dragon Warrior, known as in Japan, is the first role-playing video game  in the Dragon Quest media franchise. It was developed by Chunsoft for the Nintendo Entertainment System and published by Enix in Japan in 1986...

, character stats for Mu Online
Mu Online
MU Online is a 3D medieval fantasy MMORPG, produced by Webzen, a Korean gaming company.-Gameplay:MU Online was created back in December 2001 by the Korean gaming company Webzen. Like in most MMORPGs, players have to create a character among five different classes and to set their foot on the MU...

, maximum enchant of items in Lineage 2, money carried in Phantasy Star
Phantasy Star
is the first installment in Sega's renowned series of the same name. It was released for the Sega Master System in Japan on December 20, 1987, and then in North America and Europe in 1988. It is considered one of the pioneers amongst console role-playing games, both for its advanced graphics...

and Dark Cloud
Dark Cloud
is a role-playing video game for the PlayStation 2 video game console. It was developed by Level-5 and published by Sony Computer Entertainment in 2000 and 2001 in Japan and American/PAL regions respectively. The gameplay of Dark Cloud combines action role-playing with elements of city-building...

, elemental attribute points in "Castlevania: Order of Ecclesia
Castlevania: Order of Ecclesia
Castlevania: Order of Ecclesia, known in Japan as , is the third Nintendo DS installment of the Castlevania franchise, developed by longtime Castlevania developer Koji Igarashi.-Gameplay:...

", score in Star Wars: TIE Fighter
Star Wars: TIE Fighter
Star Wars: TIE Fighter, a 1994 space flight simulator/space combat computer game, is the sequel to Star Wars: X-Wing, and the first game of the series that puts the player on the side of the Galactic Empire....

, several limits in Harvest Moon DS
Harvest Moon DS
is the first game for the Nintendo DS in the Harvest Moon series of farm simulation video games. It was first released on March 25, 2005 in Japan.-Storyline:...

, the maximum experience per level in Devil Survivor, the maximum amount of saved fights in The World Ends With You, and the trainer's ID number in Pokémon.
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK