IP331.com | Online Tools
Home›Number Theory›Carmichael Number Checker

Carmichael Number Checker

Enter a positive integer to check if it is a Carmichael number using Korselt criterion

Enter Number

Carmichael Number Properties

Korselt Criterion: n is Carmichael iff
1. n is composite and square-free
2. For each prime p|n: (p-1) | (n-1)
Smallest: 561 = 3 x 11 x 17

Carmichael numbers are composite numbers that behave like primes under the Fermat primality test. They are rare but infinitely many exist, making them important in computational number theory and cryptography.

⚠ Results are best for numbers under 10^9. Larger numbers may take time to factor. The tool checks Korselt criterion via prime factorization.

What Is a Carmichael Number?

A Carmichael number is a composite integer that passes the Fermat test for all bases coprime to it. These deceptively prime-like composites are important in the study of primality testing and cryptographic security.

Square-Free

Carmichael numbers have no squared prime factors. Each prime appears with exponent 1 in the factorization.

Fermat Liars

They are Fermat liars for every base. For all a with gcd(a,n)=1, a^(n-1) = 1 (mod n). Normal composites only pass for some bases.

Infinitely Many

Proved infinitely many in 1994. The growth rate is more than n^(1/3). Over 1.4 million exist below 10^18.

Cryptography

RSA key generation uses Miller-Rabin test instead of Fermat because Carmichael numbers would pass the simpler test.

Teaching Example: Test 561. Factor: 561 = 3 x 11 x 17. Square-free? Yes. Check: (3-1)=2 divides 560? Yes. (11-1)=10 divides 560? Yes. (17-1)=16 divides 560? Yes. 561 is Carmichael!

Applications

Cryptography Primality Testing Number Theory RSA Security Research Competitions

FAQs about Carmichael Numbers

What is a Carmichael number?▼
A composite n where a^(n-1)=1 mod n for all a coprime to n. The smallest is 561. Also called absolute pseudoprime.
What is Korselt criterion?▼
n is Carmichael iff: (1) square-free, (2) for each prime p|n, (p-1) divides (n-1). 561: 2,10,16 all divide 560.
What are the first few Carmichael numbers?▼
561, 1105, 1729, 2465, 2821, 6601, 8911, 10585, 15841, 29341. Note 1729 is also the Hardy-Ramanujan number.
Are there infinitely many Carmichael numbers?▼
Yes, proved by Alford, Granville, and Pomerance in 1994. For sufficiently large x, there are at least x^(1/3) Carmichael numbers up to x.

More Number Theory Tools

Free online calculators and tools covering mathematics, unit conversion, text processing, and daily life. Accurate, fast, mobile-friendly, and completely free to use.

© 2026 IP331.com - Free Online Tools. All rights reserved.

Privacy Policy | Cookie Policy | Terms of Use | Disclaimer