A prime number has exactly two factors: 1 and itself. To check a number, try dividing it by every whole number up to its square root. 97 is prime because none of 2, 3, 5 or 7 divides it (√97 = 9.85), but 91 is not, because 91 = 7 × 13. There are 25 primes below 100.
My Construction Calculator
Prime Number Calculator
Inputs
Results update as you type.
Diagram updates as you type.
Results
Check the working before you order.
Is 97 prime?
Yes, it is prime
Prime factors
97
Previous prime
89
Next prime
101
Price This optional: add your own prices
Your prices are remembered on this device only.
Send Order WhatsApp, SMS or email to your supplier
Only divisors up to √97 = 9.85 need testing (2, 3, 5, 7, … up to 9).
None of them divides 97 exactly, so it is prime: its only factors are 1 and 97.
Scan to open this calculationThe code links to this calculator with your inputs, so anyone can scan it with a phone camera and see the same result. Save it for a report, a site board or WhatsApp.Test copy: this code opens the live site, myconstructioncalculator.com, so it works on a phone once the site is launched.
Results are estimates for planning and material ordering only. They are not a substitute for structural design or approval by a qualified engineer. Read the full disclaimer.
Scan to open this calculation with the same inputs.
Generated with myconstructioncalculator.com. Estimates for planning and ordering only; verify against drawings and specifications.
Formula
n is prime if n ≥ 2 and no whole number from 2 to √n divides it exactlyListing primes: cross out multiples of each prime (sieve of Eratosthenes)
Worked Example
Is 91 prime?
√91 = 9.54, so try 2, 3, 5 and 7
91 ÷ 7 = 13 exactly
91 is not prime: 91 = 7 × 13
How Many Primes There Are
Up to
Number of primes
10
4
100
25
1,000
168
10,000
1,229
100,000
9,592
1,000,000
78,498
Frequently Asked Questions
How do you check if a number is prime?
Divide it by each prime up to its square root. If none divides exactly, it is prime. For 97 you only need to try 2, 3, 5 and 7, because √97 is under 10.
Is 1 a prime number?
No. A prime has exactly two different factors, and 1 has only one. The first prime is 2.
Why is 2 the only even prime?
Every other even number can be divided by 2, so it has at least three factors: 1, 2 and itself.
A whole number above 1 that is not prime, so it has more than two factors. 91 is composite: 1, 7, 13 and 91.
Embed This Calculator on Your Website
Free for any website: contractors, suppliers, blogs and schools. Paste this code where you want the calculator to appear. It works in WordPress (Custom HTML block), Wix, Squarespace and plain HTML.