Integer Information Printer

Analyzes a single integer and reports its decimal value, binary/octal/hexadecimal representations, digit count and sum, absolute value, parity, whether it's a numeric palindrome, whether it's prime, bit length, and popcount. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-27

Overview

Introduction

This tool takes a single integer and produces a full report of its representations and simple number-theoretic properties.

Enter any integer, positive or negative, arbitrarily large, and it prints its binary/octal/hex forms alongside digit stats, parity, palindrome, and primality checks.

What Is Integer Information Printer?

An analyzer that converts one decimal integer into several other bases, and computes several simple properties: digit count, digit sum, absolute value, even/odd, palindrome, primality, bit length, and popcount.

It's modeled on this site's hex-analysis tools, but works from a decimal integer input instead of a hex value.

How Integer Information Printer Works

The input is parsed and validated as an optional leading '-' followed by digits, then converted to a BigInt so arbitrarily large values stay exact.

Binary, octal, and hexadecimal representations are computed from the number's absolute value; digit count/sum and the palindrome check likewise use the absolute value's decimal digits.

Primality is checked via trial division up to the square root of the absolute value (only meaningful for integers 2 and above); bit length and popcount are derived directly from the binary representation.

When To Use Integer Information Printer

Use it to quickly inspect a single number's properties without writing any code, e.g. checking if it's prime or a palindrome.

It's also handy for converting a decimal integer into binary/octal/hex all at once.

Features

Advantages

  • Reports many properties (representations, digit stats, parity, palindrome, primality, bit length, popcount) from a single input.
  • Uses BigInt throughout, so results stay exact even for very large integers.
  • Clear, labeled report layout that's easy to scan.

Limitations

  • Primality uses trial division, which becomes slow for astronomically large inputs; values above 100,000,000,000,000 skip the check and are reported as not prime rather than risk an unresponsive page.
  • Palindrome and digit checks operate on the absolute value's digits, ignoring any minus sign.
  • Only analyzes decimal integer input; it does not accept hex, binary, or other input bases directly.

Examples

Analyzing 13

Input

13

Output

Decimal: 13
Binary: 1101
Octal: 15
Hexadecimal: D
Digit count: 2
Digit sum: 4
Absolute value: 13
Even: No
Odd: Yes
Palindrome: No
Prime: Yes
Bit length: 4
Popcount: 3

13 is prime, odd, has 4 bits (1101) with 3 of them set, and is not a digit palindrome.

Analyzing -121

Input

-121

Output

Decimal: -121
Binary: 1111001
Octal: 171
Hexadecimal: 79
Digit count: 3
Digit sum: 4
Absolute value: 121
Even: No
Odd: Yes
Palindrome: Yes
Prime: No
Bit length: 7
Popcount: 5

-121's digits (121, ignoring the sign) form a palindrome; it's not prime since 121 = 11 x 11.

Best Practices & Notes

Best Practices

  • Use this to spot-check a value's primality or palindrome status before writing custom validation code.
  • Remember representations (binary/octal/hex) are always shown for the absolute value, not a signed encoding like two's complement.

Developer Notes

Modeled directly on this site's `analyzeHexNumber` (hex category): the lib returns a typed `data` object rather than a plain string, computed via BigInt end to end, with primality determined by simple odd-divisor trial division capped at a documented magnitude to keep the check responsive.

Integer Information Printer Use Cases

  • Quickly checking whether a number is prime, even/odd, or a palindrome
  • Converting a decimal integer into binary/octal/hex representations at once
  • Inspecting bit length and popcount for a bit-manipulation task

Common Mistakes

  • Expecting primality to be checked for astronomically large numbers; the check is skipped above a documented magnitude cap.
  • Assuming binary/octal/hex are shown in a signed (two's complement) form; they reflect the absolute value only.
  • Entering a non-integer (like a decimal point or letters), which is rejected with a clear error.

Tips

  • Enter 0 or 1 to see how the tool handles the primality edge cases at the low end.
  • Pair with the Big Integer Generator to analyze large randomly generated values.

References

Frequently Asked Questions