Prime and Composite Numbers
Explore factors, classify numbers, test whether a number is prime, and use a sieve to discover prime numbers.
1. Number classifier
Enter a positive whole number to see its factors and classification.
2. Prime tester
Check divisibility by possible factors up to the square root of the number.
3. Prime factorisation
Break a composite number into a product of prime factors.
4. Sieve of Eratosthenes
Generate all prime numbers up to your chosen limit. Green cells are prime; blue cells are composite.
5. Remember
Prime: exactly 2 positive factorsComposite: more than 2 positive factors1: neither prime nor composite2: only even prime