Pierpont Prime Calculator

Primes

is 13 a Pierpont prime?Yes - 13 = 2^2 x 3^1 + 1
n - 1 in factored form2^2 x 3^1
exponents a and ba = 2, b = 1
next Pierpont prime after n17
How this was calculated
  1. A Pierpont prime has the form 2^a x 3^b + 1 with a, b >= 0: one more than a 3-smooth number.
  2. Factor n - 1 = 2^2 x 3 and check whether 2 and 3 are the only primes that appear.
  3. They are, with a = 2 and b = 1, and n is prime, so it is a Pierpont prime.
  4. Fermat primes are the special case b = 0, and every Pierpont prime larger than 3 lets a regular polygon with that many sides be constructed with ruler, compass and an angle trisector.

A Pierpont prime is a prime of the form 2^a x 3^b + 1: one more than a number built only from 2s and 3s. The definition is a small relaxation of the Fermat prime form (where only 2s are allowed), and that small relaxation changes everything - Fermat primes are vanishingly rare, with only five known, while Pierpont primes keep appearing steadily as far as anyone has searched.

This calculator tests the form directly: factor p - 1 and check whether 2 and 3 are the only primes in it. The anchors: 13 passes, because 13 = 2^2 x 3^1 + 1; 23 fails, because 23 - 1 = 2 x 11 keeps the prime factor 11. In list mode you get the Pierpont primes up to your limit - up to 200 there are 13 of them.

The reason this family has a name at all is geometric. A regular polygon with a prime number p of sides can be constructed with ruler, compass and an angle trisector - equivalently, with conic sections - exactly when p is a Pierpont prime (greater than 3). The algebra of the form 2^a 3^b + 1 is the arithmetic shadow of that geometric fact.

Worked examples

Is 13 a Pierpont prime?

(0 - test a single number · 13)

is 13 a Pierpont prime?Yes - 13 = 2^2 x 3^1 + 1
n - 1 in factored form2^2 x 3^1
exponents a and ba = 2, b = 1
next Pierpont prime after n17

Is 23 a Pierpont prime?

(0 - test a single number · 23)

is 23 a Pierpont prime?No - n - 1 has a prime factor other than 2 and 3 (2 x 11)
n - 1 in factored form2 x 11
exponents a and bnot of the form 2^a x 3^b
next Pierpont prime after n37

Pierpont primes up to 200

(1 - list up to a limit · 200)

Pierpont primes up to 2002, 3, 5, 7, 13, 17, 19, 37, 73, 97, 109, 163, 193
how many there are13
largest of them193
shape of each2^a x 3^b + 1

The 2^a x 3^b + 1 form

Strip the factors 2 and 3 from p - 1. If nothing remains, p has the Pierpont form, and the exponents you stripped are its coordinates: 13 - 1 = 12 = 2^2 x 3^1, so 13 = 2^2 x 3^1 + 1 with a = 2, b = 1. If anything else remains - a 5, a 7, an 11 - the form fails. For 23, stripping 22 leaves 11 after the single factor 2, so 23 is prime but not Pierpont.

The number p - 1 is called 3-smooth when it has no prime factor above 3, so the test can be stated in one line: p is a Pierpont prime exactly when p is prime and p - 1 is 3-smooth. The calculator reports the exponents a and b on success and the offending factorization on failure, so both verdicts come with their evidence.

  • 13 = 2^2 x 3^1 + 1 - Pierpont, with a = 2, b = 1
  • 23 fails: 23 - 1 = 2 x 11 keeps the prime factor 11
  • Equivalent test: p prime and p - 1 is 3-smooth (no prime factor above 3)
  • 7 = 2^1 x 3^1 + 1 also qualifies

The sequence up to 200

Up to 200 the Pierpont primes are 2, 3, 5, 7, 13, 17, 19, 37, 73, 97, 109, 163 and 193 - thirteen of them. The list mixes the tiny cases (2 and 3 themselves, where p - 1 is 1 or 2) with primes like 193 = 2^6 x 3^1 + 1, where the exponents do real work. Compare the Fermat primes in the same range: 3, 5, 17, 257 is out of range - just three below 200. Allowing the exponent of 3 to vary multiplies the family's density several times over.

The sequence is conjectured infinite - there are always more 3-smooth numbers to test, and a positive fraction of the values 2^a 3^b + 1 are expected to be prime - but like most such statements it is unproved. What is certain is the supply of candidates: the count of 3-smooth numbers up to x grows like (log x)^2 / (2 log 2 log 3), slowly but without bound.

Primep - 1ab
72 x 311
132^2 x 321
172^440
192 x 3^212
372^2 x 3^222
732^3 x 3^232
972^5 x 351
1932^6 x 361

Pierpont primes and constructible polygons

The classical constructibility theorem says a regular p-gon is constructible with ruler and compass exactly when p is a Fermat prime. Add one more tool - an angle trisector, or equivalently the ability to draw conic sections - and the theorem widens: the constructible prime-sided polygons are exactly those with p a Pierpont prime. The extra tool contributes the factor 3 to the arithmetic, just as the trisector contributes cube roots to the geometry.

Concretely: the regular heptagon (7 sides) is not ruler-and-compass constructible, but it is trisector-constructible, because 7 = 2 x 3 + 1 is Pierpont. The 13-gon and 19-gon join it. The 23-gon does not - 23 fails the Pierpont test, so no combination of ruler, compass and trisector produces it exactly. A primality form on this page is, in disguise, a complete classification of a classical construction problem.

  • Ruler and compass alone: Fermat prime sides only
  • Adding an angle trisector (or conics): Pierpont prime sides
  • 7-gon, 13-gon, 19-gon: constructible with trisector; 23-gon: not

How the test differs from a Fermat test

A Fermat prime test asks whether p - 1 is a pure power of two - one exponent, no freedom. The Pierpont test asks whether p - 1 is 3-smooth - two exponents, freely mixed. That single extra degree of freedom is the whole difference between five known examples and an endless-looking sequence: the candidate set grows from one number per exponent (2^a + 1) to a two-dimensional lattice of candidates (2^a 3^b + 1).

The calculator's failure messages show the distinction cleanly. A prime fails the Fermat test when p - 1 has any odd factor at all; it fails the Pierpont test only when p - 1 has a prime factor of 5 or more. 13 fails as a Fermat candidate (12 has the factor 3) and passes as Pierpont with the same factor as its credential.

Same factor, opposite verdicts: 13 - 1 = 2^2 x 3 disqualifies 13 as a Fermat prime and qualifies it as a Pierpont prime.

A sibling family: Pierpont primes of the second kind

Flip the sign and a parallel family appears: primes of the form 2^a 3^b - 1 are called Pierpont primes of the second kind. The small ones are 2, 5, 7, 11, 17, 23 and 31 - check 17 = 2 x 3^2 - 1 and 23 = 2^3 x 3 - 1. The two kinds share the same candidate engine (the 3-smooth numbers, shifted down instead of up) and the same open infinitude question, but they are different sets: 13 is first kind and not second, 11 is second kind and not first.

The distinction matters when reading tables, because older sources sometimes use 'Pierpont prime' for the second kind or for both. This page follows the convention tied to the constructibility theorem - the +1 form - since that is the family the geometry selects. The calculator's factorization report makes the convention self-checking: for a Pierpont prime, p - 1 must come out 3-smooth, and you can see it happen.

Both families also illustrate why smooth-shifted primes are a rich hunting ground. The candidate values 2^a 3^b +/- 1 are dense enough to supply primes regularly, structured enough to factor instantly, and connected - at least on the +1 side - to a classical theorem. Few prime families offer all three.

The constructibility connection has a second chapter: Pierpont primes also classify the polygons constructible with origami (the Huzita-Hatori axioms), which allow angle trisection and more. The same arithmetic - degrees whose prime factors are 2, 3 and Pierpont primes - governs both the trisector constructions and the paper-folding ones, because both toolsets solve the same class of cubic equations. A prime on this page's list is therefore a polygon that can be folded as well as drawn.

  • Second kind: 2^a 3^b - 1 prime - 2, 5, 7, 11, 17, 23, 31, ...
  • 13 is first kind only; 11 is second kind only - the families differ
  • This page uses the +1 form, the one the constructibility theorem selects

Counting Pierpont primes

How many Pierpont primes are there up to a bound? Up to 200 the count is 13, as tabulated. The count grows because the candidate supply does: the 3-smooth numbers 2^a 3^b up to x number about (ln x)^2 / (2 ln 2 ln 3), a supply that grows without bound, and a positive fraction of the shifted values are prime. Standard heuristics therefore predict the Pierpont count up to x grows roughly in proportion to log x - steadily, unlike the Fermat family's drought - and computational searches have enumerated the family far beyond the hand-checkable range.

The contrast in the small range is already decisive: below 200, Fermat primes number 3 (3, 5, 17) while Pierpont primes number 13. The single extra prime allowed in the factorization - 3, alongside 2 - multiplies the candidate lattice from a line into a grid, and the grid keeps producing.

  • 13 Pierpont primes up to 200, against 3 Fermat primes in the same range
  • Candidate supply: about (ln x)^2 / (2 ln 2 ln 3) values of 2^a 3^b up to x
  • The family is conjectured infinite and keeps producing in searches

FAQs

What is a Pierpont prime?

A prime of the form 2^a x 3^b + 1 with a, b >= 0 - one more than a 3-smooth number. For example, 13 = 2^2 x 3^1 + 1.

Is 23 a Pierpont prime?

No. 23 is prime, but 23 - 1 = 2 x 11 has the prime factor 11, so 23 is not of the form 2^a x 3^b + 1.

How many Pierpont primes are there up to 200?

13: 2, 3, 5, 7, 13, 17, 19, 37, 73, 97, 109, 163 and 193.

Are Fermat primes Pierpont primes?

Yes - a Fermat prime is the special case b = 0, where p - 1 is a pure power of two. Every Fermat prime is Pierpont, but most Pierpont primes (like 13 and 19) are not Fermat.

Why do Pierpont primes matter in geometry?

A regular polygon with a prime number p > 3 of sides is constructible with ruler, compass and an angle trisector exactly when p is a Pierpont prime. The 7-gon, 13-gon and 19-gon qualify; the 23-gon does not.

Is 7 a Pierpont prime?

Yes - 7 - 1 = 6 = 2^1 x 3^1, so 7 = 2^1 x 3^1 + 1 fits the form with a = 1 and b = 1.

Sources

Related calculators

Chen Prime Calculator
Check whether a prime is a Chen prime - p where p + 2 is prime or semiprime - or list Chen primes up to a limit.
Circular Prime Calculator
Test whether a number is a circular prime - prime under every cyclic rotation of its digits - listing all rotations and the next circular prime.
Cousin Prime Calculator
Count cousin prime pairs - primes differing by 4 - up to a limit by sieve, with the largest pair in range and the twin-prime count at the same limit for comparison.