---
title: "质数判断/生成 - 判断一个数是否为质数，生成指定范围内的质数表，查看质因数分解。 - AllTools - 全能工具箱"
description: "质数工具集成了质数判断、质数表生成与前 N 个质数功能，判断时同步给出质因数分解或质数序号，基于埃拉托斯特尼筛法高效生成质数列表。 输入数据即可得到结果，计算在本地完成。"
canonical_url: "https://tool.warmday.wang/math/prime"
meta:
  author: AllTools
  keywords: "在线工具箱, AllTools, 实用工具, 生活常用, 数学计算, 文本处理, 图片处理, 开发者工具, PDF 工具, 单位换算, 免费工具, 免登录工具"
  "og:description": "质数工具集成了质数判断、质数表生成与前 N 个质数功能，判断时同步给出质因数分解或质数序号，基于埃拉托斯特尼筛法高效生成质数列表。 输入数据即可得到结果，计算在本地完成。"
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools - 全能工具箱 Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "质数判断/生成 - 判断一个数是否为质数，生成指定范围内的质数表，查看质因数分解。"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **质数判断/生成**

判断一个数是否为质数，生成指定范围内的质数表，查看质因数分解。

**质数判断**

**质数表生成**

\~

**前 N 个质数**

## **功能介绍**

质数判断/生成工具提供质数相关的多种计算功能。

- **质数判断：**判断一个数是否为质数，并给出质因数分解或质数序号
- **质数表生成：**生成指定范围内的所有质数
- **前 N 个质数：**生成前 N 个质数列表

### **使用说明**

#### **功能介绍**

质数工具集成了质数判断、质数表生成与前 N 个质数功能，判断时同步给出质因数分解或质数序号，基于埃拉托斯特尼筛法高效生成质数列表。

#### **操作步骤**

在"质数判断"输入正整数并点击"判断"；或在"质数表生成"输入起止范围生成该区间质数；也可在"前 N 个质数"输入 N 生成前 N 个质数，结果支持一键复制。

#### **注意事项**

所有计算在浏览器本地完成；为避免浏览器卡顿，范围生成建议不超过 100 万，前 N 个质数建议不超过 10000。

## **同类工具**

同一个分类下还有这些 · 数学计算

[**科学计数法转换**数字与科学计数法格式互转](https://tool.warmday.wang/math/scientific-notation) [**罗马数字转换**阿拉伯数字与罗马数字互转](https://tool.warmday.wang/math/roman-numeral) [**科学计算器**在线科学计算器，支持三角/对数/阶乘等](https://tool.warmday.wang/math/calculator) [**分数计算器**分数加减乘除运算与化简](https://tool.warmday.wang/math/fraction) [**百分比计算器**百分比/折扣/增减计算](https://tool.warmday.wang/math/percentage) [**比例计算器**比例求解 A:B = C:D](https://tool.warmday.wang/math/proportion)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/#website","url":"https://tool.warmday.wang/","name":"AllTools - 全能工具箱","inLanguage":"zh","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/math/prime#webpage","url":"https://tool.warmday.wang/math/prime","isPartOf":{"@id":"https://tool.warmday.wang/#website"},"inLanguage":"zh","name":"质数判断/生成 - 判断一个数是否为质数，生成指定范围内的质数表，查看质因数分解。","description":"质数工具集成了质数判断、质数表生成与前 N 个质数功能，判断时同步给出质因数分解或质数序号，基于埃拉托斯特尼筛法高效生成质数列表。 输入数据即可得到结果，计算在本地完成。"},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/math/prime#app","name":"质数判断/生成 - 判断一个数是否为质数，生成指定范围内的质数表，查看质因数分解。","description":"质数工具集成了质数判断、质数表生成与前 N 个质数功能，判断时同步给出质因数分解或质数序号，基于埃拉托斯特尼筛法高效生成质数列表。 输入数据即可得到结果，计算在本地完成。","url":"https://tool.warmday.wang/math/prime","applicationCategory":"UtilitiesApplication","operatingSystem":"Web","inLanguage":"zh","isPartOf":{"@id":"https://tool.warmday.wang/math/prime#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/math/prime#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"首页","item":"https://tool.warmday.wang/"},{"@type":"ListItem","position":2,"name":"数学计算","item":"https://tool.warmday.wang/math"},{"@type":"ListItem","position":3,"name":"质数判断/生成","item":"https://tool.warmday.wang/math/prime"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
