๐ŸŽฎ Funsoft Free games & tools๐ŸŒ English ยท ํ•œ๊ตญ์–ด

Funsoft โ€บ Math calculators โ€บ Prime Number Checker

Prime Number Checker

Prime or composite ยท primes in a range ยท sieve of Eratosthenes ยท previous & next prime

Enter a number to find out whether it is prime or composite; a composite number is shown as a product of two factors. Up to one trillion you see the trial division by primes up to โˆšn; bigger numbers (up to 24 digits) use the Millerโ€“Rabin test.

๐Ÿ” Is it a prime number?

Find the primes in a range

โ€“

The end of the range can be up to one trillion, and one search can cover up to 100,000 numbers.

๐Ÿงญ How to use it

  1. Type a whole number and press Check. You see whether it is prime or composite and why.
  2. For a composite number you get a factor pair and its prime factorization; for any number up to 20 digits, the previous and next primes.
  3. To list primes, enter a range such as 1 to 100 under Find the primes in a range.

๐Ÿงน Sieve of Eratosthenes: primes from 1 to 100

Cross out 1, then keep 2, 3, 5 and 7 and cross out their multiples in turn. The next prime, 11, has 11 ร— 11 = 121, which is more than 100, so nothing else needs crossing out. Every number left is prime.

The 25 prime numbers up to 100: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97

๐Ÿ“˜ How to tell if a number is prime

Example โ€” 91: โˆš91 โ‰ˆ 9.5, so try 2, 3, 5 and 7. 91 รท 7 = 13, so 91 = 7 ร— 13 is composite.

Example โ€” 97: โˆš97 โ‰ˆ 9.8, so try 2, 3, 5 and 7. None divides it evenly, so 97 is prime.

Quick divisibility rules

For numbers above 1012, trying one prime at a time would take too long, so the checker uses the Millerโ€“Rabin test with the first 13 primes (2 to 41) as bases. With these bases the test is known never to give a wrong answer for numbers below 3.3 ร— 1024.

โ“ Frequently asked questions

What is a prime number?

A prime number is a whole number greater than 1 whose only factors are 1 and itself, such as 2, 3, 5, 7, 11 and 13. A whole number greater than 1 that is not prime is called a composite number.

Is 1 a prime number?

No. 1 has only one factor, so it is neither prime nor composite. Leaving 1 out of the primes is what makes every whole numberโ€™s prime factorization unique.

How do you check whether a number is prime?

Try dividing it by the primes up to its square root. If any of them divides it evenly the number is composite; if none does, it is prime. 91 divides by 7, so it is composite; 97 does not divide by 2, 3, 5 or 7, so it is prime.

How many prime numbers are there up to 100?

There are 25: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and 97. There are 168 primes up to 1000.

Can it check very large numbers?

Yes, up to 24 digits. Up to one trillion (10 to the 12th power) it divides by the primes up to the square root; above that it uses the Millerโ€“Rabin test with the 13 primes from 2 to 41 as bases, which is known to be correct for every number below 3.3 ร— 10 to the 24th power.

๐Ÿ”— More math calculators

Practice more: Math Worksheet Generator ยท Multiplication Chart ยท Percentage Calculator ยท Unit Converter

5 uses today ยท Everything is calculated in your browser โ€” the numbers you enter are never sent to a server.

More free games & tools
๐Ÿ—‚๏ธ Games by Genre๐Ÿ“… Daily Challenge๐Ÿ‡ฐ๐Ÿ‡ท Learn Hangul๐ŸŽต Beat Cube Dash๐Ÿงฉ Block Puzzle๐Ÿฎ Lantern Night (Survivor)๐Ÿชฑ Worm Battle (Worm IO)๐Ÿ•ณ๏ธ Hole IO Game (Black Hole Town)๐Ÿ›ก๏ธ Steel Evolution (Tank IO)โ›„ Snowball Roll IO๐ŸŽ„ Christmas Games๐ŸŽ… Santa Gift Deliveryโœ‰๏ธ Letter from Santa๐Ÿ’Œ Online Christmas Cardโ“ Christmas Quiz๐ŸŽ Secret Santa Generator๐Ÿงง Lunar New Year๐ŸŽ† New Year Countdown๐Ÿ“… Printable Calendar๐ŸŽฏ New Yearโ€™s Resolutions๐Ÿงฎ Math Worksheet Generatorโœ–๏ธ Multiplication Chart๐ŸŽฎ Times Tables Game๐Ÿ•’ Telling Time Practice๐Ÿ–จ๏ธ Telling Time WorksheetsโŒจ๏ธ Typing Test๐Ÿ” Word Search Maker๐Ÿ“ Word Counter๐ŸŽ‚ Age Calculator๐Ÿ“† Date Difference Calculator๐Ÿ“ˆ Compound Interest Calculator๐Ÿงช Periodic Table๐Ÿšฉ Flag Quizโž— Fraction Calculator๐ŸŒณ Prime Factorization Calculator๐Ÿ”— GCF & LCM Calculator๐ŸŒŒ Aurora Forecast๐ŸŒ Live Earthquake Map๐Ÿ“š Study Timer๐ŸŽ„ Decorate a Christmas Tree๐Ÿšช Advent Calendar 2026โ„๏ธ Snowball Fight๐Ÿฐ Prism Keep (Tower Defense)โš”๏ธ Three Kingdoms Idle๐Ÿ“Š Stock Market Simulator๐ŸŽฒ Yut Nori๐Ÿฎ Korean Traditional Games๐Ÿฏ Dalgona Candy Game๐ŸŒบ Red Light, Green Lightโ™ž Chess vs Computerโ™Ÿ๏ธ Chess Puzzles๐Ÿ€„ Janggi (Korean Chess)๐Ÿƒ Solitaire๐Ÿ‚ก Blackjack๐Ÿ”ผ Hi-Lo๐Ÿ’ฃ Minesweeperโšซ Gomoku (Omok)๐Ÿ”ด Four in a Rowโšซ Reversi๐Ÿฅ Beat King (Rhythm Game)๐ŸŽต Neon Lane (4 Key Rhythm Game)๐ŸŽน Piano Tiles Game๐ŸŽน Online Piano๐ŸŽ„ Christmas Piano Songs๐Ÿชœ Endless Stairsโšฝ Penalty Shootout๐Ÿ“ Ping Pong (Table Tennis)๐ŸŽณ Bowling๐Ÿ€ Basketball Shooting๐Ÿน Archeryโ›ณ Mini Golf๐Ÿ’ Air Hockey๐ŸŽฏ Darts๐ŸŽฑ Pool Game (Billiards)๐ŸŽ๏ธ Drift Racing๐Ÿ Kart Racing๐Ÿ๏ธ Hill Climb Motorbike๐ŸšŒ Bus Driver๐Ÿ…ฟ๏ธ Car Parking๐Ÿš— Car Escape Puzzle๐Ÿ” Road Crossing 3Dโœ๏ธ One Line Puzzle๐ŸŽฒ Yacht Dice๐ŸŽฑ Marble Race Name Picker๐ŸฅŒ Alkkagi๐Ÿ” Spot the Difference๐Ÿชฉ Pinball๐Ÿ’ฅ Artillery Gameโœˆ๏ธ Plane Shooter (Sky Interceptors)๐Ÿ‘น Maze Chase (Dokkaebi Maze)๐ŸงŸ Zombie Survival Game๐Ÿซง Cell Grow IO๐ŸŸ Fish Eat Fish๐Ÿ  Virtual Aquarium๐Ÿ€„ Shisen-Sho๐Ÿƒ Memory Game๐ŸŒธ Puff Garden (Match-3)๐ŸŽด Go-Stop (Matgo)โšซ Go (Baduk)๐Ÿƒ One Card๐Ÿ Italian Brainrot Quiz๐ŸŽƒ Halloween Candy Catch๐ŸŽ‹ Bamboo Chop๐Ÿ”ข 2048๐Ÿ‰ Suika Game (Watermelon)๐Ÿงฑ Brick Breaker๐Ÿ Snake๐Ÿซง Bubble Shooter๐Ÿ”จ Whack a Mole๐Ÿฆ– Dino Evolution๐Ÿ”ข Sudoku๐ŸŸฉ Nonogram๐Ÿงช Water Sort Puzzle๐Ÿงฉ Jigsaw Puzzles๐ŸŒ€ Maze Game๐Ÿ”ข 15 Puzzle๐Ÿ—ผ Tower of Hanoi๐Ÿƒ 24 Game (Exactly 24)โšก Reaction Time Test๐ŸŽจ Color Test๐Ÿ–๏ธ Coloring Pages๐Ÿ”Ž Hidden Object Games๐ŸŽฏ Bingo Card Generator๐ŸŽˆ Hangman Game๐Ÿง  IQ Test (Just for Fun)๐Ÿ–ฑ๏ธ CPS Test๐Ÿ–ฑ๏ธ Mouse TestโœŒ๏ธ Double Click TestโŒจ๏ธ Keyboard Tester๐ŸŽ™๏ธ Mic Test๐Ÿ“ท Webcam Test๐Ÿ”Š Left Right Speaker Test๐ŸŽง Online Hearing Test๐ŸŽฅ Screen Recorder๐ŸŽž๏ธ GIF Maker๐ŸŸฅ Dead Pixel Test๐Ÿ–ฅ๏ธ Refresh Rate Test๐ŸŽž๏ธ FPS Test๐Ÿ“ What Is My Screen Resolution?๐Ÿ‘† Touch Screen Test๐Ÿ“ Mouse DPI Test๐Ÿ“ก Polling Rate Test๐ŸŽน Key Rollover Test๐ŸŽฎ Gamepad TesterโŒจ๏ธ Spacebar Counter๐ŸŽฏ Sensitivity Converter๐Ÿงฎ eDPI Calculator๐Ÿ”ญ FOV Calculatorโž• Crosshair Generator๐Ÿ”ด Aim TrainerโŒจ๏ธ Auto Key Presser๐Ÿค– Auto Clickerโœฆ Special Characters๐’œ Fancy Text Generator๐Ÿ”ณ QR Code Generator๐Ÿ” Password Generator๐Ÿงฐ Image & PDF Tools๐Ÿ“ฑ HEIC to JPG๐Ÿ“ Resize Image๐Ÿ”„ Image Converterโœ‚๏ธ Crop Image๐Ÿ“š Merge PDF๐Ÿ“„ Split PDF๐Ÿ–จ๏ธ Images to PDF๐Ÿ–ผ๏ธ Image Compressor๐Ÿงพ JSON Formatter๐Ÿ”ค Base64 Encoder / Decoder๐ŸŽจ Color Picker & Converterโฒ๏ธ Online Timer๐Ÿ“… Days Until Calculator๐Ÿฅ Online Metronome๐ŸŽฒ Random Number Generator๐ŸŽก Spin the Wheel๐Ÿ‡ Horse Race Game๐Ÿ“ Unit Converter๐Ÿ’ต Tip Calculator๐Ÿ’ฏ Percentage Calculatorโš–๏ธ BMI Calculatorโœ๏ธ Your Name in Korean๐ŸŽ‚ Korean Age Calculator๐Ÿ‰ Korean Zodiac Calculator๐Ÿชช Korean Name Generator๐Ÿ’ฌ Korean Phrases for Travelers๐Ÿ—“๏ธ South Korea Public Holidays๐ŸŽง Vibe Coding Guide๐Ÿ–‹๏ธ Verified Quotes๐ŸŽ Roblox Codes๐Ÿ—บ๏ธ Roblox Game Guides๐Ÿ“Š Roblox Top Games Chart๐Ÿ’Ž Robux Calculator๐ŸŽ„ Roblox Christmas 2026๐ŸŽƒ Roblox Halloween 2026 Recap๐Ÿฅš Steal An Egg Pets๐Ÿ“š Roblox Item Database

ยฉ Funsoft ยท funsoft.app ยท All English games & tools ยท About ยท Privacy ยท Terms ยท Contact ยท ํ•œ๊ตญ์–ด๋กœ ๋ณด๊ธฐ