Prime Number Checker

Prime Number Checker lets you trial division checks possible factors through the square root. Enter your own values or load the worked example.

Method and calculation

Trial division checks possible factors through the square root.

Inputs and settings

Prime Number Checker accepts Whole number (minimum 0, maximum 1000000000000).

Worked example

Prime Number Checker example — Whole number: 97. Computed output: { "prime": true, "factor": null }

Output and limitations

Prime Number Checker: Use finite inputs. Results use double-precision arithmetic.

Technical references: JavaScript numerical operations

Prime Number Checker FAQs

Prime Number Checker applies the following rule to your input: Trial division checks possible factors through the square root. The worked example on this page uses the same processor as the result button.
Prime Number Checker has these boundaries: Use finite inputs. Results use double-precision arithmetic. Start by checking the whole number field against the units or format shown.
Prime Number Checker provides this sample: { "prime": true, "factor": null }. Use the sample button to reproduce it, then replace the inputs with your own values.