Number Cruncher
Analyze integers and run a BigInt expression worksheet.
Crunch a single integer for puzzle-friendly facts, or use the worksheet for exact BigInt expressions with variables, modular arithmetic, prime checks, factors, factorials, and Fibonacci values. For two-operand button math, use the Big Number Calculator.
About this tool
Number Cruncher has two related modes. Integer Analysis takes one whole number and reports facts about it. Worksheet evaluates one expression per line and can keep variables for later lines.
Integer Analysis input
The Number box accepts one integer. Decimal is the default, and prefixed 0b, 0o, and 0x values are read as binary, octal, and hexadecimal. If the input contains letters without a prefix, it is read as case-insensitive base 36, so 1c1 and 1C1 both crunch as 1729. Optional signs work, and spaces, commas, and underscores are ignored as visual separators.
Worksheet expressions
The worksheet accepts decimal integers plus prefixed 0b, 0o, and 0x literals. Use + - * / % ^, postfix factorial !, bitwise & and |, parentheses, and implicit multiplication such as 3(4+5) or 8! 7! 2!. Division keeps an exact reduced fraction when needed and also shows a decimal preview.
Assign variables with n = 2^31 - 1, then reuse them on later lines. Blank lines are ignored, and comments starting with # or // are stripped.
Worksheet functions
Integer helpers include abs, gcd, lcm, mod, pow, powmod, invmod, sqrt, cbrt, root, factorial, fib, isprime, nextprime, prevprime, digits, and factor. Functions that need whole numbers will reject fractions.
Puzzle power patterns
Lines like ABCD^EFGH = 9732^8493 solve digit-letter power patterns and report the digit mapping. If a paste loses the superscript and becomes ABCDEFGH = <large number>, the worksheet tries the same split in half as ABCD^EFGH.
Everything runs locally in your browser. Large integers are fine for base conversion, but expensive checks have limits: full factorization is capped, and some prime or special-number tests are skipped for very large inputs to keep the page responsive.
Integer Analysis
Case
Filter
Whitespace
Find & Replace
Group
Base Conversions
| Base | Value |
|---|
Properties
Factors
Worksheet
Case
Filter
Whitespace
Find & Replace
Group
Case
Filter
Whitespace
Find & Replace
Group