Problems & Puzzles: Puzzles

 

 

Problems & Puzzles: Puzzles

Puzzle 1292. The primeth chain and the new PrimeCount Calculator

N.B. by CR: This puzzle is a way(2) of announcing my fourth calculator, PrimeCount, and of inviting you to use it within its possibilities. But you may use any other tool to answer the questions, as long as you mention that tool.

***

This week we present our fourth web calculator, the PrimeCount Calculator, which computes exactly π(x) and the n-th prime p(n) for x up to 2^63−1 ≈ 9.2 × 10^18, inside your browser. To show what it can do, here is a classic chain of primes.

Start with a(0) = 1 and apply the n-th prime function again and again: a(k+1) = p(a(k)). So a(1) = p(1) = 2, a(2) = p(2) = 3, a(3) = p(3) = 5, a(4) = p(5) = 11, a(5) = p(11) = 31, and so on. This is the sequence A007097 of the OEIS, the “primeth recurrence”, currently known up to a(23).

With the PrimeCount Calculator, the first 19 terms take only a few minutes:

k a(k) obtained with
0 1
1 2 PrimeCount page
2 3 PrimeCount page
3 5 PrimeCount page
4 11 PrimeCount page
5 31 PrimeCount page
6 127 PrimeCount page
7 709 PrimeCount page
8 5381 PrimeCount page
9 52711 PrimeCount page
10 648391 PrimeCount page
11 9737333 PrimeCount page
12 174440041 PrimeCount page
13 3657500101 PrimeCount page
14 88362852307 PrimeCount page
15 2428095424619 PrimeCount page
16 75063692618249 PrimeCount page
17 2586559730396077 PrimeCount page, ~2 s
18 98552043847093519 PrimeCount page, ~20 s
19 4123221751654370051 PrimeCount page, ~3 min
20 188272405179937051081 beyond the page
21 9332039515881088707361 beyond the page
22 499720579610303128776791 beyond the page
23 28785866289100396890228041 beyond the page

The chain leaves the page after a(19), because a(20) = p(a(19)) needs n ≈ 4.1 × 10^18, larger than the maximum n the page accepts (≈ 2.16 × 10^17). From there on you need the native program primecount by Kim Walisch, the same engine that runs inside our page, which uses all the cores of your computer and accepts x up to 10^31.

Questions:

Q1. Reproduce the terms a(1) to a(19) with the PrimeCount Calculator. How long did a(19) take on your computer? Please mention your processor.

Q2. With the native primecount, or any other tool, verify a(20) and a(21). Report your times and your machine.

Q3. Can you verify a(22) or a(23)?

Q4. a(24) is not known. Estimate it as accurately as you can, and explain your method.



 

 








Records   |  Conjectures  |  Problems  |  Puzzles