Skip to main content
DigiCalcs

learn.howToCalculate

learn.whatIsHeading

A prime number is a natural number greater than 1 that has exactly two divisors: 1 and itself. Primes are the fundamental building blocks of all integers — every integer greater than 1 is either prime or a product of primes (Fundamental Theorem of Arithmetic).

Hướng dẫn từng bước

  1. 1Trial division: test divisibility by all integers up to √n
  2. 2If n has a factor, one factor must be ≤ √n
  3. 3Optimisation: only test 2, 3, then numbers of the form 6k±1
  4. 4For large numbers, probabilistic tests like Miller-Rabin are used

Ví dụ có lời giải

đầu vào
17
Kết quả
PRIME
Not divisible by 2, 3, or √17 ≈ 4.1
đầu vào
91
Kết quả
NOT PRIME
91 = 7 × 13 — looks prime but isn't!
đầu vào
2
Kết quả
PRIME
The only even prime number

Câu hỏi thường gặp

What is Prime Checker?

A prime number is a natural number greater than 1 that has exactly two divisors: 1 and itself. Primes are the fundamental building blocks of all integers — every integer greater than 1 is either prime or a product of primes (Fundamental Theorem of Arithmetic)

How accurate is the Prime Checker calculator?

The calculator uses the standard published formula for prime checker. Results are accurate to the precision of the inputs you provide. For financial, medical, or legal decisions, always verify with a qualified professional.

What units does the Prime Checker calculator use?

This calculator works with inches. You can enter values in the units shown — the calculator handles all conversions internally.

What formula does the Prime Checker calculator use?

The calculator applies the standard formula for this type of calculation. See the 'How It Works' steps above for the detailed formula breakdown.

Sẵn sàng để tính toán? Dùng thử Máy tính Prime Checker miễn phí

Hãy tự mình thử →

Cài đặt