ints
Integers, denoted Z, are the set of whole numbers together with their negatives, including zero. They exclude fractions and decimals. Integers are closed under addition and subtraction. For any integers a and nonzero b, there exist unique integers q and r such that a = bq + r and 0 ≤ r < |b|; this is the division algorithm and defines the remainder.
Mathematically, the integers form an infinite, countable, totally ordered ring with unity. They are closed under
Subsets include even and odd integers. Primes are integers greater than 1 with exactly two positive divisors;
In computing, integers are represented as fixed-width data types (for example 8, 16, 32, or 64 bits).
Applications of integers include counting, indexing, and numerous algorithms in mathematics and computer science, such as