Prime Number Checker
Prime Number Checker is evaluated from Number to Check. The calculation reports Is Prime?, Prime Factorization and All Divisors.
Results
About the Prime Number Checker
The calculator uses a multi formula configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.
Formula basis:
Trial division: test n mod k = 0 for k = 2, 3,..., ⌊sqrtn⌋
Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.
Formula & How It Works
The calculation applies the following relations exactly as recorded in the metadata: Trial division: test n mod k = 0 for k = 2, 3,..., ⌊sqrtn⌋ Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.
Worked Examples
Example 1: Is 97 Prime?
Inputs
With Number to Check = 97 as the stated inputs, the result is Is Prime? = Yes - 97 is prime, Prime Factorization = 97 and All Divisors = 1, 97. Each value corresponds to the declared output fields.
Example 2: Is 100 Prime? — Composite
Inputs
With Number to Check = 100 as the stated inputs, the result is Is Prime? = No - 100 is composite, Prime Factorization = 2 * 2 * 5 * 5 and All Divisors = 1, 100, 2, 50, 4, 25, 5, 20, 10. Each value corresponds to the declared output fields.
Example 3: RSA Semiprime — Product of Two Primes
Inputs
With Number to Check = 15 as the stated inputs, the result is Is Prime? = No - 15 is composite, Prime Factorization = 3 * 5 and All Divisors = 1, 15, 3, 5. Each value corresponds to the declared output fields.
Example 4: Mersenne Prime? — 127
Inputs
With Number to Check = 127 as the stated inputs, the result is Is Prime? = Yes - 127 is prime, Prime Factorization = 127 and All Divisors = 1, 127. Each value corresponds to the declared output fields.
Common Use Cases
- Check if a number is prime for math competitions
- Find prime factors of a number
- Generate prime numbers for cryptography
- Verify GCD and LCM using prime factors