# Number primality tester

## World's simplest number tool

Quickly test if one or more numbers are prime numbers in your browser. To perform the check, just enter your numbers in the input field, select the primality test method in the options below, and this utility will display the status of your numbers. Created by developers from team Browserling.

Announcement
Check out our new project!

We just launched a new site – Online GIF Tools – a collection of utilities for quickly editing GIFs. Check it out!

A link to this tool, including input, options and all chained tools.

Can't convert.

Number primality tester tool
What is a number primality tester?

This is an online browser-based utility for running the primality check algorithm on one or more numbers. The tool tests if the given number has a divisor that is different from 1 and the number itself. If such a divisor exists, then your number is a composite, otherwise, your number is prime. The tool can check multiple numbers at once if they are listed as rows in the input. At the same time, you can define the test method – show a full analysis of all numbers, display only a list of primes, or get only composites. That's numberwang!

Number primality tester examples
Click to use

Primality Test for First Ten Odd Numbers

This example checks the first 10 odd numbers for primality, showing a full analysis for each number. As a result, you can see that there are 7 prime numbers and only 3 composites.

1
3
5
7
9
11
13
15
17
19

1 is not a prime
3 is a prime
5 is a prime
7 is a prime
9 is not a prime
11 is a prime
13 is a prime
15 is not a prime
17 is a prime
19 is a prime

**Required options**

Print the number followed by
whether it's a prime or not.

Filter Prime Numbers

In this example, we run the primality test algorithm for all numbers from 500 to 600. To simplify the results, we show only primes and ignore composite numbers.

500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600

503
509
521
523
541
547
557
563
569
571
577
587
593
599

**Required options**

Print only numbers that are prime.

Filter Composite Numbers

This example checks a list of 12 numbers of various lengths and filters all numbers that are not prime (that is, it returns all composites).

4413061
1231
839791
123456789
17
287500711
857663
987654321
311
13579
30762001
97531

123456789
987654321
13579
97531

**Required options**

Show only numbers that are composite.

Pro tips
Master online number tools

You can pass input to this tool via

__?input__query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinenumbertools.com/number-primality-test

__?input__=1%0A3%0A5%0A7%0A9%0A11%0A13%0A15%0A17%0A19&test-all-numbers=true
All number tools

Quickly create a list of numbers in arithmetic series.

Quickly create a list of numbers in geometric series.

Quickly calculate the coefficients of the binomial expansion.

Quickly create a downloadable image from numbers.

Quickly create a list of random numbers.

Quickly create a list of random primes from a specific interval.

Quickly create a matrix with random numbers as its elements.

Quickly create a random row or column vector.

Quickly exchange rows and columns of a matrix.

Quickly find the inverse matrix of any square matrix.

Quickly find the determinant of any square matrix.

Quickly calculate any number of digits of number π.

Quickly generate the specified number of Euler constant's digits.

Quickly generate any number of golden ratio digits.

Quickly generate numbers of say what you see sequence.

Quickly calculate numbers of Fibonacci sequence.

Quickly calculate numbers of Lucas series.

Quickly generate Fibonacci-like series with custom start values.

Quickly calculate members of a linear recurrence series.

Quickly create a sequence of prime numbers.

Quickly check if the given number is a prime.

Quickly compute all prime factors of a number.

Quickly compute all divisors of a number.

Quickly calculate the GCD of two or more numbers.

Quickly calculate the LCM of two or more numbers.

Quickly create a list of increasing or decreasing integers.

Quickly create a sequence of even numbers.

Quickly create a sequence of odd numbers.

Quickly create a list of squares.

Quickly create a list of cubes.

Quickly generate a series of numbers in the form 2^n.

Quickly generate a series of numbers in the form 10^n.

Quickly choose one or more numbers from a list of numbers.

Quickly round one or more numbers to the given accuracy.

Quickly sort numbers in ascending or descending order.

Quickly sort number's digits in ascending or descending order.

Quickly randomize the order of digits in a number.

Quickly filter numbers according to certain criteria.

Quickly add up all the numbers in the given list and find their sum.

Quickly multiply all the numbers together and find their product.

Quickly add up all the digits of the given numbers.

Quickly multiply all the digits of the given numbers.

Quickly sum up all the fractions in the given list and find their total.

Quickly find the largest number in a number sequence.

Quickly find the smallest number in a number sequence.

Quickly create a diagonal matrix with ones on the main diagonal.

Quickly spell cardinal and ordinal numbers using English words.

Quickly convert spelled numbers to regular numbers.

Quickly convert a number to the form 2^x.

Quickly express a number in the form 10^x.

Quickly convert base 10 numbers to base -10.

Quickly convert a number from one base to any other base.

Quickly convert simple fractions to pretty Unicode fractions.

Quickly add digits to a number so that it becomes a palindrome.

Quickly test if the given numbers are palindromes.

Coming soon
These number tools are on the way

Generate Numberwang Numbers

Create a list of numberwang numbers.

Rewrite Numbers

Given numbers and a grammar, recursively rewrite them.

Create a Floating Point Number

Create a number from the mantissa, base and exponent.

Convert a Number to the Scientific Notation

Convert a number to the a*10^b form.

Convert Scientific Notation to a Number

Convert a number in scientific notation to a regular number.

Generate Random Binary Numbers

Create a list of random binary numbers.

Generate Random Octal Numbers

Create a list of random octal numbers.

Generate Random Decimal Numbers

Create a list of random decimal numbers.

Generate Random Hex Numbers

Create a list of random hexadecimal numbers.

Calculate a Running Sum

Calculate a cumulative sum of a list of numbers.

Calculate a Running Product

Calculate a cumulative product of a list of numbers.

Calculate the Factorial

Find the factorial of a number.

Create Number Anagrams

Create one or more anagrams of a number.

Generate Number Bigrams

Create a list of digit bigrams from a number.

Generate Number Trigrams

Create a list of digit trigrams from a number.

Generate Number N-grams

Create a list of digit ngrams from a number.

Generate a Polynomial Sequence

Create a list of polynomial progression numbers.

Generate SI Prefixes

Create a list of metric prefixes.

Analyze a Number

Report how many digits appear how many times.

Convert a Number to an Ordinal

Convert a cardinal number to an ordinal number.

Convert an Ordinal to a Number

Convert an ordinal number to a cardinal number.

Convert a Number to Roman Number

Convert Arabic numerals to Roman numerals.

Convert a Roman Number to Regular Number

Convert Roman Numerals to Arabic numerals.

Generate Negafibonacci Numbers

Calculate a series of extended Fibonacci numbers.

Generate Fibonacci Primes

Find numbers that are both Fibonacci numbers and primes.

Fibonacci Number Test

Check if a number is a Fibonacci number.

Fibonacci Prime Test

Check if a number is both a Fibonacci number and a prime.

Construct Fibonacci Words

Create a sequence of Fibonacci words.

Construct Tribonacci Words

Create a sequence of Tribonacci words.

Generate Negalucas Numbers

Calculate a series of extended Lucas numbers.

Generate Lucas Primes

Calculate a series of extended Lucas numbers.

Lucas Prime Test

Check if a number is both a Lucas number and a prime.

Calculate the Trace of a Matrix

Find the sum of main diagonal elements of a matrix.

Calculate the Eigenvalues of a Matrix

Find the eigenvalues of a matrix.

Multiply Matrices

Compute the product of two matrices.

Add Matrices

Compute the sum of two matrices.

Subtract Matrices

Compute the difference of two matrices.

Generate Moser de Bruijn Numbers

Calculate a sequence of Moser-Bruijn numbers.

Generate Kolakoski Numbers

Calculate a sequence of Oldenburger-Kolakoski numbers.

Generate Stanley Numbers

Calculate a sequence of Stanley numbers.

Generate Gijswijt Numbers

Calculate a sequence of self-describing Gijswijt numbers.

Generate Rudin-Shapiro Numbers

Calculate a sequence of Rusin-Shapiro numbers.

Generate Baum-Sweet Numbers

Calculate a sequence of Baum-Sweet numbers.

Generate Thue-Morse Sequence

Calculate members of Thue-Morse number series.

Generate Perfect Numbers

Create a list of perfect numbers.

Generate Almost Perfect Numbers

Create a list of almost perfect numbers.

Generate Excessive Number Sequence

Calculate a sequence of abundant numbers.

Generate Deficient Number Sequence

Calculate a sequence of deficient numbers.

Calculate Dragon Curve Numbers

Generate a list of paperfolding sequence numbers.

Generate Composite Numbers

Create a list of numbers that are not prime.

Draw a Numbers Table

Generate a table of numbers.

Test if a Number is Perfect

Check if the given number is a perfect number.

Test if a Number is Abundant

Check if the given number is an abundant number.

Test if a Number is Deficient

Check if the given number is a deficient number.

Calculate the Modulo

Find the modulus of a number.

Group Number Digits

Group together digits of a number.

Split a Number into Digits

Create a list of digits from a number.

Printf Numbers

Apply sprintf or printf function to numbers.

Create Zalgo Numbers

Let Zalgo destroy your numbers.

Mirror a Number

Create a mirror copy of a number.

Zero-pad a Number

Add zeros to a number.

Reverse a Number

Reverse the order of digits of a number.

Rotate a Number

Cyclically rotate digits of a number to the left or right.

Increase All Digits in a Number

Add one to every digit in a number.

Decrease All Digits in a Number

Subtract one from every digit in a number.

Find Patterns in Numbers

Discover patterns in sequences of numbers.

Count Number Occurrences

Find how often numeric values occur.

Calculate Percentages

Find x% of a number.

Generate Natural Numbers

Create a list of natural numbers.

Generate Rational Numbers

Create a list of rational numbers.

Generate Constant Sequence

Create a series of numbers where all terms are the same.

Generate Real Numbers

Create a sequence of real numbers.

Generate Complex Numbers

Create a list of complex numbers.

Generate Binary Numbers

Create a sequence of binary numbers.

Generate Pairs of Numbers

Create a sequence of number pairs.

Generate Triples of Numbers

Create a sequence of number triples.

Generate Tuples of Numbers

Create a sequence of number n-tuples.

Find the Decimal Expansion of a Number

Rewrite a number in the decimal representation.

Convert a Fraction to a Decimal

Convert a fraction to a decimal number.

Convert a Decimal to a Fraction

Convert a decimal number to a fraction.

Convert a Binary Number to Octal Number

Convert a base two number to base eight number.

Convert a Binary Number to Decimal Number

Convert a base two number to base ten number.

Convert a Binary Number to Hex Number

Convert a base two number to base sixteen number.

Convert a Octal Number to Binary Number

Convert a base eight number to base two number.

Convert a Octal Number to Decimal Number

Convert a base eight number to base ten number.

Convert a Octal Number to Hex Number

Convert a base eight number to base sixteen number.

Convert a Decimal Number to Binary Number

Convert a base ten number to base two number.

Convert a Decimal Number to Octal Number

Convert a base ten number to base eight number.

Convert a Decimal Number to Hex Number

Convert a base ten number to base sixteen number.

Convert a Hex Number to Binary Number

Convert a base sixteen number to base two number.

Convert a Hex Number to Octal Number

Convert a base sixteen number to base eight number.

Convert a Hex Number to Decimal Number

Convert a base sixteen number to base ten number.

Convert Any Number to Any Base

Convert any number in any base to any other base.

Change Number's Mantissa

Change the significand of a number.

Change Number's Exponent

Change the power of a number.

Numberwang Number Test

Test if the given number is numberwang.

Subscribe!
Never miss an update

Cool!

Notifications
We'll let you know when we add this tool

Cool!