---
title: "Prime Number Checker"
method: GET
path: "/api/calc/prime-number-checker"
tags: ["Math"]
---

# Prime Number Checker

`GET /api/calc/prime-number-checker`

## Request

- Base URL: `https://calcbright.com`
- URL: `https://calcbright.com/api/calc/prime-number-checker`
- Auth: none declared

Is 91 prime? No – it is 7 × 13. Test any whole number up to one trillion, see its smallest factor and prime factorization, and find the nearest primes.

## Query parameters

- `n` number: Whole number Any whole number from 0 to 1,000,000,000,000.

## Response `200`

Calculation result

- CalcOutput
  - `ok` boolean
  - `tool` string
  - `name` string
  - `url` string: Open this link to see the full calculation
  - `inputs` object
  - `summary` string: Plain-text answer
  - `details` string
  - `result` object
  - `errors` object

## Other responses

- `400`: Invalid input (see errors)

---

[API](https://skmtc.dev/calcbright/apis/calcbright-calculator-api.md) · [All operations](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/revisions/f58229e56e58?raw)
