Pseudoprime

DOWNLOAD Mathematica Notebook

A pseudoprime is a composite number that passes a test or sequence of tests that fail for most composite numbers. Unfortunately, some authors drop the "composite" requirement, calling any number that passes the specified tests a pseudoprime even if it is prime. Pomerance, Selfridge, and Wagstaff (1980) restrict their use of "pseudoprime" to odd composite numbers.

"Pseudoprime" used without qualification means Fermat pseudoprime, i.e., a composite number that nonetheless satisfies Fermat's little theorem to some base or set of bases.

Carmichael numbers are odd composite numbers that are Fermat pseudoprimes to every base; they are sometimes called absolute pseudoprimes.

The following table gives the number of Poulet numbers psp(2), Euler-Jacobi pseudoprimes ejpsp(2), and strong pseudoprimes spsp(2) to the base 2, and Carmichael numbers CN that are smaller than the first few powers of 10 (Guy 1994). The table below extend Guy's table with the results of Pinch, who calculated the number of pseudoprimes up to 10^(13).

10^npsp(2)ejpsp(2)spsp(2)CN
SloaneA055550A055551A055552A055553
Sloane countsA001567A047713A001262A002997
10^10000
10^20000
10^33101
10^4221257
10^578361616
10^62451144643
10^7750375162105
10^820571071488255
10^9559729391282646
10^(10)14884770632911547
10^(11)389752041786073605
10^(12)10162953332224078241
10^(13)2642391248825889219279

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.