College of Education Office for Mathematics, Science, and Technology Education
Home Activity Isprime

Prime Number Determiner

This page will help you determine whether a number is prime. The calculation is accurate for numbers 16 digits or shorter.

Please enter a number and then press the Start button:

OR


As you read the result, remember the typical divisibility tests for numbers to diagnose if they are prime or not.

A natural number is divisible by:

NumberDivisibility test
2if the number is even
3if the sum of the digits is divisible by 3
4if the last two digits are a number divisible by 4
5if the last digit is 5 or 0
6if the number is even and divisible by 3
8if the number is divisible by 4 and the result is even
9if the sum of the digits is divisible by 9
10if the last digit is 0

Credits

  • Modified by Michael McKelvey (4/24/2006)
Office for Mathematics, Science, and Technology Education College of Education
Copyright © 1994-2026