Prime Number Checker
Test integers up to 10¹⁸ with deterministic Miller–Rabin, inspect nearest primes, optional factorisation, and divisor statistics for deeper number theory insights.
Supports negative numbers (primality applies to the absolute value). Use underscores or prefixes (0x
, 0b
) if you prefer.
Find nearest primes
Quickly locate the next and previous primes.
Show factorisation
Enabled for numbers up to 100,000,000.
Prime status
Prime
No divisors other than 1 and itself
Parity
Odd
Absolute value has 2 digits
Binary length
7 bits
Digits needed in base 2
Absolute value
97
Checking primality on |n|
Nearest primes
Previous prime
89
Gap: 8
Next prime
101
Gap: 4
Prime factorisation
1 factors
97
Divisors
2
Total number of positive divisors
Sum of divisors
98
σ(n) including 1 and itself