Super-Prime Calculator

Primes

the 10th super-prime109
its position in the primesprime #29
previous super-prime83
next super-prime127
How this was calculated
  1. A super-prime (prime-indexed prime) is a prime whose position in the ordered list of primes is itself prime.
  2. A sieve lists the primes and their positions; prime #29 is 109, and 29 is prime, so 109 qualifies.
  3. Counting only the primes at prime positions, the 10th one is 109.
  4. Its neighbours in the super-prime list are 83 below and 127 above.

The Super-Prime Calculator tells you whether a number is a super-prime, also called a prime-indexed prime: a prime whose position in the ordered list of primes is itself prime. Enter a number and the page checks both conditions — that the number is prime, and that its index among the primes is prime too — and returns a clear yes or no answer. It also shows where the number sits in the sequence. There are nine super-primes up to 100: 3, 5, 11, 17, 31, 41, 59, 67 and 83. For example, 41 is a super-prime because it is the 13th prime and 13 is prime. The 10th super-prime is 109, which is the 29th prime overall and 29 is prime. The super-prime before 109 is 83 and the one after is 127.

The method behind the answer is the accepted standard for this kind of calculation: it follows the definition directly, first confirming primality and then confirming that the prime's position in the ordered list of primes is itself prime. Nothing is estimated or assumed — every check is made against the actual sequence of primes. This page lays out the full working so you can follow it yourself: the formula, step-by-step workings, worked examples and the sources used. That way the result is not just a number to trust, but a calculation you can verify line by line.

Worked examples

the 10th super-prime

(nth super-prime · 10)

the 10th super-prime109
its position in the primesprime #29
previous super-prime83
next super-prime127

count super-primes up to 100

(count up to a limit · 100)

super-primes up to 1009
largest super-prime in range83
the list3, 5, 11, 17, 31, 41, 59, 67, 83
primes up to the limit (for scale)25

is 41 a super-prime?

(check a value · 41)

is 41 a super-prime?Yes
position of n in the primes13
super-prime rank6
nearest super-prime at or below n41

What is a super-prime?

A super-prime (also called a prime-indexed prime) is a prime whose position in the ordered list of primes is itself prime. The idea only makes sense once you think of the primes as a numbered list: 2 is in position 1, 3 is in position 2, 5 is in position 3, and so on. To test whether a number is a super-prime, you do two things. First, check that it is prime. Second, find its position in that list and check whether the position is prime. If both answers are yes, the number is a super-prime.

Here is the beginning of the prime list with positions attached, and the prime positions marked in brackets. Position 1: 2. Position [2]: 3. Position [3]: 5. Position 4: 7. Position [5]: 11. Position 6: 13. Position [7]: 17. Position 8: 19. Position 9: 23. Position [11]: 31. Position 12: 37. Position [13]: 41. Position 14: 43. Position [17]: 59. Position 18: 61. Position [19]: 67. Position 20: 71. Position 21: 73. Position [23]: 83. Reading the marked entries in order gives the super-primes: 3, 5, 11, 17, 31, 41, 59, 67, 83. There are nine super-primes up to 100.

A worked example makes the rule concrete. Take 41. It is the 13th prime, and 13 is prime, so 41 is a super-prime. The same check works further out. The 10th super-prime is 109, which is the 29th prime overall, and 29 is prime. The position test is what matters, not the size of the number: a prime can sit at a composite position and still be prime itself, but then it is not a super-prime.

Because super-primes are a filtered subset of the primes, they thin out as you go. Around 100 the list is still fairly dense, with nine entries. The super-prime before 109 is 83, and the one after is 127, so the gaps between consecutive super-primes grow as the underlying prime positions get larger. If you want to explore the sequence yourself, the super-prime calculator lets you generate super-primes and check whether any given number qualifies.

One caution is worth stating plainly: the word "super-prime" is sometimes used loosely in popular writing for very large primes. On this page it means exactly one thing, the prime-indexed definition above. Keeping that definition fixed is what makes the sequence predictable and lets you verify every entry by hand.

  • A super-prime is a prime whose position in the ordered list of primes is itself prime.
  • The super-primes up to 100 are 3, 5, 11, 17, 31, 41, 59, 67, 83 - nine of them.
  • 41 is a super-prime because it is the 13th prime and 13 is prime.
  • The 10th super-prime is 109, which is the 29th prime overall and 29 is prime.
  • The super-prime before 109 is 83 and the one after is 127.
Quick check: is the number prime, and is its position in the prime list prime? Both yes means super-prime.

How the calculator works

The calculator offers three ways to work with super-primes, and each one answers a different question. In nth mode, you give it a position and it returns the super-prime that sits there — ask for the 10th and you get 109, which is the 29th prime overall, and 29 is prime. In count mode, you set a limit and it counts how many super-primes fall at or below it, then lists them. Set the limit to 100 and you get nine: 3, 5, 11, 17, 31, 41, 59, 67 and 83. In check mode, you enter a single number and it tells you whether that number is a super-prime, with the reasoning shown.

All three modes rest on the same two-stage method: build a sieve, then add an index. The first stage is the classic sieve of Eratosthenes, which marks off the composites and leaves the primes in order, so the list has a definite first entry, second entry, third entry and so on. The second stage reads that list as positions. For a prime p, the calculator finds where p sits in the ordered list — its index — and then asks whether that index is itself prime. If both the number and its position pass the prime test, the number is a super-prime. Because the sieve is computed once and the index lookup is a simple array access, the same machinery serves all three modes: nth mode walks the list until it has collected the requested number of super-primes, count mode walks it up to your limit, and check mode jumps straight to one entry.

Check mode is easiest to see with a worked example. Take 41. Running the sieve confirms 41 is prime, so it clears the first test. Counting through the primes in order — 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41 — puts 41 in the 13th position. The calculator then tests that position: 13 is prime, so the second test passes too. Both conditions hold, and 41 is reported as a super-prime. The same reasoning explains its neighbors in the sequence: the super-prime before 109 is 83, and the one after is 127.

The index step is where most mistakes happen, so the calculator keeps the position and the number separate and shows both. A prime can fail only on the index — a prime sitting in a composite position is not a super-prime even though it is prime. The method never needs a special-case list of super-primes; it derives them from the sieve each time, which is why the results stay consistent whether you ask for the nth super-prime, count them up to a limit, or check a single value. That combination of a sieve for primality and an index lookup for position is the whole engine behind the super-prime calculator.

Worked check for 41: it is prime, it is the 13th prime, and 13 is prime — so 41 is a super-prime.

The first super-primes

To see how super-primes begin, it helps to count primes in order. The first prime is 2, the second is 3, the third is 5, the fourth is 7, the fifth is 11, and so on. A prime qualifies as a super-prime when its own position in that ordered list is itself prime. So the question for each prime is simple: what number prime is it, and is that number prime too?

The first ten super-primes, with their overall prime index, are shown below. Each entry pairs the prime with the position it holds in the full list of primes, and in every case that position is a prime number.

The list opens with 3, because 3 is the 2nd prime and 2 is prime. Next comes 5, the 3rd prime, since 3 is prime. Then 11, the 5th prime, and 17, the 7th prime. The pattern continues through 31 (11th), 41 (13th), 59 (17th), 67 (19th) and 83 (23rd). A single example makes the rule concrete: 41 is a super-prime because it is the 13th prime and 13 is prime.

Up to 100 there are nine super-primes: 3, 5, 11, 17, 31, 41, 59, 67 and 83. The tenth super-prime is 109, which is the 29th prime overall, and 29 is prime. In the sequence, the super-prime before 109 is 83 and the one after is 127. Reading the table from top to bottom gives a clear picture of how the first ten super-primes line up with their prime indices, and it shows why the definition depends on two layers of counting: the primes themselves, and the positions those primes occupy.

Super-primePrime index
32nd
53rd
115th
177th
3111th
4113th
5917th
6719th
8323rd
10929th
The tenth super-prime is 109: it is the 29th prime overall, and 29 is prime.

How dense are super-primes?

Super-primes are a subset of the primes, so they can only get rarer as you go up the number line — and they do. Up to a bound x, roughly x / (ln x)^2 of the numbers are super-prime. That is the same thinning pattern you see when you count primes among primes: the primes themselves thin out like x / ln x, and requiring the index to be prime as well adds a second logarithmic factor to the denominator. The result is a sequence that grows noticeably sparser than the primes it is drawn from.

You can see the density in miniature at the low end. The super-primes up to 100 are 3, 5, 11, 17, 31, 41, 59, 67, 83 — nine of them. Nine out of the twenty-five primes below 100 is still a healthy share, which is what you would expect while the numbers are small and the logarithm is still modest. Each entry earns its place by a simple test: 41 is a super-prime because it is the 13th prime and 13 is prime. The same check confirms the others in the list.

The spacing widens as the values climb. The 10th super-prime is 109, which is the 29th prime overall and 29 is prime. The super-prime before 109 is 83 and the one after is 127, so the gaps around the tenth term already run into the twenties. That is the x / (ln x)^2 estimate doing its work: the count of super-primes up to x grows more slowly than the count of primes, so the average distance between consecutive super-primes grows faster. By the time you are testing large inputs, a super-prime calculator will reject the great majority of primes it examines, because most primes sit at a composite position in the ordered list.

The idea generalizes cleanly, which is part of what makes the super-prime concept worth knowing. Because a super-prime is defined by the primality of its index, you can apply the same filter again: super-super-primes are those whose index is itself a super-prime. Each additional layer adds another logarithmic factor to the density estimate and pushes the first members of the sequence further out. The family of prime-indexed-prime generalizations therefore forms a ladder of increasingly rare sets, all built from the same ordered list of primes and the same single test — is the position prime?

For practical use, the density picture tells you what to expect from the tool. Small inputs will return a fair number of hits; large inputs will return few, and the search will spend most of its time discarding candidates. Knowing that roughly x / (ln x)^2 super-primes exist up to x also gives you a quick sanity check on any count the calculator reports.

Density rule of thumb: about x / (ln x)^2 super-primes up to x — the primes thinned by a second logarithmic factor.

FAQs

What is a super-prime?

A super-prime is a prime number whose index in the list of all primes is itself prime. For example, 41 is the 13th prime, and 13 is prime, so 41 qualifies as a super-prime. The position a prime holds in the ordered list of primes must itself be a prime number.

What is the 10th super-prime?

The 10th super-prime is 109. It is the 29th prime, and 29 is prime, which is what makes 109 a super-prime. Counting through the super-primes in order, 109 lands in the tenth position on that list.

How many super-primes are there up to 100?

There are 9 super-primes up to 100. They are 3, 5, 11, 17, 31, 41, 59, 67 and 83. Each of these primes holds a prime position in the list of all primes, which is the condition that makes a prime a super-prime.

Is 41 a super-prime?

Yes, 41 is a super-prime. It is the 13th prime, and 13 is prime, so 41 meets the definition. Counting through the super-primes in order, 41 is the 6th super-prime on the list.

What is the largest super-prime below 100?

The largest super-prime below 100 is 83. It is the 23rd prime, and 23 is prime, which makes 83 a super-prime. No larger super-prime appears below 100, so 83 is the highest one in that range.

Which super-prime comes after 109?

The super-prime that comes after 109 is 127. Since 109 is the 10th super-prime, 127 is the next one on the ordered list. It follows 109 directly among the super-primes.

Sources

Related calculators

Nth Prime Calculator
Find the nth prime number exactly: a sieve of Eratosthenes sized by Rosser's theorem bound returns prime number n for any n up to 10,000, with the previous and next primes and the prime gap that follows it.
Prime Counting Calculator
Exact count of primes up to any limit of ten million or less by the sieve of Eratosthenes, compared with the prime number theorem estimate x / ln(x), the average prime gap and the count in the top half of the range.
Arithmetic Sequence Calculator
The nth term and the sum of the first n terms of an arithmetic sequence from the first term and common difference.